diff --git a/benchmarks/src/lib.rs b/benchmarks/src/lib.rs index f6c375db6ad..518853880be 100644 --- a/benchmarks/src/lib.rs +++ b/benchmarks/src/lib.rs @@ -7,20 +7,20 @@ use web_sys::Node; #[wasm_bindgen(raw_module = "../globals.js")] extern "C" { - #[wasm_bindgen(js_name = jsthunk)] + #[wasm_bindgen(js_name = "jsthunk")] fn js_thunk(); - #[wasm_bindgen(js_name = add)] + #[wasm_bindgen(js_name = "add")] fn js_add(a: i32, b: i32) -> i32; pub type Foo; - #[wasm_bindgen(method, final, js_name = bar)] + #[wasm_bindgen(method, final, js_name = "bar")] fn bar_final(this: &Foo); - #[wasm_bindgen(method, structural, js_name = bar)] + #[wasm_bindgen(method, structural, js_name = "bar")] fn bar_structural(this: &Foo); - #[wasm_bindgen(js_name = jsthunk)] + #[wasm_bindgen(js_name = "jsthunk")] fn doesnt_throw(); - #[wasm_bindgen(catch, js_name = jsthunk)] + #[wasm_bindgen(catch, js_name = "jsthunk")] fn doesnt_throw_catch() -> Result<(), JsValue>; } @@ -102,9 +102,9 @@ pub fn call_doesnt_throw_with_catch_n_times(n: usize) { extern "C" { pub type Element; - #[wasm_bindgen(method, js_name = firstChild, final, getter)] + #[wasm_bindgen(method, js_name = "firstChild", final, getter)] fn first_child_final(this: &Element) -> Element; - #[wasm_bindgen(method, js_name = firstChild, structural, getter)] + #[wasm_bindgen(method, js_name = "firstChild", structural, getter)] fn first_child_structural(this: &Element) -> Element; } diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index d4b10932f52..6076d23dac3 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -17,6 +17,7 @@ extra-traits = ["syn/extra-traits"] [dependencies] bumpalo = "3.0.0" +darling = "0.14.1" lazy_static = "1.0.2" log = "0.4" proc-macro2 = "1.0" diff --git a/crates/backend/src/error.rs b/crates/backend/src/error.rs index 3e65cd745cc..c7f0328b8f1 100644 --- a/crates/backend/src/error.rs +++ b/crates/backend/src/error.rs @@ -98,6 +98,12 @@ impl From for Diagnostic { } } +impl From for Diagnostic { + fn from(err: darling::Error) -> Self { + Self::from(Error::from(err)) + } +} + fn extract_spans(node: &dyn ToTokens) -> Option<(Span, Span)> { let mut t = TokenStream::new(); node.to_tokens(&mut t); diff --git a/crates/cli/tests/wasm-bindgen/main.rs b/crates/cli/tests/wasm-bindgen/main.rs index d534b5a9724..556bb95f603 100644 --- a/crates/cli/tests/wasm-bindgen/main.rs +++ b/crates/cli/tests/wasm-bindgen/main.rs @@ -144,12 +144,12 @@ fn namespace_global_and_noglobal_works() { use wasm_bindgen::prelude::*; #[wasm_bindgen(module = "fs")] extern "C" { - #[wasm_bindgen(js_namespace = window)] + #[wasm_bindgen(js_namespace = "window")] fn t1(); } #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = window)] + #[wasm_bindgen(js_namespace = "window")] fn t2(); } #[wasm_bindgen] @@ -189,7 +189,7 @@ fn bin_crate_works() { use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(data: &str); } diff --git a/crates/futures/src/task/multithread.rs b/crates/futures/src/task/multithread.rs index 8d51144846b..3dbfc0978bb 100644 --- a/crates/futures/src/task/multithread.rs +++ b/crates/futures/src/task/multithread.rs @@ -187,13 +187,13 @@ fn wait_async(ptr: &AtomicI32, current_value: i32) -> Option { type Atomics; type WaitAsyncResult; - #[wasm_bindgen(static_method_of = Atomics, js_name = waitAsync)] + #[wasm_bindgen(static_method_of = "Atomics", js_name = "waitAsync")] fn wait_async(buf: &js_sys::Int32Array, index: i32, value: i32) -> WaitAsyncResult; - #[wasm_bindgen(static_method_of = Atomics, js_name = waitAsync, getter)] + #[wasm_bindgen(static_method_of = "Atomics", js_name = "waitAsync", getter)] fn get_wait_async() -> JsValue; - #[wasm_bindgen(method, getter, structural, js_name = async)] + #[wasm_bindgen(method, getter, structural, js_name = "async")] fn async_(this: &WaitAsyncResult) -> bool; #[wasm_bindgen(method, getter, structural)] diff --git a/crates/js-sys/src/Temporal.rs b/crates/js-sys/src/Temporal.rs index ee6d97d177b..88d15fcb2d6 100644 --- a/crates/js-sys/src/Temporal.rs +++ b/crates/js-sys/src/Temporal.rs @@ -2,23 +2,23 @@ use super::*; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type Instant; - #[wasm_bindgen(static_method_of = Instant, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "Instant", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> Instant; - #[wasm_bindgen(static_method_of = Instant, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "Instant", js_namespace = "Temporal")] pub fn compare(one: &Instant, two: &Instant) -> i32; - #[wasm_bindgen(method, getter, structural, js_name = epochSeconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochSeconds")] pub fn epoch_seconds(this: &Instant) -> u64; - #[wasm_bindgen(method, getter, structural, js_name = epochMilliseconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochMilliseconds")] pub fn epoch_milliseconds(this: &Instant) -> u64; - #[wasm_bindgen(method, getter, structural, js_name = epochMicroseconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochMicroseconds")] pub fn epoch_microseconds(this: &Instant) -> BigInt; - #[wasm_bindgen(method, getter, structural, js_name = epochNanoseconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochNanoseconds")] pub fn epoch_nanoseconds(this: &Instant) -> BigInt; /// This method adds duration to Instant. @@ -59,28 +59,28 @@ extern "C" { /// This method overrides the Object.prototype.toString() method and provides a convenient, unambiguous /// string representation of date. The string can be passed to Temporal.PlainDate.from() to /// create a new Temporal.PlainDate object. - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Instant) -> JsString; /// This method overrides `Object.prototype.toLocaleString()` to provide a human-readable, /// language-sensitive representation of duration. /// /// The locales and options arguments are the same as in the constructor to Intl.DateTimeFormat. - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &Instant, locales: &JsValue, options: &JsValue) -> JsString; } #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type PlainDateTime; - #[wasm_bindgen(static_method_of = PlainDateTime, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainDateTime", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> PlainDateTime; - #[wasm_bindgen(static_method_of = PlainDateTime, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainDateTime", js_namespace = "Temporal")] pub fn compare(one: &PlainDateTime, two: &PlainDateTime) -> i32; #[wasm_bindgen(method, getter, structural)] @@ -109,7 +109,7 @@ extern "C" { /// the ISO 8601 calendar. As inputs to from or with, era and eraYear can be used instead /// of year. Unlike year, eraYear may decrease as time proceeds because some /// eras (like the BCE era in the Gregorian calendar) count years backwards. - #[wasm_bindgen(method, getter, structural, js_name = eraYear)] + #[wasm_bindgen(method, getter, structural, js_name = "eraYear")] pub fn era_year(this: &PlainDateTime) -> JsValue; /// In calendars that use eras, the era and eraYear read-only properties can be used @@ -123,63 +123,63 @@ extern "C" { /// The dayOfWeek read-only property gives the weekday number that the date falls /// on. For the ISO 8601 calendar, the weekday number is defined as in the ISO 8601 /// standard: a value between 1 and 7, inclusive, with Monday being 1, and Sunday 7. - #[wasm_bindgen(method, getter, structural, js_name = dayOfWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "dayOfWeek")] pub fn day_of_week(this: &PlainDateTime) -> u32; /// The dayOfYear read-only property gives the ordinal day of the year that the date /// falls on. For the ISO 8601 calendar, this is a value between 1 and 365, or 366 in /// a leap year. - #[wasm_bindgen(method, getter, structural, js_name = dayOfYear)] + #[wasm_bindgen(method, getter, structural, js_name = "dayOfYear")] pub fn day_of_year(this: &PlainDateTime) -> u32; /// The weekOfYear read-only property gives the ISO week number of the date. For the /// ISO 8601 calendar, this is normally a value between 1 and 52, but in a few cases it /// can be 53 as well. ISO week 1 is the week containing the first Thursday of the year. - #[wasm_bindgen(method, getter, structural, js_name = weekOfYear)] + #[wasm_bindgen(method, getter, structural, js_name = "weekOfYear")] pub fn week_of_year(this: &PlainDateTime) -> u32; /// The daysInWeek read-only property gives the number of days in the week that the /// date falls in. For the ISO 8601 calendar, this is always 7, but in other calendar /// systems it may differ from week to week. - #[wasm_bindgen(method, getter, structural, js_name = daysInWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInWeek")] pub fn days_in_week(this: &PlainDateTime) -> u32; /// The daysInMonth read-only property gives the number of days in the month that the /// date falls in. For the ISO 8601 calendar, this is 28, 29, 30, or 31, depending /// on the month and whether the year is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInMonth)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInMonth")] pub fn days_in_month(this: &PlainDateTime) -> u32; /// The daysInYear read-only property gives the number of days in the year that the date /// falls in. For the ISO 8601 calendar, this is 365 or 366, depending on whether the year /// is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInYear)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInYear")] pub fn days_in_year(this: &PlainDateTime) -> u32; /// The monthsInYear read-only property gives the number of months in the year that the date /// falls in. For the ISO 8601 calendar, this is always 12, but in other calendar systems /// it may differ from year to year. - #[wasm_bindgen(method, getter, structural, js_name = monthsInWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "monthsInWeek")] pub fn months_in_year(this: &PlainDateTime) -> u32; /// The inLeapYear read-only property tells whether the year that the date falls in is a /// leap year or not. Its value is true if the year is a leap year, and false if not. - #[wasm_bindgen(method, getter, structural, js_name = inLeapYear)] + #[wasm_bindgen(method, getter, structural, js_name = "inLeapYear")] pub fn in_leap_year(this: &PlainDateTime) -> bool; /// This method creates a new Temporal.PlainDateTime which is a copy of zonedDateTime, but any /// properties present on parameter override the ones already present on zonedDateTime. - #[wasm_bindgen(method, js_name = withPlainDate)] + #[wasm_bindgen(method, js_name = "withPlainDate")] pub fn with(this: &PlainDateTime, parameter: &JsValue, options: &JsValue) -> PlainDateTime; /// Returns a new `Temporal.PlainDateTime` object which replaces the calendar date of zonedDateTime /// with the calendar date represented by plainDate. - #[wasm_bindgen(method, js_name = withPlainDate)] + #[wasm_bindgen(method, js_name = "withPlainDate")] pub fn with_plain_date(this: &PlainDateTime, date: &PlainDate) -> PlainDateTime; /// Returns a new `Temporal.PlainDateTime` object which is the date indicated by date, projected /// into calendar. - #[wasm_bindgen(method, js_name = withCalendar)] + #[wasm_bindgen(method, js_name = "withCalendar")] pub fn with_calendar(this: &PlainDateTime, calendar: &str) -> PlainDateTime; /// This method adds duration to zonedDateTime. @@ -218,20 +218,20 @@ extern "C" { /// /// This is an advanced method that's mainly useful if you are implementing a custom calendar. Most /// developers will not need to use it. - #[wasm_bindgen(method, js_name = getISOFields)] + #[wasm_bindgen(method, js_name = "getISOFields")] pub fn get_iso_fields(this: &PlainDateTime) -> JsValue; } #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type ZonedDateTime; - #[wasm_bindgen(static_method_of = ZonedDateTime, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "ZonedDateTime", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> ZonedDateTime; - #[wasm_bindgen(static_method_of = ZonedDateTime, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "ZonedDateTime", js_namespace = "Temporal")] pub fn compare(one: &ZonedDateTime, two: &ZonedDateTime) -> i32; #[wasm_bindgen(method, getter, structural)] @@ -255,13 +255,13 @@ extern "C" { #[wasm_bindgen(method, getter, structural)] pub fn nanosecond(this: &ZonedDateTime) -> u32; - #[wasm_bindgen(method, getter, structural, js_name = epochSeconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochSeconds")] pub fn epoch_seconds(this: &ZonedDateTime) -> u64; - #[wasm_bindgen(method, getter, structural, js_name = epochMilliseconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochMilliseconds")] pub fn epoch_milliseconds(this: &ZonedDateTime) -> u64; - #[wasm_bindgen(method, getter, structural, js_name = epochMicroseconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochMicroseconds")] pub fn epoch_microseconds(this: &ZonedDateTime) -> BigInt; - #[wasm_bindgen(method, getter, structural, js_name = epochNanoseconds)] + #[wasm_bindgen(method, getter, structural, js_name = "epochNanoseconds")] pub fn epoch_nanoseconds(this: &ZonedDateTime) -> BigInt; /// In calendars that use eras, the era and eraYear read-only properties can be used @@ -269,7 +269,7 @@ extern "C" { /// the ISO 8601 calendar. As inputs to from or with, era and eraYear can be used instead /// of year. Unlike year, eraYear may decrease as time proceeds because some /// eras (like the BCE era in the Gregorian calendar) count years backwards. - #[wasm_bindgen(method, getter, structural, js_name = eraYear)] + #[wasm_bindgen(method, getter, structural, js_name = "eraYear")] pub fn era_year(this: &ZonedDateTime) -> JsValue; /// In calendars that use eras, the era and eraYear read-only properties can be used @@ -283,48 +283,48 @@ extern "C" { /// The dayOfWeek read-only property gives the weekday number that the date falls /// on. For the ISO 8601 calendar, the weekday number is defined as in the ISO 8601 /// standard: a value between 1 and 7, inclusive, with Monday being 1, and Sunday 7. - #[wasm_bindgen(method, getter, structural, js_name = dayOfWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "dayOfWeek")] pub fn day_of_week(this: &ZonedDateTime) -> u32; /// The dayOfYear read-only property gives the ordinal day of the year that the date /// falls on. For the ISO 8601 calendar, this is a value between 1 and 365, or 366 in /// a leap year. - #[wasm_bindgen(method, getter, structural, js_name = dayOfYear)] + #[wasm_bindgen(method, getter, structural, js_name = "dayOfYear")] pub fn day_of_year(this: &ZonedDateTime) -> u32; /// The weekOfYear read-only property gives the ISO week number of the date. For the /// ISO 8601 calendar, this is normally a value between 1 and 52, but in a few cases it /// can be 53 as well. ISO week 1 is the week containing the first Thursday of the year. - #[wasm_bindgen(method, getter, structural, js_name = weekOfYear)] + #[wasm_bindgen(method, getter, structural, js_name = "weekOfYear")] pub fn week_of_year(this: &ZonedDateTime) -> u32; /// The daysInWeek read-only property gives the number of days in the week that the /// date falls in. For the ISO 8601 calendar, this is always 7, but in other calendar /// systems it may differ from week to week. - #[wasm_bindgen(method, getter, structural, js_name = daysInWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInWeek")] pub fn days_in_week(this: &ZonedDateTime) -> u32; /// The daysInMonth read-only property gives the number of days in the month that the /// date falls in. For the ISO 8601 calendar, this is 28, 29, 30, or 31, depending /// on the month and whether the year is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInMonth)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInMonth")] pub fn days_in_month(this: &ZonedDateTime) -> u32; /// The daysInYear read-only property gives the number of days in the year that the date /// falls in. For the ISO 8601 calendar, this is 365 or 366, depending on whether the year /// is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInYear)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInYear")] pub fn days_in_year(this: &ZonedDateTime) -> u32; /// The monthsInYear read-only property gives the number of months in the year that the date /// falls in. For the ISO 8601 calendar, this is always 12, but in other calendar systems /// it may differ from year to year. - #[wasm_bindgen(method, getter, structural, js_name = monthsInWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "monthsInWeek")] pub fn months_in_year(this: &ZonedDateTime) -> u32; /// The inLeapYear read-only property tells whether the year that the date falls in is a /// leap year or not. Its value is true if the year is a leap year, and false if not. - #[wasm_bindgen(method, getter, structural, js_name = inLeapYear)] + #[wasm_bindgen(method, getter, structural, js_name = "inLeapYear")] pub fn in_leap_year(this: &ZonedDateTime) -> bool; /// The `hoursInDay` read-only property returns the number of real-world hours @@ -333,10 +333,10 @@ extern "C" { /// long, but on days where there are DST changes or other time zone transitions, this /// property may return 23 or 25. In rare cases, other integers or even non-integer /// values may be returned, e.g. when time zone definitions change by less than one hour. - #[wasm_bindgen(method, getter, structural, js_name = inLeapYear)] + #[wasm_bindgen(method, getter, structural, js_name = "inLeapYear")] pub fn hours_in_day(this: &ZonedDateTime) -> u32; - #[wasm_bindgen(method, getter, structural, js_name = startOfDay)] + #[wasm_bindgen(method, getter, structural, js_name = "startOfDay")] pub fn start_of_day(this: &ZonedDateTime) -> ZonedDateTime; /// The offset read-only property is the offset (formatted as a string) relative @@ -346,17 +346,17 @@ extern "C" { /// This method creates a new Temporal.ZonedDateTime which is a copy of zonedDateTime, but any /// properties present on parameter override the ones already present on zonedDateTime. - #[wasm_bindgen(method, js_name = withPlainDate)] + #[wasm_bindgen(method, js_name = "withPlainDate")] pub fn with(this: &ZonedDateTime, parameter: &JsValue, options: &JsValue) -> ZonedDateTime; /// Returns a new `Temporal.ZonedDateTime` object which replaces the calendar date of zonedDateTime /// with the calendar date represented by plainDate. - #[wasm_bindgen(method, js_name = withPlainDate)] + #[wasm_bindgen(method, js_name = "withPlainDate")] pub fn with_plain_date(this: &ZonedDateTime, date: &PlainDate) -> ZonedDateTime; /// Returns a new `Temporal.ZonedDateTime` object which is the date indicated by date, projected /// into calendar. - #[wasm_bindgen(method, js_name = withCalendar)] + #[wasm_bindgen(method, js_name = "withCalendar")] pub fn with_calendar(this: &ZonedDateTime, calendar: &str) -> ZonedDateTime; /// This method adds duration to zonedDateTime. @@ -395,20 +395,20 @@ extern "C" { /// /// This is an advanced method that's mainly useful if you are implementing a custom calendar. Most /// developers will not need to use it. - #[wasm_bindgen(method, js_name = getISOFields)] + #[wasm_bindgen(method, js_name = "getISOFields")] pub fn get_iso_fields(this: &ZonedDateTime) -> JsValue; } #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type Duration; - #[wasm_bindgen(static_method_of = Duration, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "Duration", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> Duration; - #[wasm_bindgen(static_method_of = Duration, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "Duration", js_namespace = "Temporal")] pub fn compare(one: &Duration, two: &Duration) -> i32; #[wasm_bindgen(method, getter, structural)] @@ -480,33 +480,33 @@ extern "C" { /// This method overrides `Object.prototype.toString()` and provides the ISO 8601 /// description of the duration. - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Duration, options: &JsValue) -> JsString; /// This method is the same as duration.toString(). It is usually not called directly, but /// it can be called automatically by JSON.stringify(). - #[wasm_bindgen(method, js_name = toJson)] + #[wasm_bindgen(method, js_name = "toJson")] pub fn to_json(this: &Duration) -> JsString; /// This method overrides `Object.prototype.toLocaleString()` to provide a human-readable, /// language-sensitive representation of duration. /// /// The locales and options arguments are the same as in the constructor to Intl.DurationFormat. - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &Duration, locales: &JsValue, options: &JsValue) -> JsString; } #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type PlainTime; - #[wasm_bindgen(static_method_of = PlainTime, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainTime", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> PlainTime; - #[wasm_bindgen(static_method_of = PlainTime, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainTime", js_namespace = "Temporal")] pub fn compare(one: &PlainTime, two: &PlainTime) -> i32; #[wasm_bindgen(method, getter, structural)] @@ -557,7 +557,7 @@ extern "C" { /// language-sensitive representation of duration. /// /// The locales and options arguments are the same as in the constructor to Intl.DateTimeFormat. - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &PlainTime, locales: &JsValue, options: &JsValue) -> JsString; /// Returns: a plain object with properties expressing PlainTime in the ISO 8601 calendar, including @@ -565,7 +565,7 @@ extern "C" { /// /// This is an advanced method that's mainly useful if you are implementing a custom calendar. Most /// developers will not need to use it. - #[wasm_bindgen(method, js_name = getISOFields)] + #[wasm_bindgen(method, js_name = "getISOFields")] pub fn get_iso_fields(this: &PlainTime) -> JsValue; } @@ -575,14 +575,14 @@ extern "C" { /// A Temporal.PlainYearMonth represents a particular month on the calendar. For example, it /// could be used to represent a particular instance of a monthly recurring event, like "the /// June 2019 meeting". - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type PlainYearMonth; - #[wasm_bindgen(static_method_of = PlainYearMonth, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainYearMonth", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> PlainYearMonth; - #[wasm_bindgen(static_method_of = PlainYearMonth, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainYearMonth", js_namespace = "Temporal")] pub fn compare(one: &PlainYearMonth, two: &PlainYearMonth) -> i32; /// `year` is a signed integer representing the number of years relative to a @@ -611,7 +611,7 @@ extern "C" { /// * 'M02' => February; /// * 'M08L' => repeated 8th month in the Chinese calendar; /// * 'M05L' => Adar I in the Hebrew calendar. - #[wasm_bindgen(method, getter, structural, js_name = monthCode)] + #[wasm_bindgen(method, getter, structural, js_name = "monthCode")] pub fn month_code(this: &PlainYearMonth) -> JsString; /// In calendars that use eras, the era and eraYear read-only properties can be used @@ -619,7 +619,7 @@ extern "C" { /// the ISO 8601 calendar. As inputs to from or with, era and eraYear can be used instead /// of year. Unlike year, eraYear may decrease as time proceeds because some /// eras (like the BCE era in the Gregorian calendar) count years backwards. - #[wasm_bindgen(method, getter, structural, js_name = eraYear)] + #[wasm_bindgen(method, getter, structural, js_name = "eraYear")] pub fn era_year(this: &PlainYearMonth) -> JsValue; /// In calendars that use eras, the era and eraYear read-only properties can be used @@ -633,24 +633,24 @@ extern "C" { /// The daysInMonth read-only property gives the number of days in the month that the /// date falls in. For the ISO 8601 calendar, this is 28, 29, 30, or 31, depending /// on the month and whether the year is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInMonth)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInMonth")] pub fn days_in_month(this: &PlainYearMonth) -> u32; /// The daysInYear read-only property gives the number of days in the year that the date /// falls in. For the ISO 8601 calendar, this is 365 or 366, depending on whether the year /// is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInYear)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInYear")] pub fn days_in_year(this: &PlainYearMonth) -> u32; /// The monthsInYear read-only property gives the number of months in the year that the date /// falls in. For the ISO 8601 calendar, this is always 12, but in other calendar systems /// it may differ from year to year. - #[wasm_bindgen(method, getter, structural, js_name = monthsInWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "monthsInWeek")] pub fn months_in_year(this: &PlainYearMonth) -> u32; /// The inLeapYear read-only property tells whether the year that the date falls in is a /// leap year or not. Its value is true if the year is a leap year, and false if not. - #[wasm_bindgen(method, getter, structural, js_name = inLeapYear)] + #[wasm_bindgen(method, getter, structural, js_name = "inLeapYear")] pub fn in_leap_year(this: &PlainYearMonth) -> bool; /// **Parameters:** @@ -727,14 +727,14 @@ extern "C" { /// This method overrides the Object.prototype.toString() method and provides a convenient, unambiguous /// string representation of date. The string can be passed to Temporal.PlainYearMonth.from() to /// create a new Temporal.PlainDate object. - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &PlainYearMonth) -> JsString; /// This method overrides `Object.prototype.toLocaleString()` to provide a human-readable, /// language-sensitive representation of duration. /// /// The locales and options arguments are the same as in the constructor to Intl.DateTimeFormat. - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string( this: &PlainYearMonth, locales: &JsValue, @@ -746,7 +746,7 @@ extern "C" { /// /// This method is mainly useful if you are implementing a custom calendar. Most /// code will not need to use it. - #[wasm_bindgen(method, js_name = getISOFields)] + #[wasm_bindgen(method, js_name = "getISOFields")] pub fn get_iso_fields(this: &PlainYearMonth) -> JsValue; } @@ -755,14 +755,14 @@ extern "C" { extern "C" { /// A date without a year component. This is useful to express /// things like "Bastille Day is on the 14th of July". - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type PlainMonthDay; - #[wasm_bindgen(static_method_of = PlainMonthDay, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainMonthDay", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> PlainMonthDay; - #[wasm_bindgen(static_method_of = PlainMonthDay, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainMonthDay", js_namespace = "Temporal")] pub fn compare(one: &PlainMonthDay, two: &PlainMonthDay) -> i32; /// `monthCode` is a calendar-specific string that identifies the month in @@ -778,7 +778,7 @@ extern "C" { /// Note that this type has no month property, because month is ambiguous for some /// calendars without knowing the year. Instead, the monthCode property is used which /// is year-independent in all calendars. - #[wasm_bindgen(method, getter, structural, js_name = monthCode)] + #[wasm_bindgen(method, getter, structural, js_name = "monthCode")] pub fn month_code(this: &PlainMonthDay) -> JsString; /// day is a positive integer representing the day of the month. @@ -800,14 +800,14 @@ extern "C" { /// This method overrides the Object.prototype.toString() method and provides a convenient, unambiguous /// string representation of date. The string can be passed to Temporal.PlainMonthDay.from() to /// create a new Temporal.PlainMonthDay object. - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &PlainMonthDay) -> JsString; /// This method overrides `Object.prototype.toLocaleString()` to provide a human-readable, /// language-sensitive representation of duration. /// /// The locales and options arguments are the same as in the constructor to Intl.DateTimeFormat. - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &PlainMonthDay, locales: &JsValue, options: &JsValue) -> JsString; @@ -816,24 +816,24 @@ extern "C" { /// /// This method is mainly useful if you are implementing a custom calendar. Most /// code will not need to use it. - #[wasm_bindgen(method, js_name = getISOFields)] + #[wasm_bindgen(method, js_name = "getISOFields")] pub fn get_iso_fields(this: &PlainMonthDay) -> JsValue; } #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = Temporal, extends = Object)] + #[wasm_bindgen(js_namespace = "Temporal", extends = "Object")] #[derive(Clone, Debug)] pub type PlainDate; - #[wasm_bindgen(js_namespace = Temporal, constructor)] + #[wasm_bindgen(js_namespace = "Temporal", constructor)] pub fn new(year: i32, month: u32, day: u32) -> PlainDate; - #[wasm_bindgen(static_method_of = PlainDate, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainDate", js_namespace = "Temporal")] pub fn from(val: &JsValue) -> PlainDate; - #[wasm_bindgen(static_method_of = PlainDate, js_namespace = Temporal)] + #[wasm_bindgen(static_method_of = "PlainDate", js_namespace = "Temporal")] pub fn compare(one: &PlainDate, two: &PlainDate) -> i32; /// `year` is a signed integer representing the number of years relative to a @@ -862,7 +862,7 @@ extern "C" { /// * 'M02' => February; /// * 'M08L' => repeated 8th month in the Chinese calendar; /// * 'M05L' => Adar I in the Hebrew calendar. - #[wasm_bindgen(method, getter, structural, js_name = monthCode)] + #[wasm_bindgen(method, getter, structural, js_name = "monthCode")] pub fn month_code(this: &PlainDate) -> JsString; /// day is a positive integer representing the day of the month. @@ -874,7 +874,7 @@ extern "C" { /// the ISO 8601 calendar. As inputs to from or with, era and eraYear can be used instead /// of year. Unlike year, eraYear may decrease as time proceeds because some /// eras (like the BCE era in the Gregorian calendar) count years backwards. - #[wasm_bindgen(method, getter, structural, js_name = eraYear)] + #[wasm_bindgen(method, getter, structural, js_name = "eraYear")] pub fn era_year(this: &PlainDate) -> JsValue; /// In calendars that use eras, the era and eraYear read-only properties can be used @@ -888,53 +888,53 @@ extern "C" { /// The dayOfWeek read-only property gives the weekday number that the date falls /// on. For the ISO 8601 calendar, the weekday number is defined as in the ISO 8601 /// standard: a value between 1 and 7, inclusive, with Monday being 1, and Sunday 7. - #[wasm_bindgen(method, getter, structural, js_name = dayOfWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "dayOfWeek")] pub fn day_of_week(this: &PlainDate) -> u32; /// The dayOfYear read-only property gives the ordinal day of the year that the date /// falls on. For the ISO 8601 calendar, this is a value between 1 and 365, or 366 in /// a leap year. - #[wasm_bindgen(method, getter, structural, js_name = dayOfYear)] + #[wasm_bindgen(method, getter, structural, js_name = "dayOfYear")] pub fn day_of_year(this: &PlainDate) -> u32; /// The weekOfYear read-only property gives the ISO week number of the date. For the /// ISO 8601 calendar, this is normally a value between 1 and 52, but in a few cases it /// can be 53 as well. ISO week 1 is the week containing the first Thursday of the year. - #[wasm_bindgen(method, getter, structural, js_name = weekOfYear)] + #[wasm_bindgen(method, getter, structural, js_name = "weekOfYear")] pub fn week_of_year(this: &PlainDate) -> u32; /// The daysInWeek read-only property gives the number of days in the week that the /// date falls in. For the ISO 8601 calendar, this is always 7, but in other calendar /// systems it may differ from week to week. - #[wasm_bindgen(method, getter, structural, js_name = daysInWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInWeek")] pub fn days_in_week(this: &PlainDate) -> u32; /// The daysInMonth read-only property gives the number of days in the month that the /// date falls in. For the ISO 8601 calendar, this is 28, 29, 30, or 31, depending /// on the month and whether the year is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInMonth)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInMonth")] pub fn days_in_month(this: &PlainDate) -> u32; /// The daysInYear read-only property gives the number of days in the year that the date /// falls in. For the ISO 8601 calendar, this is 365 or 366, depending on whether the year /// is a leap year. - #[wasm_bindgen(method, getter, structural, js_name = daysInYear)] + #[wasm_bindgen(method, getter, structural, js_name = "daysInYear")] pub fn days_in_year(this: &PlainDate) -> u32; /// The monthsInYear read-only property gives the number of months in the year that the date /// falls in. For the ISO 8601 calendar, this is always 12, but in other calendar systems /// it may differ from year to year. - #[wasm_bindgen(method, getter, structural, js_name = monthsInWeek)] + #[wasm_bindgen(method, getter, structural, js_name = "monthsInWeek")] pub fn months_in_year(this: &PlainDate) -> u32; /// The inLeapYear read-only property tells whether the year that the date falls in is a /// leap year or not. Its value is true if the year is a leap year, and false if not. - #[wasm_bindgen(method, getter, structural, js_name = inLeapYear)] + #[wasm_bindgen(method, getter, structural, js_name = "inLeapYear")] pub fn in_leap_year(this: &PlainDate) -> bool; /// Returns a new `Temporal.PlainDate` object which is the date indicated by date, projected /// into calendar. - #[wasm_bindgen(method, js_name = withCalendar)] + #[wasm_bindgen(method, js_name = "withCalendar")] pub fn with_calendar(this: &PlainDate, calendar: &str) -> PlainDate; /// **Parameters:** @@ -1010,14 +1010,14 @@ extern "C" { /// This method overrides the Object.prototype.toString() method and provides a convenient, unambiguous /// string representation of date. The string can be passed to Temporal.PlainDate.from() to /// create a new Temporal.PlainDate object. - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &PlainDate) -> JsString; /// This method overrides `Object.prototype.toLocaleString()` to provide a human-readable, /// language-sensitive representation of duration. /// /// The locales and options arguments are the same as in the constructor to Intl.DateTimeFormat. - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &PlainDate, locales: &JsValue, options: &JsValue) -> JsString; /// Returns: a plain object with properties expressing date in the ISO 8601 @@ -1025,7 +1025,7 @@ extern "C" { /// /// This method is mainly useful if you are implementing a custom calendar. Most /// code will not need to use it. - #[wasm_bindgen(method, js_name = getISOFields)] + #[wasm_bindgen(method, js_name = "getISOFields")] pub fn get_iso_fields(this: &PlainDate) -> JsValue; } @@ -1038,19 +1038,19 @@ pub mod Now { #[wasm_bindgen(js_namespace = ["Temporal", "Now"])] pub fn instant() -> Instant; - #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = zonedDateTime)] + #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = "zonedDateTime")] pub fn zoned_date_time(calendar: &str) -> ZonedDateTime; - #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = zonedDateTimeISO)] + #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = "zonedDateTimeISO")] pub fn zoned_date_time_iso() -> ZonedDateTime; - #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = plainDate)] + #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = "plainDate")] pub fn plain_date(calendar: &str) -> PlainDate; - #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = plainDateISO)] + #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = "plainDateISO")] pub fn plain_date_iso() -> PlainDate; - #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = plainTimeISO)] + #[wasm_bindgen(js_namespace = ["Temporal", "Now"], js_name = "plainTimeISO")] pub fn plain_time_iso() -> PlainTime; } diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 2972376bd22..1b6500fef13 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -218,14 +218,14 @@ extern "C" { /// previously created by `encodeURI` or by a similar routine. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURI) - #[wasm_bindgen(catch, js_name = decodeURI)] + #[wasm_bindgen(catch, js_name = "decodeURI")] pub fn decode_uri(encoded: &str) -> Result; /// The `decodeURIComponent()` function decodes a Uniform Resource Identifier (URI) component /// previously created by `encodeURIComponent` or by a similar routine. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent) - #[wasm_bindgen(catch, js_name = decodeURIComponent)] + #[wasm_bindgen(catch, js_name = "decodeURIComponent")] pub fn decode_uri_component(encoded: &str) -> Result; /// The `encodeURI()` function encodes a Uniform Resource Identifier (URI) @@ -235,7 +235,7 @@ extern "C" { /// "surrogate" characters). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI) - #[wasm_bindgen(js_name = encodeURI)] + #[wasm_bindgen(js_name = "encodeURI")] pub fn encode_uri(decoded: &str) -> JsString; /// The `encodeURIComponent()` function encodes a Uniform Resource Identifier (URI) component @@ -244,7 +244,7 @@ extern "C" { /// (will only be four escape sequences for characters composed of two "surrogate" characters). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) - #[wasm_bindgen(js_name = encodeURIComponent)] + #[wasm_bindgen(js_name = "encodeURIComponent")] pub fn encode_uri_component(decoded: &str) -> JsString; /// The `eval()` function evaluates JavaScript code represented as a string. @@ -257,21 +257,21 @@ extern "C" { /// If needed, the parameter is first converted to a number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite) - #[wasm_bindgen(js_name = isFinite)] + #[wasm_bindgen(js_name = "isFinite")] pub fn is_finite(value: &JsValue) -> bool; /// The `parseInt()` function parses a string argument and returns an integer /// of the specified radix (the base in mathematical numeral systems), or NaN on error. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt) - #[wasm_bindgen(js_name = parseInt)] + #[wasm_bindgen(js_name = "parseInt")] pub fn parse_int(text: &str, radix: u8) -> f64; /// The `parseFloat()` function parses an argument and returns a floating point number, /// or NaN on error. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat) - #[wasm_bindgen(js_name = parseFloat)] + #[wasm_bindgen(js_name = "parseFloat")] pub fn parse_float(text: &str) -> f64; /// The `escape()` function computes a new string in which certain characters have been @@ -294,7 +294,11 @@ extern "C" { // Array #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, is_type_of = Array::is_array, typescript_type = "Array")] + #[wasm_bindgen( + extends = "Object", + is_type_of = "Array::is_array", + typescript_type = "Array" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type Array; @@ -329,14 +333,14 @@ extern "C" { /// The `Array.from()` method creates a new, shallow-copied `Array` instance /// from an array-like or iterable object. - #[wasm_bindgen(static_method_of = Array)] + #[wasm_bindgen(static_method_of = "Array")] pub fn from(val: &JsValue) -> Array; /// The `copyWithin()` method shallow copies part of an array to another /// location in the same array and returns it, without modifying its size. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin) - #[wasm_bindgen(method, js_name = copyWithin)] + #[wasm_bindgen(method, js_name = "copyWithin")] pub fn copy_within(this: &Array, target: i32, start: i32, end: i32) -> Array; /// The `concat()` method is used to merge two or more arrays. This method @@ -378,7 +382,7 @@ extern "C" { /// satisfies the provided testing function. Otherwise -1 is returned. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) - #[wasm_bindgen(method, js_name = findIndex)] + #[wasm_bindgen(method, js_name = "findIndex")] pub fn find_index(this: &Array, predicate: &mut dyn FnMut(JsValue, u32, Array) -> bool) -> i32; /// The `flat()` method creates a new array with all sub-array elements concatenated into it @@ -392,7 +396,7 @@ extern "C" { /// the result into a new array. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap) - #[wasm_bindgen(method, js_name = flatMap)] + #[wasm_bindgen(method, js_name = "flatMap")] pub fn flat_map( this: &Array, callback: &mut dyn FnMut(JsValue, u32, Array) -> Vec, @@ -401,7 +405,7 @@ extern "C" { /// The `forEach()` method executes a provided function once for each array element. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach) - #[wasm_bindgen(method, js_name = forEach)] + #[wasm_bindgen(method, js_name = "forEach")] pub fn for_each(this: &Array, callback: &mut dyn FnMut(JsValue, u32, Array)); /// The `includes()` method determines whether an array includes a certain @@ -415,13 +419,13 @@ extern "C" { /// can be found in the array, or -1 if it is not present. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf) - #[wasm_bindgen(method, js_name = indexOf)] + #[wasm_bindgen(method, js_name = "indexOf")] pub fn index_of(this: &Array, value: &JsValue, from_index: i32) -> i32; /// The `Array.isArray()` method determines whether the passed value is an Array. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray) - #[wasm_bindgen(static_method_of = Array, js_name = isArray)] + #[wasm_bindgen(static_method_of = "Array", js_name = "isArray")] pub fn is_array(value: &JsValue) -> bool; /// The `join()` method joins all elements of an array (or an array-like object) @@ -436,7 +440,7 @@ extern "C" { /// searched backwards, starting at fromIndex. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf) - #[wasm_bindgen(method, js_name = lastIndexOf)] + #[wasm_bindgen(method, js_name = "lastIndexOf")] pub fn last_index_of(this: &Array, value: &JsValue, from_index: i32) -> i32; /// The length property of an object which is an instance of type Array @@ -473,23 +477,23 @@ extern "C" { /// /// There are a few bindings to `of` in `js-sys`: `of1`, `of2`, etc... /// with different arities. - #[wasm_bindgen(static_method_of = Array, js_name = of)] + #[wasm_bindgen(static_method_of = "Array", js_name = "of")] pub fn of1(a: &JsValue) -> Array; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of) - #[wasm_bindgen(static_method_of = Array, js_name = of)] + #[wasm_bindgen(static_method_of = "Array", js_name = "of")] pub fn of2(a: &JsValue, b: &JsValue) -> Array; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of) - #[wasm_bindgen(static_method_of = Array, js_name = of)] + #[wasm_bindgen(static_method_of = "Array", js_name = "of")] pub fn of3(a: &JsValue, b: &JsValue, c: &JsValue) -> Array; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of) - #[wasm_bindgen(static_method_of = Array, js_name = of)] + #[wasm_bindgen(static_method_of = "Array", js_name = "of")] pub fn of4(a: &JsValue, b: &JsValue, c: &JsValue, d: &JsValue) -> Array; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of) - #[wasm_bindgen(static_method_of = Array, js_name = of)] + #[wasm_bindgen(static_method_of = "Array", js_name = "of")] pub fn of5(a: &JsValue, b: &JsValue, c: &JsValue, d: &JsValue, e: &JsValue) -> Array; /// The `pop()` method removes the last element from an array and returns that @@ -521,7 +525,7 @@ extern "C" { /// of the array (from right-to-left) to reduce it to a single value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/ReduceRight) - #[wasm_bindgen(method, js_name = reduceRight)] + #[wasm_bindgen(method, js_name = "reduceRight")] pub fn reduce_right( this: &Array, predicate: &mut dyn FnMut(JsValue, JsValue, u32, Array) -> JsValue, @@ -580,14 +584,14 @@ extern "C" { /// Strings are separated by a locale-specific String (such as a comma “,”). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toLocaleString) - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &Array, locales: &JsValue, options: &JsValue) -> JsString; /// The `toString()` method returns a string representing the specified array /// and its elements. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString) - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Array) -> JsString; /// The `unshift()` method adds one or more elements to the beginning of an @@ -691,7 +695,7 @@ impl Default for Array { // ArrayBuffer #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "ArrayBuffer")] + #[wasm_bindgen(extends = "Object", typescript_type = "ArrayBuffer")] #[derive(Clone, Debug, PartialEq, Eq)] pub type ArrayBuffer; @@ -713,14 +717,14 @@ extern "C" { /// This property returns 0 if this ArrayBuffer has been detached. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength) - #[wasm_bindgen(method, getter, js_name = byteLength)] + #[wasm_bindgen(method, getter, js_name = "byteLength")] pub fn byte_length(this: &ArrayBuffer) -> u32; /// The `isView()` method returns true if arg is one of the `ArrayBuffer` /// views, such as typed array objects or a DataView; false otherwise. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView) - #[wasm_bindgen(static_method_of = ArrayBuffer, js_name = isView)] + #[wasm_bindgen(static_method_of = "ArrayBuffer", js_name = "isView")] pub fn is_view(value: &JsValue) -> bool; /// The `slice()` method returns a new `ArrayBuffer` whose contents @@ -734,14 +738,14 @@ extern "C" { /// Like `slice()` but with the `end` argument. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/slice) - #[wasm_bindgen(method, js_name = slice)] + #[wasm_bindgen(method, js_name = "slice")] pub fn slice_with_end(this: &ArrayBuffer, begin: u32, end: u32) -> ArrayBuffer; } // SharedArrayBuffer #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "SharedArrayBuffer")] + #[wasm_bindgen(extends = "Object", typescript_type = "SharedArrayBuffer")] #[derive(Clone, Debug)] pub type SharedArrayBuffer; @@ -760,7 +764,7 @@ extern "C" { /// the `SharedArrayBuffer` is constructed and cannot be changed. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/byteLength) - #[wasm_bindgen(method, getter, js_name = byteLength)] + #[wasm_bindgen(method, getter, js_name = "byteLength")] pub fn byte_length(this: &SharedArrayBuffer) -> u32; /// The `slice()` method returns a new `SharedArrayBuffer` whose contents @@ -774,7 +778,7 @@ extern "C" { /// Like `slice()` but with the `end` argument. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/slice) - #[wasm_bindgen(method, js_name = slice)] + #[wasm_bindgen(method, js_name = "slice")] pub fn slice_with_end(this: &SharedArrayBuffer, begin: u32, end: u32) -> SharedArrayBuffer; } @@ -824,7 +828,7 @@ pub mod Atomics { /// until the modified value is written back. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/add) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn add(typed_array: &JsValue, index: u32, value: i32) -> Result; /// The static `Atomics.and()` method computes a bitwise AND with a given @@ -834,7 +838,7 @@ pub mod Atomics { /// until the modified value is written back. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/and) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn and(typed_array: &JsValue, index: u32, value: i32) -> Result; /// The static `Atomics.compareExchange()` method exchanges a given @@ -845,7 +849,7 @@ pub mod Atomics { /// until the modified value is written back. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/compareExchange) - #[wasm_bindgen(js_namespace = Atomics, catch, js_name = compareExchange)] + #[wasm_bindgen(js_namespace = "Atomics", catch, js_name = "compareExchange")] pub fn compare_exchange( typed_array: &JsValue, index: u32, @@ -859,7 +863,7 @@ pub mod Atomics { /// until the modified value is written back. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/exchange) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn exchange(typed_array: &JsValue, index: u32, value: i32) -> Result; /// The static `Atomics.isLockFree()` method is used to determine @@ -868,14 +872,14 @@ pub mod Atomics { /// of integer `TypedArray` types. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/isLockFree) - #[wasm_bindgen(js_namespace = Atomics, js_name = isLockFree)] + #[wasm_bindgen(js_namespace = "Atomics", js_name = "isLockFree")] pub fn is_lock_free(size: u32) -> bool; /// The static `Atomics.load()` method returns a value at a given /// position in the array. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/load) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn load(typed_array: &JsValue, index: u32) -> Result; /// The static `Atomics.notify()` method notifies up some agents that @@ -884,11 +888,11 @@ pub mod Atomics { /// If `count` is not provided, notifies all the agents in the queue. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/notify) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn notify(typed_array: &Int32Array, index: u32) -> Result; /// Notifies up to `count` agents in the wait queue. - #[wasm_bindgen(js_namespace = Atomics, catch, js_name = notify)] + #[wasm_bindgen(js_namespace = "Atomics", catch, js_name = "notify")] pub fn notify_with_count( typed_array: &Int32Array, index: u32, @@ -901,14 +905,14 @@ pub mod Atomics { /// until the modified value is written back. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/or) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn or(typed_array: &JsValue, index: u32, value: i32) -> Result; /// The static `Atomics.store()` method stores a given value at the given /// position in the array and returns that value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/store) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn store(typed_array: &JsValue, index: u32, value: i32) -> Result; /// The static `Atomics.sub()` method substracts a given value at a @@ -917,7 +921,7 @@ pub mod Atomics { /// until the modified value is written back. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/sub) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn sub(typed_array: &JsValue, index: u32, value: i32) -> Result; /// The static `Atomics.wait()` method verifies that a given @@ -928,13 +932,13 @@ pub mod Atomics { /// and may not be allowed on the main thread. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn wait(typed_array: &Int32Array, index: u32, value: i32) -> Result; /// Like `wait()`, but with timeout /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait) - #[wasm_bindgen(js_namespace = Atomics, catch, js_name = wait)] + #[wasm_bindgen(js_namespace = "Atomics", catch, js_name = "wait")] pub fn wait_with_timeout( typed_array: &Int32Array, index: u32, @@ -949,7 +953,7 @@ pub mod Atomics { /// until the modified value is written back. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/xor) - #[wasm_bindgen(js_namespace = Atomics, catch)] + #[wasm_bindgen(js_namespace = "Atomics", catch)] pub fn xor(typed_array: &JsValue, index: u32, value: i32) -> Result; } } @@ -957,47 +961,51 @@ pub mod Atomics { // BigInt #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, is_type_of = |v| v.is_bigint(), typescript_type = "bigint")] + #[wasm_bindgen( + extends = "Object", + is_type_of = "|v| v.is_bigint()", + typescript_type = "bigint" + )] #[derive(Clone, PartialEq, Eq)] pub type BigInt; - #[wasm_bindgen(catch, js_name = BigInt)] + #[wasm_bindgen(catch, js_name = "BigInt")] fn new_bigint(value: &JsValue) -> Result; - #[wasm_bindgen(js_name = BigInt)] + #[wasm_bindgen(js_name = "BigInt")] fn new_bigint_unchecked(value: &JsValue) -> BigInt; /// Clamps a BigInt value to a signed integer value, and returns that value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN) - #[wasm_bindgen(static_method_of = BigInt, js_name = asIntN)] + #[wasm_bindgen(static_method_of = "BigInt", js_name = "asIntN")] pub fn as_int_n(bits: f64, bigint: &BigInt) -> BigInt; /// Clamps a BigInt value to an unsigned integer value, and returns that value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN) - #[wasm_bindgen(static_method_of = BigInt, js_name = asUintN)] + #[wasm_bindgen(static_method_of = "BigInt", js_name = "asUintN")] pub fn as_uint_n(bits: f64, bigint: &BigInt) -> BigInt; /// Returns a string with a language-sensitive representation of this BigInt value. Overrides the [`Object.prototype.toLocaleString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toLocaleString) method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toLocaleString) - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &BigInt, locales: &JsValue, options: &JsValue) -> JsString; /// Returns a string representing this BigInt value in the specified radix (base). Overrides the [`Object.prototype.toString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString) method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString) - #[wasm_bindgen(catch, method, js_name = toString)] + #[wasm_bindgen(catch, method, js_name = "toString")] pub fn to_string(this: &BigInt, radix: u8) -> Result; - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] fn to_string_unchecked(this: &BigInt, radix: u8) -> String; /// Returns this BigInt value. Overrides the [`Object.prototype.valueOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf) method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/valueOf) - #[wasm_bindgen(method, js_name = valueOf)] + #[wasm_bindgen(method, js_name = "valueOf")] pub fn value_of(this: &BigInt, radix: u8) -> BigInt; } @@ -1170,7 +1178,11 @@ impl fmt::UpperHex for BigInt { // Boolean #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, is_type_of = |v| v.as_bool().is_some(), typescript_type = "boolean")] + #[wasm_bindgen( + extends = "Object", + is_type_of = "|v| v.as_bool().is_some()", + typescript_type = "boolean" + )] #[derive(Clone, PartialEq, Eq)] pub type Boolean; @@ -1185,7 +1197,7 @@ extern "C" { /// The `valueOf()` method returns the primitive value of a `Boolean` object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/valueOf) - #[wasm_bindgen(method, js_name = valueOf)] + #[wasm_bindgen(method, js_name = "valueOf")] pub fn value_of(this: &Boolean) -> bool; } @@ -1244,7 +1256,7 @@ partialord_ord!(Boolean); // DataView #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "DataView")] + #[wasm_bindgen(extends = "Object", typescript_type = "DataView")] #[derive(Clone, Debug, PartialEq, Eq)] pub type DataView; @@ -1266,217 +1278,217 @@ extern "C" { /// Fixed at construction time and thus read only. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteLength) - #[wasm_bindgen(method, getter, structural, js_name = byteLength)] + #[wasm_bindgen(method, getter, structural, js_name = "byteLength")] pub fn byte_length(this: &DataView) -> usize; /// The offset (in bytes) of this view from the start of its ArrayBuffer. /// Fixed at construction time and thus read only. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteOffset) - #[wasm_bindgen(method, getter, structural, js_name = byteOffset)] + #[wasm_bindgen(method, getter, structural, js_name = "byteOffset")] pub fn byte_offset(this: &DataView) -> usize; /// The `getInt8()` method gets a signed 8-bit integer (byte) at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt8) - #[wasm_bindgen(method, js_name = getInt8)] + #[wasm_bindgen(method, js_name = "getInt8")] pub fn get_int8(this: &DataView, byte_offset: usize) -> i8; /// The `getUint8()` method gets a unsigned 8-bit integer (byte) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint8) - #[wasm_bindgen(method, js_name = getUint8)] + #[wasm_bindgen(method, js_name = "getUint8")] pub fn get_uint8(this: &DataView, byte_offset: usize) -> u8; /// The `getInt16()` method gets a signed 16-bit integer (short) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt16) - #[wasm_bindgen(method, js_name = getInt16)] + #[wasm_bindgen(method, js_name = "getInt16")] pub fn get_int16(this: &DataView, byte_offset: usize) -> i16; /// The `getInt16()` method gets a signed 16-bit integer (short) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt16) - #[wasm_bindgen(method, js_name = getInt16)] + #[wasm_bindgen(method, js_name = "getInt16")] pub fn get_int16_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> i16; /// The `getUint16()` method gets an unsigned 16-bit integer (unsigned short) at the specified /// byte offset from the start of the view. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint16) - #[wasm_bindgen(method, js_name = getUint16)] + #[wasm_bindgen(method, js_name = "getUint16")] pub fn get_uint16(this: &DataView, byte_offset: usize) -> u16; /// The `getUint16()` method gets an unsigned 16-bit integer (unsigned short) at the specified /// byte offset from the start of the view. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint16) - #[wasm_bindgen(method, js_name = getUint16)] + #[wasm_bindgen(method, js_name = "getUint16")] pub fn get_uint16_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> u16; /// The `getInt32()` method gets a signed 32-bit integer (long) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32) - #[wasm_bindgen(method, js_name = getInt32)] + #[wasm_bindgen(method, js_name = "getInt32")] pub fn get_int32(this: &DataView, byte_offset: usize) -> i32; /// The `getInt32()` method gets a signed 32-bit integer (long) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32) - #[wasm_bindgen(method, js_name = getInt32)] + #[wasm_bindgen(method, js_name = "getInt32")] pub fn get_int32_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> i32; /// The `getUint32()` method gets an unsigned 32-bit integer (unsigned long) at the specified /// byte offset from the start of the view. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32) - #[wasm_bindgen(method, js_name = getUint32)] + #[wasm_bindgen(method, js_name = "getUint32")] pub fn get_uint32(this: &DataView, byte_offset: usize) -> u32; /// The `getUint32()` method gets an unsigned 32-bit integer (unsigned long) at the specified /// byte offset from the start of the view. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32) - #[wasm_bindgen(method, js_name = getUint32)] + #[wasm_bindgen(method, js_name = "getUint32")] pub fn get_uint32_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> u32; /// The `getFloat32()` method gets a signed 32-bit float (float) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat32) - #[wasm_bindgen(method, js_name = getFloat32)] + #[wasm_bindgen(method, js_name = "getFloat32")] pub fn get_float32(this: &DataView, byte_offset: usize) -> f32; /// The `getFloat32()` method gets a signed 32-bit float (float) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat32) - #[wasm_bindgen(method, js_name = getFloat32)] + #[wasm_bindgen(method, js_name = "getFloat32")] pub fn get_float32_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> f32; /// The `getFloat64()` method gets a signed 64-bit float (double) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat64) - #[wasm_bindgen(method, js_name = getFloat64)] + #[wasm_bindgen(method, js_name = "getFloat64")] pub fn get_float64(this: &DataView, byte_offset: usize) -> f64; /// The `getFloat64()` method gets a signed 64-bit float (double) at the specified /// byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat64) - #[wasm_bindgen(method, js_name = getFloat64)] + #[wasm_bindgen(method, js_name = "getFloat64")] pub fn get_float64_endian(this: &DataView, byte_offset: usize, little_endian: bool) -> f64; /// The `setInt8()` method stores a signed 8-bit integer (byte) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt8) - #[wasm_bindgen(method, js_name = setInt8)] + #[wasm_bindgen(method, js_name = "setInt8")] pub fn set_int8(this: &DataView, byte_offset: usize, value: i8); /// The `setUint8()` method stores an unsigned 8-bit integer (byte) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint8) - #[wasm_bindgen(method, js_name = setUint8)] + #[wasm_bindgen(method, js_name = "setUint8")] pub fn set_uint8(this: &DataView, byte_offset: usize, value: u8); /// The `setInt16()` method stores a signed 16-bit integer (short) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt16) - #[wasm_bindgen(method, js_name = setInt16)] + #[wasm_bindgen(method, js_name = "setInt16")] pub fn set_int16(this: &DataView, byte_offset: usize, value: i16); /// The `setInt16()` method stores a signed 16-bit integer (short) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt16) - #[wasm_bindgen(method, js_name = setInt16)] + #[wasm_bindgen(method, js_name = "setInt16")] pub fn set_int16_endian(this: &DataView, byte_offset: usize, value: i16, little_endian: bool); /// The `setUint16()` method stores an unsigned 16-bit integer (unsigned short) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint16) - #[wasm_bindgen(method, js_name = setUint16)] + #[wasm_bindgen(method, js_name = "setUint16")] pub fn set_uint16(this: &DataView, byte_offset: usize, value: u16); /// The `setUint16()` method stores an unsigned 16-bit integer (unsigned short) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint16) - #[wasm_bindgen(method, js_name = setUint16)] + #[wasm_bindgen(method, js_name = "setUint16")] pub fn set_uint16_endian(this: &DataView, byte_offset: usize, value: u16, little_endian: bool); /// The `setInt32()` method stores a signed 32-bit integer (long) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt32) - #[wasm_bindgen(method, js_name = setInt32)] + #[wasm_bindgen(method, js_name = "setInt32")] pub fn set_int32(this: &DataView, byte_offset: usize, value: i32); /// The `setInt32()` method stores a signed 32-bit integer (long) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt32) - #[wasm_bindgen(method, js_name = setInt32)] + #[wasm_bindgen(method, js_name = "setInt32")] pub fn set_int32_endian(this: &DataView, byte_offset: usize, value: i32, little_endian: bool); /// The `setUint32()` method stores an unsigned 32-bit integer (unsigned long) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint32) - #[wasm_bindgen(method, js_name = setUint32)] + #[wasm_bindgen(method, js_name = "setUint32")] pub fn set_uint32(this: &DataView, byte_offset: usize, value: u32); /// The `setUint32()` method stores an unsigned 32-bit integer (unsigned long) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint32) - #[wasm_bindgen(method, js_name = setUint32)] + #[wasm_bindgen(method, js_name = "setUint32")] pub fn set_uint32_endian(this: &DataView, byte_offset: usize, value: u32, little_endian: bool); /// The `setFloat32()` method stores a signed 32-bit float (float) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat32) - #[wasm_bindgen(method, js_name = setFloat32)] + #[wasm_bindgen(method, js_name = "setFloat32")] pub fn set_float32(this: &DataView, byte_offset: usize, value: f32); /// The `setFloat32()` method stores a signed 32-bit float (float) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat32) - #[wasm_bindgen(method, js_name = setFloat32)] + #[wasm_bindgen(method, js_name = "setFloat32")] pub fn set_float32_endian(this: &DataView, byte_offset: usize, value: f32, little_endian: bool); /// The `setFloat64()` method stores a signed 64-bit float (double) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat64) - #[wasm_bindgen(method, js_name = setFloat64)] + #[wasm_bindgen(method, js_name = "setFloat64")] pub fn set_float64(this: &DataView, byte_offset: usize, value: f64); /// The `setFloat64()` method stores a signed 64-bit float (double) value at the /// specified byte offset from the start of the DataView. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat64) - #[wasm_bindgen(method, js_name = setFloat64)] + #[wasm_bindgen(method, js_name = "setFloat64")] pub fn set_float64_endian(this: &DataView, byte_offset: usize, value: f64, little_endian: bool); } // Error #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "Error")] + #[wasm_bindgen(extends = "Object", typescript_type = "Error")] #[derive(Clone, Debug, PartialEq, Eq)] pub type Error; @@ -1519,7 +1531,7 @@ extern "C" { /// The `toString()` method returns a string representing the specified Error object /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/toString) - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Error) -> JsString; } @@ -1528,7 +1540,7 @@ partialord_ord!(JsString); // EvalError #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, extends = Error, typescript_type = "EvalError")] + #[wasm_bindgen(extends = "Object", extends = "Error", typescript_type = "EvalError")] #[derive(Clone, Debug, PartialEq, Eq)] pub type EvalError; @@ -1544,7 +1556,11 @@ extern "C" { // Function #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, is_type_of = JsValue::is_function, typescript_type = "Function")] + #[wasm_bindgen( + extends = "Object", + is_type_of = "JsValue::is_function", + typescript_type = "Function" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type Function; @@ -1581,21 +1597,21 @@ extern "C" { /// arguments provided individually. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call) - #[wasm_bindgen(method, catch, js_name = call)] + #[wasm_bindgen(method, catch, js_name = "call")] pub fn call0(this: &Function, context: &JsValue) -> Result; /// The `call()` method calls a function with a given this value and /// arguments provided individually. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call) - #[wasm_bindgen(method, catch, js_name = call)] + #[wasm_bindgen(method, catch, js_name = "call")] pub fn call1(this: &Function, context: &JsValue, arg1: &JsValue) -> Result; /// The `call()` method calls a function with a given this value and /// arguments provided individually. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call) - #[wasm_bindgen(method, catch, js_name = call)] + #[wasm_bindgen(method, catch, js_name = "call")] pub fn call2( this: &Function, context: &JsValue, @@ -1607,7 +1623,7 @@ extern "C" { /// arguments provided individually. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call) - #[wasm_bindgen(method, catch, js_name = call)] + #[wasm_bindgen(method, catch, js_name = "call")] pub fn call3( this: &Function, context: &JsValue, @@ -1620,35 +1636,35 @@ extern "C" { /// with a given sequence of arguments preceding any provided when the new function is called. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) - #[wasm_bindgen(method, js_name = bind)] + #[wasm_bindgen(method, js_name = "bind")] pub fn bind(this: &Function, context: &JsValue) -> Function; /// The `bind()` method creates a new function that, when called, has its this keyword set to the provided value, /// with a given sequence of arguments preceding any provided when the new function is called. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) - #[wasm_bindgen(method, js_name = bind)] + #[wasm_bindgen(method, js_name = "bind")] pub fn bind0(this: &Function, context: &JsValue) -> Function; /// The `bind()` method creates a new function that, when called, has its this keyword set to the provided value, /// with a given sequence of arguments preceding any provided when the new function is called. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) - #[wasm_bindgen(method, js_name = bind)] + #[wasm_bindgen(method, js_name = "bind")] pub fn bind1(this: &Function, context: &JsValue, arg1: &JsValue) -> Function; /// The `bind()` method creates a new function that, when called, has its this keyword set to the provided value, /// with a given sequence of arguments preceding any provided when the new function is called. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) - #[wasm_bindgen(method, js_name = bind)] + #[wasm_bindgen(method, js_name = "bind")] pub fn bind2(this: &Function, context: &JsValue, arg1: &JsValue, arg2: &JsValue) -> Function; /// The `bind()` method creates a new function that, when called, has its this keyword set to the provided value, /// with a given sequence of arguments preceding any provided when the new function is called. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) - #[wasm_bindgen(method, js_name = bind)] + #[wasm_bindgen(method, js_name = "bind")] pub fn bind3( this: &Function, context: &JsValue, @@ -1674,7 +1690,7 @@ extern "C" { /// The `toString()` method returns a string representing the source code of the function. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString) - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Function) -> JsString; } @@ -1699,7 +1715,7 @@ impl Default for Function { // Generator #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "Generator")] + #[wasm_bindgen(extends = "Object", typescript_type = "Generator")] #[derive(Clone, Debug, PartialEq, Eq)] pub type Generator; @@ -1713,7 +1729,7 @@ extern "C" { /// The `return()` method returns the given value and finishes the generator. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/return) - #[wasm_bindgen(method, structural, js_name = return)] + #[wasm_bindgen(method, structural, js_name = "return")] pub fn return_(this: &Generator, value: &JsValue) -> JsValue; /// The `throw()` method resumes the execution of a generator by throwing an error into it @@ -1727,7 +1743,7 @@ extern "C" { // Map #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "Map")] + #[wasm_bindgen(extends = "Object", typescript_type = "Map")] #[derive(Clone, Debug, PartialEq, Eq)] pub type Map; @@ -1754,7 +1770,7 @@ extern "C" { /// }) /// ``` /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach) - #[wasm_bindgen(method, js_name = forEach)] + #[wasm_bindgen(method, js_name = "forEach")] pub fn for_each(this: &Map, callback: &mut dyn FnMut(JsValue, JsValue)); /// The `get()` method returns a specified element from a Map object. @@ -1833,7 +1849,10 @@ extern "C" { /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) #[derive(Clone, Debug)] - #[wasm_bindgen(is_type_of = Iterator::looks_like_iterator, typescript_type = "Iterator")] + #[wasm_bindgen( + is_type_of = "Iterator::looks_like_iterator", + typescript_type = "Iterator" + )] pub type Iterator; /// The `next()` method always has to return an object with appropriate @@ -1872,7 +1891,10 @@ extern "C" { /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) #[derive(Clone, Debug)] - #[wasm_bindgen(is_type_of = Iterator::looks_like_iterator, typescript_type = "AsyncIterator")] + #[wasm_bindgen( + is_type_of = "Iterator::looks_like_iterator", + typescript_type = "AsyncIterator" + )] pub type AsyncIterator; /// The `next()` method always has to return a Promise which resolves to an object @@ -1993,7 +2015,7 @@ extern "C" { /// The result of calling `next()` on a JS iterator. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) - #[wasm_bindgen(extends = Object, typescript_type = "IteratorResult")] + #[wasm_bindgen(extends = "Object", typescript_type = "IteratorResult")] #[derive(Clone, Debug, PartialEq, Eq)] pub type IteratorNext; @@ -2024,7 +2046,7 @@ pub mod Math { /// Math.abs(x) = |x| /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn abs(x: f64) -> f64; /// The `Math.acos()` function returns the arccosine (in radians) of a @@ -2032,7 +2054,7 @@ pub mod Math { /// Math.acos(x) = arccos(x) = the unique y∊[0;π] such that cos(y)=x /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn acos(x: f64) -> f64; /// The `Math.acosh()` function returns the hyperbolic arc-cosine of a @@ -2040,7 +2062,7 @@ pub mod Math { /// Math.acosh(x) = arcosh(x) = the unique y ≥ 0 such that cosh(y) = x /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn acosh(x: f64) -> f64; /// The `Math.asin()` function returns the arcsine (in radians) of a @@ -2048,27 +2070,27 @@ pub mod Math { /// Math.asin(x) = arcsin(x) = the unique y∊[-π2;π2] such that sin(y) = x /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asin) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn asin(x: f64) -> f64; /// The `Math.asinh()` function returns the hyperbolic arcsine of a /// number, that is Math.asinh(x) = arsinh(x) = the unique y such that sinh(y) = x /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn asinh(x: f64) -> f64; /// The `Math.atan()` function returns the arctangent (in radians) of a /// number, that is Math.atan(x) = arctan(x) = the unique y ∊ [-π2;π2]such that /// tan(y) = x - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn atan(x: f64) -> f64; /// The `Math.atan2()` function returns the arctangent of the quotient of /// its arguments. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn atan2(y: f64, x: f64) -> f64; /// The `Math.atanh()` function returns the hyperbolic arctangent of a number, @@ -2076,125 +2098,125 @@ pub mod Math { /// tanh(y) = x /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atanh) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn atanh(x: f64) -> f64; /// The `Math.cbrt() `function returns the cube root of a number, that is /// Math.cbrt(x) = ∛x = the unique y such that y^3 = x /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn cbrt(x: f64) -> f64; /// The `Math.ceil()` function returns the smallest integer greater than /// or equal to a given number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn ceil(x: f64) -> f64; /// The `Math.clz32()` function returns the number of leading zero bits in /// the 32-bit binary representation of a number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn clz32(x: i32) -> u32; /// The `Math.cos()` static function returns the cosine of the specified angle, /// which must be specified in radians. This value is length(adjacent)/length(hypotenuse). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cos) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn cos(x: f64) -> f64; /// The `Math.cosh()` function returns the hyperbolic cosine of a number, /// that can be expressed using the constant e. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cosh) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn cosh(x: f64) -> f64; /// The `Math.exp()` function returns e^x, where x is the argument, and e is Euler's number /// (also known as Napier's constant), the base of the natural logarithms. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/exp) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn exp(x: f64) -> f64; /// The `Math.expm1()` function returns e^x - 1, where x is the argument, and e the base of the /// natural logarithms. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/expm1) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn expm1(x: f64) -> f64; /// The `Math.floor()` function returns the largest integer less than or /// equal to a given number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn floor(x: f64) -> f64; /// The `Math.fround()` function returns the nearest 32-bit single precision float representation /// of a Number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn fround(x: f64) -> f32; /// The `Math.hypot()` function returns the square root of the sum of squares of its arguments. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn hypot(x: f64, y: f64) -> f64; /// The `Math.imul()` function returns the result of the C-like 32-bit multiplication of the /// two parameters. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn imul(x: i32, y: i32) -> i32; /// The `Math.log()` function returns the natural logarithm (base e) of a number. /// The JavaScript `Math.log()` function is equivalent to ln(x) in mathematics. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn log(x: f64) -> f64; /// The `Math.log10()` function returns the base 10 logarithm of a number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log10) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn log10(x: f64) -> f64; /// The `Math.log1p()` function returns the natural logarithm (base e) of 1 + a number. /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn log1p(x: f64) -> f64; /// The `Math.log2()` function returns the base 2 logarithm of a number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log2) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn log2(x: f64) -> f64; /// The `Math.max()` function returns the largest of two numbers. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn max(x: f64, y: f64) -> f64; /// The static function `Math.min()` returns the lowest-valued number passed into it. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn min(x: f64, y: f64) -> f64; /// The `Math.pow()` function returns the base to the exponent power, that is, base^exponent. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn pow(base: f64, exponent: f64) -> f64; /// The `Math.random()` function returns a floating-point, pseudo-random number @@ -2204,60 +2226,60 @@ pub mod Math { /// it cannot be chosen or reset by the user. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn random() -> f64; /// The `Math.round()` function returns the value of a number rounded to the nearest integer. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn round(x: f64) -> f64; /// The `Math.sign()` function returns the sign of a number, indicating whether the number is /// positive, negative or zero. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn sign(x: f64) -> f64; /// The `Math.sin()` function returns the sine of a number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sin) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn sin(x: f64) -> f64; /// The `Math.sinh()` function returns the hyperbolic sine of a number, that can be expressed /// using the constant e: Math.sinh(x) = (e^x - e^-x)/2 /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sinh) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn sinh(x: f64) -> f64; /// The `Math.sqrt()` function returns the square root of a number, that is /// ∀x ≥ 0, Math.sqrt(x) = √x = the unique y ≥ 0 such that y^2 = x /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn sqrt(x: f64) -> f64; /// The `Math.tan()` function returns the tangent of a number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tan) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn tan(x: f64) -> f64; /// The `Math.tanh()` function returns the hyperbolic tangent of a number, that is /// tanh x = sinh x / cosh x = (e^x - e^-x)/(e^x + e^-x) = (e^2x - 1)/(e^2x + 1) /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tanh) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn tanh(x: f64) -> f64; /// The `Math.trunc()` function returns the integer part of a number by removing any fractional /// digits. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc) - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] pub fn trunc(x: f64) -> f64; } } @@ -2265,34 +2287,38 @@ pub mod Math { // Number. #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, is_type_of = |v| v.as_f64().is_some(), typescript_type = "number")] + #[wasm_bindgen( + extends = "Object", + is_type_of = "|v| v.as_f64().is_some()", + typescript_type = "number" + )] #[derive(Clone, PartialEq)] pub type Number; /// The `Number.isFinite()` method determines whether the passed value is a finite number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite) - #[wasm_bindgen(static_method_of = Number, js_name = isFinite)] + #[wasm_bindgen(static_method_of = "Number", js_name = "isFinite")] pub fn is_finite(value: &JsValue) -> bool; /// The `Number.isInteger()` method determines whether the passed value is an integer. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger) - #[wasm_bindgen(static_method_of = Number, js_name = isInteger)] + #[wasm_bindgen(static_method_of = "Number", js_name = "isInteger")] pub fn is_integer(value: &JsValue) -> bool; /// The `Number.isNaN()` method determines whether the passed value is `NaN` and its type is Number. /// It is a more robust version of the original, global isNaN(). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) - #[wasm_bindgen(static_method_of = Number, js_name = isNaN)] + #[wasm_bindgen(static_method_of = "Number", js_name = "isNaN")] pub fn is_nan(value: &JsValue) -> bool; /// The `Number.isSafeInteger()` method determines whether the provided value is a number /// that is a safe integer. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger) - #[wasm_bindgen(static_method_of = Number, js_name = isSafeInteger)] + #[wasm_bindgen(static_method_of = "Number", js_name = "isSafeInteger")] pub fn is_safe_integer(value: &JsValue) -> bool; /// The `Number` JavaScript object is a wrapper object allowing @@ -2312,56 +2338,56 @@ extern "C" { /// integer of the specified radix or base. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseInt) - #[wasm_bindgen(static_method_of = Number, js_name = parseInt)] + #[wasm_bindgen(static_method_of = "Number", js_name = "parseInt")] pub fn parse_int(text: &str, radix: u8) -> f64; /// The `Number.parseFloat()` method parses a string argument and returns a /// floating point number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseFloat) - #[wasm_bindgen(static_method_of = Number, js_name = parseFloat)] + #[wasm_bindgen(static_method_of = "Number", js_name = "parseFloat")] pub fn parse_float(text: &str) -> f64; /// The `toLocaleString()` method returns a string with a language sensitive /// representation of this number. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString) - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &Number, locale: &str) -> JsString; /// The `toPrecision()` method returns a string representing the Number /// object to the specified precision. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) - #[wasm_bindgen(catch, method, js_name = toPrecision)] + #[wasm_bindgen(catch, method, js_name = "toPrecision")] pub fn to_precision(this: &Number, precision: u8) -> Result; /// The `toFixed()` method returns a string representing the Number /// object using fixed-point notation. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed) - #[wasm_bindgen(catch, method, js_name = toFixed)] + #[wasm_bindgen(catch, method, js_name = "toFixed")] pub fn to_fixed(this: &Number, digits: u8) -> Result; /// The `toExponential()` method returns a string representing the Number /// object in exponential notation. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential) - #[wasm_bindgen(catch, method, js_name = toExponential)] + #[wasm_bindgen(catch, method, js_name = "toExponential")] pub fn to_exponential(this: &Number, fraction_digits: u8) -> Result; /// The `toString()` method returns a string representing the /// specified Number object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString) - #[wasm_bindgen(catch, method, js_name = toString)] + #[wasm_bindgen(catch, method, js_name = "toString")] pub fn to_string(this: &Number, radix: u8) -> Result; /// The `valueOf()` method returns the wrapped primitive value of /// a Number object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/valueOf) - #[wasm_bindgen(method, js_name = valueOf)] + #[wasm_bindgen(method, js_name = "valueOf")] pub fn value_of(this: &Number) -> f64; } @@ -2566,7 +2592,7 @@ impl FromStr for Number { // Date. #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "Date")] + #[wasm_bindgen(extends = "Object", typescript_type = "Date")] #[derive(Clone, Debug, PartialEq, Eq)] pub type Date; @@ -2574,117 +2600,117 @@ extern "C" { /// specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate) - #[wasm_bindgen(method, js_name = getDate)] + #[wasm_bindgen(method, js_name = "getDate")] pub fn get_date(this: &Date) -> u32; /// The `getDay()` method returns the day of the week for the specified date according to local time, /// where 0 represents Sunday. For the day of the month see getDate(). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay) - #[wasm_bindgen(method, js_name = getDay)] + #[wasm_bindgen(method, js_name = "getDay")] pub fn get_day(this: &Date) -> u32; /// The `getFullYear()` method returns the year of the specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear) - #[wasm_bindgen(method, js_name = getFullYear)] + #[wasm_bindgen(method, js_name = "getFullYear")] pub fn get_full_year(this: &Date) -> u32; /// The `getHours()` method returns the hour for the specified date, according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getHours) - #[wasm_bindgen(method, js_name = getHours)] + #[wasm_bindgen(method, js_name = "getHours")] pub fn get_hours(this: &Date) -> u32; /// The `getMilliseconds()` method returns the milliseconds in the specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds) - #[wasm_bindgen(method, js_name = getMilliseconds)] + #[wasm_bindgen(method, js_name = "getMilliseconds")] pub fn get_milliseconds(this: &Date) -> u32; /// The `getMinutes()` method returns the minutes in the specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes) - #[wasm_bindgen(method, js_name = getMinutes)] + #[wasm_bindgen(method, js_name = "getMinutes")] pub fn get_minutes(this: &Date) -> u32; /// The `getMonth()` method returns the month in the specified date according to local time, /// as a zero-based value (where zero indicates the first month of the year). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth) - #[wasm_bindgen(method, js_name = getMonth)] + #[wasm_bindgen(method, js_name = "getMonth")] pub fn get_month(this: &Date) -> u32; /// The `getSeconds()` method returns the seconds in the specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getSeconds) - #[wasm_bindgen(method, js_name = getSeconds)] + #[wasm_bindgen(method, js_name = "getSeconds")] pub fn get_seconds(this: &Date) -> u32; /// The `getTime()` method returns the numeric value corresponding to the time for the specified date /// according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime) - #[wasm_bindgen(method, js_name = getTime)] + #[wasm_bindgen(method, js_name = "getTime")] pub fn get_time(this: &Date) -> f64; /// The `getTimezoneOffset()` method returns the time zone difference, in minutes, /// from current locale (host system settings) to UTC. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset) - #[wasm_bindgen(method, js_name = getTimezoneOffset)] + #[wasm_bindgen(method, js_name = "getTimezoneOffset")] pub fn get_timezone_offset(this: &Date) -> f64; /// The `getUTCDate()` method returns the day (date) of the month in the specified date /// according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDate) - #[wasm_bindgen(method, js_name = getUTCDate)] + #[wasm_bindgen(method, js_name = "getUTCDate")] pub fn get_utc_date(this: &Date) -> u32; /// The `getUTCDay()` method returns the day of the week in the specified date according to universal time, /// where 0 represents Sunday. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDay) - #[wasm_bindgen(method, js_name = getUTCDay)] + #[wasm_bindgen(method, js_name = "getUTCDay")] pub fn get_utc_day(this: &Date) -> u32; /// The `getUTCFullYear()` method returns the year in the specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCFullYear) - #[wasm_bindgen(method, js_name = getUTCFullYear)] + #[wasm_bindgen(method, js_name = "getUTCFullYear")] pub fn get_utc_full_year(this: &Date) -> u32; /// The `getUTCHours()` method returns the hours in the specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCHours) - #[wasm_bindgen(method, js_name = getUTCHours)] + #[wasm_bindgen(method, js_name = "getUTCHours")] pub fn get_utc_hours(this: &Date) -> u32; /// The `getUTCMilliseconds()` method returns the milliseconds in the specified date /// according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds) - #[wasm_bindgen(method, js_name = getUTCMilliseconds)] + #[wasm_bindgen(method, js_name = "getUTCMilliseconds")] pub fn get_utc_milliseconds(this: &Date) -> u32; /// The `getUTCMinutes()` method returns the minutes in the specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMinutes) - #[wasm_bindgen(method, js_name = getUTCMinutes)] + #[wasm_bindgen(method, js_name = "getUTCMinutes")] pub fn get_utc_minutes(this: &Date) -> u32; /// The `getUTCMonth()` returns the month of the specified date according to universal time, /// as a zero-based value (where zero indicates the first month of the year). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth) - #[wasm_bindgen(method, js_name = getUTCMonth)] + #[wasm_bindgen(method, js_name = "getUTCMonth")] pub fn get_utc_month(this: &Date) -> u32; /// The `getUTCSeconds()` method returns the seconds in the specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCSeconds) - #[wasm_bindgen(method, js_name = getUTCSeconds)] + #[wasm_bindgen(method, js_name = "getUTCSeconds")] pub fn get_utc_seconds(this: &Date) -> u32; /// Creates a JavaScript `Date` instance that represents @@ -2775,7 +2801,7 @@ extern "C" { /// elapsed since January 1, 1970 00:00:00 UTC. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now) - #[wasm_bindgen(static_method_of = Date)] + #[wasm_bindgen(static_method_of = "Date")] pub fn now() -> f64; /// The `Date.parse()` method parses a string representation of a date, and returns the number of milliseconds @@ -2783,34 +2809,34 @@ extern "C" { /// contains illegal date values (e.g. 2015-02-31). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse) - #[wasm_bindgen(static_method_of = Date)] + #[wasm_bindgen(static_method_of = "Date")] pub fn parse(date: &str) -> f64; /// The `setDate()` method sets the day of the Date object relative to the beginning of the currently set month. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setDate) - #[wasm_bindgen(method, js_name = setDate)] + #[wasm_bindgen(method, js_name = "setDate")] pub fn set_date(this: &Date, day: u32) -> f64; /// The `setFullYear()` method sets the full year for a specified date according to local time. /// Returns new timestamp. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear) - #[wasm_bindgen(method, js_name = setFullYear)] + #[wasm_bindgen(method, js_name = "setFullYear")] pub fn set_full_year(this: &Date, year: u32) -> f64; /// The `setFullYear()` method sets the full year for a specified date according to local time. /// Returns new timestamp. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear) - #[wasm_bindgen(method, js_name = setFullYear)] + #[wasm_bindgen(method, js_name = "setFullYear")] pub fn set_full_year_with_month(this: &Date, year: u32, month: i32) -> f64; /// The `setFullYear()` method sets the full year for a specified date according to local time. /// Returns new timestamp. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear) - #[wasm_bindgen(method, js_name = setFullYear)] + #[wasm_bindgen(method, js_name = "setFullYear")] pub fn set_full_year_with_month_date(this: &Date, year: u32, month: i32, date: i32) -> f64; /// The `setHours()` method sets the hours for a specified date according to local time, @@ -2818,63 +2844,63 @@ extern "C" { /// by the updated Date instance. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours) - #[wasm_bindgen(method, js_name = setHours)] + #[wasm_bindgen(method, js_name = "setHours")] pub fn set_hours(this: &Date, hours: u32) -> f64; /// The `setMilliseconds()` method sets the milliseconds for a specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds) - #[wasm_bindgen(method, js_name = setMilliseconds)] + #[wasm_bindgen(method, js_name = "setMilliseconds")] pub fn set_milliseconds(this: &Date, milliseconds: u32) -> f64; /// The `setMinutes()` method sets the minutes for a specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMinutes) - #[wasm_bindgen(method, js_name = setMinutes)] + #[wasm_bindgen(method, js_name = "setMinutes")] pub fn set_minutes(this: &Date, minutes: u32) -> f64; /// The `setMonth()` method sets the month for a specified date according to the currently set year. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMonth) - #[wasm_bindgen(method, js_name = setMonth)] + #[wasm_bindgen(method, js_name = "setMonth")] pub fn set_month(this: &Date, month: u32) -> f64; /// The `setSeconds()` method sets the seconds for a specified date according to local time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setSeconds) - #[wasm_bindgen(method, js_name = setSeconds)] + #[wasm_bindgen(method, js_name = "setSeconds")] pub fn set_seconds(this: &Date, seconds: u32) -> f64; /// The `setTime()` method sets the Date object to the time represented by a number of milliseconds /// since January 1, 1970, 00:00:00 UTC. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setTime) - #[wasm_bindgen(method, js_name = setTime)] + #[wasm_bindgen(method, js_name = "setTime")] pub fn set_time(this: &Date, time: f64) -> f64; /// The `setUTCDate()` method sets the day of the month for a specified date /// according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCDate) - #[wasm_bindgen(method, js_name = setUTCDate)] + #[wasm_bindgen(method, js_name = "setUTCDate")] pub fn set_utc_date(this: &Date, day: u32) -> f64; /// The `setUTCFullYear()` method sets the full year for a specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear) - #[wasm_bindgen(method, js_name = setUTCFullYear)] + #[wasm_bindgen(method, js_name = "setUTCFullYear")] pub fn set_utc_full_year(this: &Date, year: u32) -> f64; /// The `setUTCFullYear()` method sets the full year for a specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear) - #[wasm_bindgen(method, js_name = setUTCFullYear)] + #[wasm_bindgen(method, js_name = "setUTCFullYear")] pub fn set_utc_full_year_with_month(this: &Date, year: u32, month: i32) -> f64; /// The `setUTCFullYear()` method sets the full year for a specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear) - #[wasm_bindgen(method, js_name = setUTCFullYear)] + #[wasm_bindgen(method, js_name = "setUTCFullYear")] pub fn set_utc_full_year_with_month_date(this: &Date, year: u32, month: i32, date: i32) -> f64; /// The `setUTCHours()` method sets the hour for a specified date according to universal time, @@ -2882,39 +2908,39 @@ extern "C" { /// represented by the updated Date instance. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours) - #[wasm_bindgen(method, js_name = setUTCHours)] + #[wasm_bindgen(method, js_name = "setUTCHours")] pub fn set_utc_hours(this: &Date, hours: u32) -> f64; /// The `setUTCMilliseconds()` method sets the milliseconds for a specified date /// according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds) - #[wasm_bindgen(method, js_name = setUTCMilliseconds)] + #[wasm_bindgen(method, js_name = "setUTCMilliseconds")] pub fn set_utc_milliseconds(this: &Date, milliseconds: u32) -> f64; /// The `setUTCMinutes()` method sets the minutes for a specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes) - #[wasm_bindgen(method, js_name = setUTCMinutes)] + #[wasm_bindgen(method, js_name = "setUTCMinutes")] pub fn set_utc_minutes(this: &Date, minutes: u32) -> f64; /// The `setUTCMonth()` method sets the month for a specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth) - #[wasm_bindgen(method, js_name = setUTCMonth)] + #[wasm_bindgen(method, js_name = "setUTCMonth")] pub fn set_utc_month(this: &Date, month: u32) -> f64; /// The `setUTCSeconds()` method sets the seconds for a specified date according to universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCSeconds) - #[wasm_bindgen(method, js_name = setUTCSeconds)] + #[wasm_bindgen(method, js_name = "setUTCSeconds")] pub fn set_utc_seconds(this: &Date, seconds: u32) -> f64; /// The `toDateString()` method returns the date portion of a Date object /// in human readable form in American English. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toDateString) - #[wasm_bindgen(method, js_name = toDateString)] + #[wasm_bindgen(method, js_name = "toDateString")] pub fn to_date_string(this: &Date) -> JsString; /// The `toISOString()` method returns a string in simplified extended ISO format (ISO @@ -2923,13 +2949,13 @@ extern "C" { /// as denoted by the suffix "Z" /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - #[wasm_bindgen(method, js_name = toISOString)] + #[wasm_bindgen(method, js_name = "toISOString")] pub fn to_iso_string(this: &Date) -> JsString; /// The `toJSON()` method returns a string representation of the Date object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON) - #[wasm_bindgen(method, js_name = toJSON)] + #[wasm_bindgen(method, js_name = "toJSON")] pub fn to_json(this: &Date) -> JsString; /// The `toLocaleDateString()` method returns a string with a language sensitive @@ -2941,7 +2967,7 @@ extern "C" { /// returned are entirely implementation dependent. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString) - #[wasm_bindgen(method, js_name = toLocaleDateString)] + #[wasm_bindgen(method, js_name = "toLocaleDateString")] pub fn to_locale_date_string(this: &Date, locale: &str, options: &JsValue) -> JsString; /// The `toLocaleString()` method returns a string with a language sensitive @@ -2953,7 +2979,7 @@ extern "C" { /// returned are entirely implementation dependent. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString) - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &Date, locale: &str, options: &JsValue) -> JsString; /// The `toLocaleTimeString()` method returns a string with a language sensitive @@ -2964,28 +2990,28 @@ extern "C" { /// returned are entirely implementation dependent. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString) - #[wasm_bindgen(method, js_name = toLocaleTimeString)] + #[wasm_bindgen(method, js_name = "toLocaleTimeString")] pub fn to_locale_time_string(this: &Date, locale: &str) -> JsString; /// The `toString()` method returns a string representing /// the specified Date object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toString) - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Date) -> JsString; /// The `toTimeString()` method returns the time portion of a Date object in human /// readable form in American English. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toTimeString) - #[wasm_bindgen(method, js_name = toTimeString)] + #[wasm_bindgen(method, js_name = "toTimeString")] pub fn to_time_string(this: &Date) -> JsString; /// The `toUTCString()` method converts a date to a string, /// using the UTC time zone. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString) - #[wasm_bindgen(method, js_name = toUTCString)] + #[wasm_bindgen(method, js_name = "toUTCString")] pub fn to_utc_string(this: &Date) -> JsString; /// The `Date.UTC()` method accepts the same parameters as the @@ -2994,14 +3020,14 @@ extern "C" { /// 00:00:00, universal time. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC) - #[wasm_bindgen(static_method_of = Date, js_name = UTC)] + #[wasm_bindgen(static_method_of = "Date", js_name = "UTC")] pub fn utc(year: f64, month: f64) -> f64; /// The `valueOf()` method returns the primitive value of /// a Date object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/valueOf) - #[wasm_bindgen(method, js_name = valueOf)] + #[wasm_bindgen(method, js_name = "valueOf")] pub fn value_of(this: &Date) -> f64; } @@ -3017,7 +3043,7 @@ extern "C" { /// will return the target object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn assign(target: &Object, source: &Object) -> Object; /// The `Object.assign()` method is used to copy the values of all enumerable @@ -3025,7 +3051,7 @@ extern "C" { /// will return the target object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) - #[wasm_bindgen(static_method_of = Object, js_name = assign)] + #[wasm_bindgen(static_method_of = "Object", js_name = "assign")] pub fn assign2(target: &Object, source1: &Object, source2: &Object) -> Object; /// The `Object.assign()` method is used to copy the values of all enumerable @@ -3033,7 +3059,7 @@ extern "C" { /// will return the target object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) - #[wasm_bindgen(static_method_of = Object, js_name = assign)] + #[wasm_bindgen(static_method_of = "Object", js_name = "assign")] pub fn assign3(target: &Object, source1: &Object, source2: &Object, source3: &Object) -> Object; @@ -3048,7 +3074,7 @@ extern "C" { /// object to provide the newly created object's prototype. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn create(prototype: &Object) -> Object; /// The static method `Object.defineProperty()` defines a new @@ -3056,7 +3082,7 @@ extern "C" { /// property on an object, and returns the object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty) - #[wasm_bindgen(static_method_of = Object, js_name = defineProperty)] + #[wasm_bindgen(static_method_of = "Object", js_name = "defineProperty")] pub fn define_property(obj: &Object, prop: &JsValue, descriptor: &Object) -> Object; /// The `Object.defineProperties()` method defines new or modifies @@ -3064,7 +3090,7 @@ extern "C" { /// object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties) - #[wasm_bindgen(static_method_of = Object, js_name = defineProperties)] + #[wasm_bindgen(static_method_of = "Object", js_name = "defineProperties")] pub fn define_properties(obj: &Object, props: &Object) -> Object; /// The `Object.entries()` method returns an array of a given @@ -3074,7 +3100,7 @@ extern "C" { /// prototype chain as well). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn entries(object: &Object) -> Array; /// The `Object.freeze()` method freezes an object: that is, prevents new @@ -3084,14 +3110,14 @@ extern "C" { /// the prototype from being changed. The method returns the passed object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn freeze(value: &Object) -> Object; /// The `Object.fromEntries()` method transforms a list of key-value pairs /// into an object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries) - #[wasm_bindgen(static_method_of = Object, catch, js_name = fromEntries)] + #[wasm_bindgen(static_method_of = "Object", catch, js_name = "fromEntries")] pub fn from_entries(iterable: &JsValue) -> Result; /// The `Object.getOwnPropertyDescriptor()` method returns a @@ -3100,14 +3126,14 @@ extern "C" { /// of a given object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor) - #[wasm_bindgen(static_method_of = Object, js_name = getOwnPropertyDescriptor)] + #[wasm_bindgen(static_method_of = "Object", js_name = "getOwnPropertyDescriptor")] pub fn get_own_property_descriptor(obj: &Object, prop: &JsValue) -> JsValue; /// The `Object.getOwnPropertyDescriptors()` method returns all own /// property descriptors of a given object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors) - #[wasm_bindgen(static_method_of = Object, js_name = getOwnPropertyDescriptors)] + #[wasm_bindgen(static_method_of = "Object", js_name = "getOwnPropertyDescriptors")] pub fn get_own_property_descriptors(obj: &Object) -> JsValue; /// The `Object.getOwnPropertyNames()` method returns an array of @@ -3115,14 +3141,14 @@ extern "C" { /// those which use Symbol) found directly upon a given object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames) - #[wasm_bindgen(static_method_of = Object, js_name = getOwnPropertyNames)] + #[wasm_bindgen(static_method_of = "Object", js_name = "getOwnPropertyNames")] pub fn get_own_property_names(obj: &Object) -> Array; /// The `Object.getOwnPropertySymbols()` method returns an array of /// all symbol properties found directly upon a given object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols) - #[wasm_bindgen(static_method_of = Object, js_name = getOwnPropertySymbols)] + #[wasm_bindgen(static_method_of = "Object", js_name = "getOwnPropertySymbols")] pub fn get_own_property_symbols(obj: &Object) -> Array; /// The `Object.getPrototypeOf()` method returns the prototype @@ -3130,7 +3156,7 @@ extern "C" { /// specified object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf) - #[wasm_bindgen(static_method_of = Object, js_name = getPrototypeOf)] + #[wasm_bindgen(static_method_of = "Object", js_name = "getPrototypeOf")] pub fn get_prototype_of(obj: &JsValue) -> Object; /// The `hasOwnProperty()` method returns a boolean indicating whether the @@ -3138,7 +3164,7 @@ extern "C" { /// inheriting it). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty) - #[wasm_bindgen(method, js_name = hasOwnProperty)] + #[wasm_bindgen(method, js_name = "hasOwnProperty")] pub fn has_own_property(this: &Object, property: &JsValue) -> bool; /// The `Object.hasOwn()` method returns a boolean indicating whether the @@ -3146,46 +3172,46 @@ extern "C" { /// opposed to inheriting it). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn) - #[wasm_bindgen(static_method_of = Object, js_name = hasOwn)] + #[wasm_bindgen(static_method_of = "Object", js_name = "hasOwn")] pub fn has_own(instance: &Object, property: &JsValue) -> bool; /// The `Object.is()` method determines whether two values are the same value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn is(value_1: &JsValue, value_2: &JsValue) -> bool; /// The `Object.isExtensible()` method determines if an object is extensible /// (whether it can have new properties added to it). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible) - #[wasm_bindgen(static_method_of = Object, js_name = isExtensible)] + #[wasm_bindgen(static_method_of = "Object", js_name = "isExtensible")] pub fn is_extensible(object: &Object) -> bool; /// The `Object.isFrozen()` determines if an object is frozen. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen) - #[wasm_bindgen(static_method_of = Object, js_name = isFrozen)] + #[wasm_bindgen(static_method_of = "Object", js_name = "isFrozen")] pub fn is_frozen(object: &Object) -> bool; /// The `Object.isSealed()` method determines if an object is sealed. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isSealed) - #[wasm_bindgen(static_method_of = Object, js_name = isSealed)] + #[wasm_bindgen(static_method_of = "Object", js_name = "isSealed")] pub fn is_sealed(object: &Object) -> bool; /// The `isPrototypeOf()` method checks if an object exists in another /// object's prototype chain. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf) - #[wasm_bindgen(method, js_name = isPrototypeOf)] + #[wasm_bindgen(method, js_name = "isPrototypeOf")] pub fn is_prototype_of(this: &Object, value: &JsValue) -> bool; /// The `Object.keys()` method returns an array of a given object's property /// names, in the same order as we get with a normal loop. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn keys(object: &Object) -> Array; /// The [`Object`] constructor creates an object wrapper. @@ -3199,14 +3225,14 @@ extern "C" { /// object). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions) - #[wasm_bindgen(static_method_of = Object, js_name = preventExtensions)] + #[wasm_bindgen(static_method_of = "Object", js_name = "preventExtensions")] pub fn prevent_extensions(object: &Object); /// The `propertyIsEnumerable()` method returns a Boolean indicating /// whether the specified property is enumerable. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable) - #[wasm_bindgen(method, js_name = propertyIsEnumerable)] + #[wasm_bindgen(method, js_name = "propertyIsEnumerable")] pub fn property_is_enumerable(this: &Object, property: &JsValue) -> bool; /// The `Object.seal()` method seals an object, preventing new properties @@ -3215,7 +3241,7 @@ extern "C" { /// long as they are writable. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn seal(value: &Object) -> Object; /// The `Object.setPrototypeOf()` method sets the prototype (i.e., the @@ -3223,7 +3249,7 @@ extern "C" { /// object or `null`. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf) - #[wasm_bindgen(static_method_of = Object, js_name = setPrototypeOf)] + #[wasm_bindgen(static_method_of = "Object", js_name = "setPrototypeOf")] pub fn set_prototype_of(object: &Object, prototype: &Object) -> Object; /// The `toLocaleString()` method returns a string representing the object. @@ -3231,20 +3257,20 @@ extern "C" { /// locale-specific purposes. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString) - #[wasm_bindgen(method, js_name = toLocaleString)] + #[wasm_bindgen(method, js_name = "toLocaleString")] pub fn to_locale_string(this: &Object) -> JsString; /// The `toString()` method returns a string representing the object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString) - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Object) -> JsString; /// The `valueOf()` method returns the primitive value of the /// specified object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf) - #[wasm_bindgen(method, js_name = valueOf)] + #[wasm_bindgen(method, js_name = "valueOf")] pub fn value_of(this: &Object) -> Object; /// The `Object.values()` method returns an array of a given object's own @@ -3253,7 +3279,7 @@ extern "C" { /// properties in the prototype chain as well). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) - #[wasm_bindgen(static_method_of = Object)] + #[wasm_bindgen(static_method_of = "Object")] pub fn values(object: &Object) -> Array; } @@ -3306,7 +3332,7 @@ extern "C" { /// object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/revocable) - #[wasm_bindgen(static_method_of = Proxy)] + #[wasm_bindgen(static_method_of = "Proxy")] pub fn revocable(target: &JsValue, handler: &Object) -> Object; } @@ -3317,7 +3343,7 @@ extern "C" { /// or range of allowed values. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError) - #[wasm_bindgen(extends = Error, extends = Object, typescript_type = "RangeError")] + #[wasm_bindgen(extends = "Error", extends = "Object", typescript_type = "RangeError")] #[derive(Clone, Debug, PartialEq, Eq)] pub type RangeError; @@ -3336,7 +3362,11 @@ extern "C" { /// variable is referenced. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError) - #[wasm_bindgen(extends = Error, extends = Object, typescript_type = "ReferenceError")] + #[wasm_bindgen( + extends = "Error", + extends = "Object", + typescript_type = "ReferenceError" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type ReferenceError; @@ -3359,7 +3389,7 @@ pub mod Reflect { /// arguments as specified. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/apply) - #[wasm_bindgen(js_namespace = Reflect, catch)] + #[wasm_bindgen(js_namespace = "Reflect", catch)] pub fn apply( target: &Function, this_argument: &JsValue, @@ -3371,7 +3401,7 @@ pub mod Reflect { /// gives also the added option to specify a different prototype. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct) - #[wasm_bindgen(js_namespace = Reflect, catch)] + #[wasm_bindgen(js_namespace = "Reflect", catch)] pub fn construct(target: &Function, arguments_list: &Array) -> Result; /// The static `Reflect.construct()` method acts like the new operator, but @@ -3379,7 +3409,7 @@ pub mod Reflect { /// gives also the added option to specify a different prototype. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct) - #[wasm_bindgen(js_namespace = Reflect, js_name = construct, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "construct", catch)] pub fn construct_with_new_target( target: &Function, arguments_list: &Array, @@ -3390,7 +3420,7 @@ pub mod Reflect { /// `Object.defineProperty()` but returns a `Boolean`. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/defineProperty) - #[wasm_bindgen(js_namespace = Reflect, js_name = defineProperty, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "defineProperty", catch)] pub fn define_property( target: &Object, property_key: &JsValue, @@ -3401,24 +3431,24 @@ pub mod Reflect { /// properties. It is like the `delete` operator as a function. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/deleteProperty) - #[wasm_bindgen(js_namespace = Reflect, js_name = deleteProperty, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "deleteProperty", catch)] pub fn delete_property(target: &Object, key: &JsValue) -> Result; /// The static `Reflect.get()` method works like getting a property from /// an object (`target[propertyKey]`) as a function. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/get) - #[wasm_bindgen(js_namespace = Reflect, catch)] + #[wasm_bindgen(js_namespace = "Reflect", catch)] pub fn get(target: &JsValue, key: &JsValue) -> Result; /// The same as [`get`](fn.get.html) /// except the key is an `f64`, which is slightly faster. - #[wasm_bindgen(js_namespace = Reflect, js_name = "get", catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "get", catch)] pub fn get_f64(target: &JsValue, key: f64) -> Result; /// The same as [`get`](fn.get.html) /// except the key is a `u32`, which is slightly faster. - #[wasm_bindgen(js_namespace = Reflect, js_name = "get", catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "get", catch)] pub fn get_u32(target: &JsValue, key: u32) -> Result; /// The static `Reflect.getOwnPropertyDescriptor()` method is similar to @@ -3426,7 +3456,7 @@ pub mod Reflect { /// of the given property if it exists on the object, `undefined` otherwise. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/getOwnPropertyDescriptor) - #[wasm_bindgen(js_namespace = Reflect, js_name = getOwnPropertyDescriptor, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "getOwnPropertyDescriptor", catch)] pub fn get_own_property_descriptor( target: &Object, property_key: &JsValue, @@ -3438,14 +3468,14 @@ pub mod Reflect { /// the specified object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/getPrototypeOf) - #[wasm_bindgen(js_namespace = Reflect, js_name = getPrototypeOf, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "getPrototypeOf", catch)] pub fn get_prototype_of(target: &JsValue) -> Result; /// The static `Reflect.has()` method works like the in operator as a /// function. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/has) - #[wasm_bindgen(js_namespace = Reflect, catch)] + #[wasm_bindgen(js_namespace = "Reflect", catch)] pub fn has(target: &JsValue, property_key: &JsValue) -> Result; /// The static `Reflect.isExtensible()` method determines if an object is @@ -3453,14 +3483,14 @@ pub mod Reflect { /// similar to `Object.isExtensible()`, but with some differences. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/isExtensible) - #[wasm_bindgen(js_namespace = Reflect, js_name = isExtensible, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "isExtensible", catch)] pub fn is_extensible(target: &Object) -> Result; /// The static `Reflect.ownKeys()` method returns an array of the /// target object's own property keys. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys) - #[wasm_bindgen(js_namespace = Reflect, js_name = ownKeys, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "ownKeys", catch)] pub fn own_keys(target: &JsValue) -> Result; /// The static `Reflect.preventExtensions()` method prevents new @@ -3469,14 +3499,14 @@ pub mod Reflect { /// `Object.preventExtensions()`, but with some differences. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/preventExtensions) - #[wasm_bindgen(js_namespace = Reflect, js_name = preventExtensions, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "preventExtensions", catch)] pub fn prevent_extensions(target: &Object) -> Result; /// The static `Reflect.set()` method works like setting a /// property on an object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/set) - #[wasm_bindgen(js_namespace = Reflect, catch)] + #[wasm_bindgen(js_namespace = "Reflect", catch)] pub fn set( target: &JsValue, property_key: &JsValue, @@ -3485,7 +3515,7 @@ pub mod Reflect { /// The same as [`set`](fn.set.html) /// except the key is an `f64`, which is slightly faster. - #[wasm_bindgen(js_namespace = Reflect, js_name = "set", catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "set", catch)] pub fn set_f64( target: &JsValue, property_key: f64, @@ -3494,7 +3524,7 @@ pub mod Reflect { /// The same as [`set`](fn.set.html) /// except the key is a `u32`, which is slightly faster. - #[wasm_bindgen(js_namespace = Reflect, js_name = "set", catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "set", catch)] pub fn set_u32( target: &JsValue, property_key: u32, @@ -3505,7 +3535,7 @@ pub mod Reflect { /// property on an object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/set) - #[wasm_bindgen(js_namespace = Reflect, js_name = set, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "set", catch)] pub fn set_with_receiver( target: &JsValue, property_key: &JsValue, @@ -3519,7 +3549,7 @@ pub mod Reflect { /// object to another object or to null. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/setPrototypeOf) - #[wasm_bindgen(js_namespace = Reflect, js_name = setPrototypeOf, catch)] + #[wasm_bindgen(js_namespace = "Reflect", js_name = "setPrototypeOf", catch)] pub fn set_prototype_of(target: &Object, prototype: &JsValue) -> Result; } } @@ -3527,7 +3557,7 @@ pub mod Reflect { // RegExp #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "RegExp")] + #[wasm_bindgen(extends = "Object", typescript_type = "RegExp")] #[derive(Clone, Debug, PartialEq, Eq)] pub type RegExp; @@ -3558,7 +3588,7 @@ extern "C" { /// property of an individual regular expression instance. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase) - #[wasm_bindgen(method, getter, js_name = ignoreCase)] + #[wasm_bindgen(method, getter, js_name = "ignoreCase")] pub fn ignore_case(this: &RegExp) -> bool; /// The non-standard input property is a static property of @@ -3567,21 +3597,21 @@ extern "C" { /// property. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/input) - #[wasm_bindgen(static_method_of = RegExp, getter)] + #[wasm_bindgen(static_method_of = "RegExp", getter)] pub fn input() -> JsString; /// The lastIndex is a read/write integer property of regular expression /// instances that specifies the index at which to start the next match. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex) - #[wasm_bindgen(structural, getter = lastIndex, method)] + #[wasm_bindgen(structural, getter = "lastIndex", method)] pub fn last_index(this: &RegExp) -> u32; /// The lastIndex is a read/write integer property of regular expression /// instances that specifies the index at which to start the next match. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex) - #[wasm_bindgen(structural, setter = lastIndex, method)] + #[wasm_bindgen(structural, setter = "lastIndex", method)] pub fn set_last_index(this: &RegExp, index: u32); /// The non-standard lastMatch property is a static and read-only @@ -3589,7 +3619,7 @@ extern "C" { /// characters. `RegExp.$&` is an alias for this property. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastMatch) - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = lastMatch)] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "lastMatch")] pub fn last_match() -> JsString; /// The non-standard lastParen property is a static and read-only @@ -3598,7 +3628,7 @@ extern "C" { /// for this property. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastParen) - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = lastParen)] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "lastParen")] pub fn last_paren() -> JsString; /// The non-standard leftContext property is a static and @@ -3607,7 +3637,7 @@ extern "C" { /// alias for this property. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/leftContext) - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = leftContext)] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "leftContext")] pub fn left_context() -> JsString; /// The multiline property indicates whether or not the "m" flag @@ -3623,23 +3653,23 @@ extern "C" { /// that contain parenthesized substring matches. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/n) - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$1")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$1")] pub fn n1() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$2")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$2")] pub fn n2() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$3")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$3")] pub fn n3() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$4")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$4")] pub fn n4() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$5")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$5")] pub fn n5() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$6")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$6")] pub fn n6() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$7")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$7")] pub fn n7() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$8")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$8")] pub fn n8() -> JsString; - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = "$9")] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "$9")] pub fn n9() -> JsString; /// The `RegExp` constructor creates a regular expression object for matching text with a pattern. @@ -3656,7 +3686,7 @@ extern "C" { /// alias for this property. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/rightContext) - #[wasm_bindgen(static_method_of = RegExp, getter, js_name = rightContext)] + #[wasm_bindgen(static_method_of = "RegExp", getter, js_name = "rightContext")] pub fn right_context() -> JsString; /// The source property returns a String containing the source @@ -3689,7 +3719,7 @@ extern "C" { /// regular expression. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/toString) - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &RegExp) -> JsString; /// The unicode property indicates whether or not the "u" flag is @@ -3704,7 +3734,7 @@ extern "C" { // Set #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "Set")] + #[wasm_bindgen(extends = "Object", typescript_type = "Set")] #[derive(Clone, Debug, PartialEq, Eq)] pub type Set; @@ -3732,7 +3762,7 @@ extern "C" { /// in the Set object, in insertion order. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/forEach) - #[wasm_bindgen(method, js_name = forEach)] + #[wasm_bindgen(method, js_name = "forEach")] pub fn for_each(this: &Set, callback: &mut dyn FnMut(JsValue, JsValue, Set)); /// The `has()` method returns a boolean indicating whether an element with @@ -3800,7 +3830,7 @@ extern "C" { /// parsing code. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError) - #[wasm_bindgen(extends = Error, extends = Object, typescript_type = "SyntaxError")] + #[wasm_bindgen(extends = "Error", extends = "Object", typescript_type = "SyntaxError")] #[derive(Clone, Debug, PartialEq, Eq)] pub type SyntaxError; @@ -3820,7 +3850,7 @@ extern "C" { /// expected type. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) - #[wasm_bindgen(extends = Error, extends = Object, typescript_type = "TypeError")] + #[wasm_bindgen(extends = "Error", extends = "Object", typescript_type = "TypeError")] #[derive(Clone, Debug, PartialEq, Eq)] pub type TypeError; @@ -3839,7 +3869,12 @@ extern "C" { /// function was used in a wrong way. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError) - #[wasm_bindgen(extends = Error, extends = Object, js_name = URIError, typescript_type = "URIError")] + #[wasm_bindgen( + extends = "Error", + extends = "Object", + js_name = "URIError", + typescript_type = "URIError" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type UriError; @@ -3854,7 +3889,7 @@ extern "C" { // WeakMap #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "WeakMap")] + #[wasm_bindgen(extends = "Object", typescript_type = "WeakMap")] #[derive(Clone, Debug, PartialEq, Eq)] pub type WeakMap; @@ -3904,7 +3939,7 @@ impl Default for WeakMap { // WeakSet #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = "WeakSet")] + #[wasm_bindgen(extends = "Object", typescript_type = "WeakSet")] #[derive(Clone, Debug, PartialEq, Eq)] pub type WeakSet; @@ -3958,21 +3993,21 @@ pub mod WebAssembly { /// (otherwise, the `WebAssembly.instantiate()` function should be used). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) - #[wasm_bindgen(js_namespace = WebAssembly)] + #[wasm_bindgen(js_namespace = "WebAssembly")] pub fn compile(buffer_source: &JsValue) -> Promise; /// The `WebAssembly.instantiate()` function allows you to compile and /// instantiate WebAssembly code. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) - #[wasm_bindgen(js_namespace = WebAssembly, js_name = instantiate)] + #[wasm_bindgen(js_namespace = "WebAssembly", js_name = "instantiate")] pub fn instantiate_buffer(buffer: &[u8], imports: &Object) -> Promise; /// The `WebAssembly.instantiate()` function allows you to compile and /// instantiate WebAssembly code. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) - #[wasm_bindgen(js_namespace = WebAssembly, js_name = instantiate)] + #[wasm_bindgen(js_namespace = "WebAssembly", js_name = "instantiate")] pub fn instantiate_module(module: &Module, imports: &Object) -> Promise; /// The `WebAssembly.instantiateStreaming()` function compiles and @@ -3981,7 +4016,7 @@ pub mod WebAssembly { /// wasm code. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming) - #[wasm_bindgen(js_namespace = WebAssembly, js_name = instantiateStreaming)] + #[wasm_bindgen(js_namespace = "WebAssembly", js_name = "instantiateStreaming")] pub fn instantiate_streaming(response: &Promise, imports: &Object) -> Promise; /// The `WebAssembly.validate()` function validates a given typed @@ -3989,7 +4024,7 @@ pub mod WebAssembly { /// form a valid wasm module (`true`) or not (`false`). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate) - #[wasm_bindgen(js_namespace = WebAssembly, catch)] + #[wasm_bindgen(js_namespace = "WebAssembly", catch)] pub fn validate(buffer_source: &JsValue) -> Result; } @@ -4001,7 +4036,11 @@ pub mod WebAssembly { /// WebAssembly decoding or validation. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/CompileError) - #[wasm_bindgen(extends = Error, js_namespace = WebAssembly, typescript_type = "WebAssembly.CompileError")] + #[wasm_bindgen( + extends = "Error", + js_namespace = "WebAssembly", + typescript_type = "WebAssembly.CompileError" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type CompileError; @@ -4010,7 +4049,7 @@ pub mod WebAssembly { /// WebAssembly decoding or validation. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/CompileError) - #[wasm_bindgen(constructor, js_namespace = WebAssembly)] + #[wasm_bindgen(constructor, js_namespace = "WebAssembly")] pub fn new(message: &str) -> CompileError; } @@ -4023,7 +4062,11 @@ pub mod WebAssembly { /// JavaScript. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) - #[wasm_bindgen(extends = Object, js_namespace = WebAssembly, typescript_type = "WebAssembly.Instance")] + #[wasm_bindgen( + extends = "Object", + js_namespace = "WebAssembly", + typescript_type = "WebAssembly.Instance" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type Instance; @@ -4033,7 +4076,7 @@ pub mod WebAssembly { /// asynchronous `WebAssembly.instantiateStreaming()` function. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) - #[wasm_bindgen(catch, constructor, js_namespace = WebAssembly)] + #[wasm_bindgen(catch, constructor, js_namespace = "WebAssembly")] pub fn new(module: &Module, imports: &Object) -> Result; /// The `exports` readonly property of the `WebAssembly.Instance` object @@ -4042,7 +4085,7 @@ pub mod WebAssembly { /// them to be accessed and used by JavaScript. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports) - #[wasm_bindgen(getter, method, js_namespace = WebAssembly)] + #[wasm_bindgen(getter, method, js_namespace = "WebAssembly")] pub fn exports(this: &Instance) -> Object; } @@ -4054,7 +4097,11 @@ pub mod WebAssembly { /// instantiation (besides traps from the start function). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/LinkError) - #[wasm_bindgen(extends = Error, js_namespace = WebAssembly, typescript_type = "WebAssembly.LinkError")] + #[wasm_bindgen( + extends = "Error", + js_namespace = "WebAssembly", + typescript_type = "WebAssembly.LinkError" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type LinkError; @@ -4063,7 +4110,7 @@ pub mod WebAssembly { /// instantiation (besides traps from the start function). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/LinkError) - #[wasm_bindgen(constructor, js_namespace = WebAssembly)] + #[wasm_bindgen(constructor, js_namespace = "WebAssembly")] pub fn new(message: &str) -> LinkError; } @@ -4075,7 +4122,11 @@ pub mod WebAssembly { /// specifies a trap. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/RuntimeError) - #[wasm_bindgen(extends = Error, js_namespace = WebAssembly, typescript_type = "WebAssembly.RuntimeError")] + #[wasm_bindgen( + extends = "Error", + js_namespace = "WebAssembly", + typescript_type = "WebAssembly.RuntimeError" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type RuntimeError; @@ -4084,7 +4135,7 @@ pub mod WebAssembly { /// specifies a trap. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/RuntimeError) - #[wasm_bindgen(constructor, js_namespace = WebAssembly)] + #[wasm_bindgen(constructor, js_namespace = "WebAssembly")] pub fn new(message: &str) -> RuntimeError; } @@ -4096,7 +4147,11 @@ pub mod WebAssembly { /// efficiently shared with Workers, and instantiated multiple times. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) - #[wasm_bindgen(js_namespace = WebAssembly, extends = Object, typescript_type = "WebAssembly.Module")] + #[wasm_bindgen( + js_namespace = "WebAssembly", + extends = "Object", + typescript_type = "WebAssembly.Module" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type Module; @@ -4105,7 +4160,7 @@ pub mod WebAssembly { /// efficiently shared with Workers, and instantiated multiple times. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) - #[wasm_bindgen(constructor, js_namespace = WebAssembly, catch)] + #[wasm_bindgen(constructor, js_namespace = "WebAssembly", catch)] pub fn new(buffer_source: &JsValue) -> Result; /// The `WebAssembly.customSections()` function returns a copy of the @@ -4113,21 +4168,25 @@ pub mod WebAssembly { /// string name. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections) - #[wasm_bindgen(static_method_of = Module, js_namespace = WebAssembly, js_name = customSections)] + #[wasm_bindgen( + static_method_of = "Module", + js_namespace = "WebAssembly", + js_name = "customSections" + )] pub fn custom_sections(module: &Module, sectionName: &str) -> Array; /// The `WebAssembly.exports()` function returns an array containing /// descriptions of all the declared exports of the given `Module`. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports) - #[wasm_bindgen(static_method_of = Module, js_namespace = WebAssembly)] + #[wasm_bindgen(static_method_of = "Module", js_namespace = "WebAssembly")] pub fn exports(module: &Module) -> Array; /// The `WebAssembly.imports()` function returns an array containing /// descriptions of all the declared imports of the given `Module`. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports) - #[wasm_bindgen(static_method_of = Module, js_namespace = WebAssembly)] + #[wasm_bindgen(static_method_of = "Module", js_namespace = "WebAssembly")] pub fn imports(module: &Module) -> Array; } @@ -4138,7 +4197,11 @@ pub mod WebAssembly { /// of the given size and element type. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) - #[wasm_bindgen(js_namespace = WebAssembly, extends = Object, typescript_type = "WebAssembly.Table")] + #[wasm_bindgen( + js_namespace = "WebAssembly", + extends = "Object", + typescript_type = "WebAssembly.Table" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type Table; @@ -4146,7 +4209,7 @@ pub mod WebAssembly { /// of the given size and element type. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) - #[wasm_bindgen(constructor, js_namespace = WebAssembly, catch)] + #[wasm_bindgen(constructor, js_namespace = "WebAssembly", catch)] pub fn new(table_descriptor: &Object) -> Result; /// The length prototype property of the `WebAssembly.Table` object @@ -4154,14 +4217,14 @@ pub mod WebAssembly { /// table. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/length) - #[wasm_bindgen(method, getter, js_namespace = WebAssembly)] + #[wasm_bindgen(method, getter, js_namespace = "WebAssembly")] pub fn length(this: &Table) -> u32; /// The `get()` prototype method of the `WebAssembly.Table()` object /// retrieves a function reference stored at a given index. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get) - #[wasm_bindgen(method, catch, js_namespace = WebAssembly)] + #[wasm_bindgen(method, catch, js_namespace = "WebAssembly")] pub fn get(this: &Table, index: u32) -> Result; /// The `grow()` prototype method of the `WebAssembly.Table` object @@ -4169,14 +4232,14 @@ pub mod WebAssembly { /// elements. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow) - #[wasm_bindgen(method, catch, js_namespace = WebAssembly)] + #[wasm_bindgen(method, catch, js_namespace = "WebAssembly")] pub fn grow(this: &Table, additional_capacity: u32) -> Result; /// The `set()` prototype method of the `WebAssembly.Table` object mutates a /// reference stored at a given index to a different value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set) - #[wasm_bindgen(method, catch, js_namespace = WebAssembly)] + #[wasm_bindgen(method, catch, js_namespace = "WebAssembly")] pub fn set(this: &Table, index: u32, function: &Function) -> Result<(), JsValue>; } @@ -4187,7 +4250,11 @@ pub mod WebAssembly { /// of the given type and value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) - #[wasm_bindgen(js_namespace = WebAssembly, extends = Object, typescript_type = "WebAssembly.Global")] + #[wasm_bindgen( + js_namespace = "WebAssembly", + extends = "Object", + typescript_type = "WebAssembly.Global" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type Global; @@ -4195,16 +4262,16 @@ pub mod WebAssembly { /// of the given type and value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) - #[wasm_bindgen(constructor, js_namespace = WebAssembly, catch)] + #[wasm_bindgen(constructor, js_namespace = "WebAssembly", catch)] pub fn new(global_descriptor: &Object, value: &JsValue) -> Result; /// The value prototype property of the `WebAssembly.Global` object /// returns the value of the global. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) - #[wasm_bindgen(method, getter, structural, js_namespace = WebAssembly)] + #[wasm_bindgen(method, getter, structural, js_namespace = "WebAssembly")] pub fn value(this: &Global) -> JsValue; - #[wasm_bindgen(method, setter = value, structural, js_namespace = WebAssembly)] + #[wasm_bindgen(method, setter = "value", structural, js_namespace = "WebAssembly")] pub fn set_value(this: &Global, value: &JsValue); } @@ -4212,7 +4279,11 @@ pub mod WebAssembly { #[wasm_bindgen] extern "C" { /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) - #[wasm_bindgen(js_namespace = WebAssembly, extends = Object, typescript_type = "WebAssembly.Memory")] + #[wasm_bindgen( + js_namespace = "WebAssembly", + extends = "Object", + typescript_type = "WebAssembly.Memory" + )] #[derive(Clone, Debug, PartialEq, Eq)] pub type Memory; @@ -4224,14 +4295,14 @@ pub mod WebAssembly { /// accessible and mutable from both JavaScript and WebAssembly. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) - #[wasm_bindgen(constructor, js_namespace = WebAssembly, catch)] + #[wasm_bindgen(constructor, js_namespace = "WebAssembly", catch)] pub fn new(descriptor: &Object) -> Result; /// An accessor property that returns the buffer contained in the /// memory. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/buffer) - #[wasm_bindgen(method, getter, js_namespace = WebAssembly)] + #[wasm_bindgen(method, getter, js_namespace = "WebAssembly")] pub fn buffer(this: &Memory) -> JsValue; /// The `grow()` protoype method of the `Memory` object increases the @@ -4242,7 +4313,7 @@ pub mod WebAssembly { /// previous size of memory, in pages. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) - #[wasm_bindgen(method, js_namespace = WebAssembly)] + #[wasm_bindgen(method, js_namespace = "WebAssembly")] pub fn grow(this: &Memory, pages: u32) -> u32; } } @@ -4262,13 +4333,13 @@ pub mod JSON { /// JavaScript value or object described by the string. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) - #[wasm_bindgen(catch, js_namespace = JSON)] + #[wasm_bindgen(catch, js_namespace = "JSON")] pub fn parse(text: &str) -> Result; /// The `JSON.stringify()` method converts a JavaScript value to a JSON string. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) - #[wasm_bindgen(catch, js_namespace = JSON)] + #[wasm_bindgen(catch, js_namespace = "JSON")] pub fn stringify(obj: &JsValue) -> Result; /// The `JSON.stringify()` method converts a JavaScript value to a JSON string. @@ -4280,7 +4351,7 @@ pub mod JSON { /// of the object are included in the resulting JSON string. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) - #[wasm_bindgen(catch, js_namespace = JSON, js_name = stringify)] + #[wasm_bindgen(catch, js_namespace = "JSON", js_name = "stringify")] pub fn stringify_with_replacer( obj: &JsValue, replacer: &JsValue, @@ -4304,7 +4375,7 @@ pub mod JSON { /// white space is used. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) - #[wasm_bindgen(catch, js_namespace = JSON, js_name = stringify)] + #[wasm_bindgen(catch, js_namespace = "JSON", js_name = "stringify")] pub fn stringify_with_replacer_and_space( obj: &JsValue, replacer: &JsValue, @@ -4317,7 +4388,12 @@ pub mod JSON { // JsString #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_name = String, extends = Object, is_type_of = JsValue::is_string, typescript_type = "string")] + #[wasm_bindgen( + js_name = "String", + extends = "Object", + is_type_of = "JsValue::is_string", + typescript_type = "string" + )] #[derive(Clone, PartialEq, Eq)] pub type JsString; @@ -4341,7 +4417,7 @@ extern "C" { /// string. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt) - #[wasm_bindgen(method, js_class = "String", js_name = charAt)] + #[wasm_bindgen(method, js_class = "String", js_name = "charAt")] pub fn char_at(this: &JsString, index: u32) -> JsString; /// The `charCodeAt()` method returns an integer between 0 and 65535 @@ -4355,14 +4431,14 @@ extern "C" { /// Returns `NaN` if index is out of range. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt) - #[wasm_bindgen(method, js_class = "String", js_name = charCodeAt)] + #[wasm_bindgen(method, js_class = "String", js_name = "charCodeAt")] pub fn char_code_at(this: &JsString, index: u32) -> f64; /// The `codePointAt()` method returns a non-negative integer that is the /// Unicode code point value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) - #[wasm_bindgen(method, js_class = "String", js_name = codePointAt)] + #[wasm_bindgen(method, js_class = "String", js_name = "codePointAt")] pub fn code_point_at(this: &JsString, pos: u32) -> JsValue; /// The `concat()` method concatenates the string arguments to the calling @@ -4376,7 +4452,7 @@ extern "C" { /// specified string, returning true or false as appropriate. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith) - #[wasm_bindgen(method, js_class = "String", js_name = endsWith)] + #[wasm_bindgen(method, js_class = "String", js_name = "endsWith")] pub fn ends_with(this: &JsString, search_string: &str, length: i32) -> bool; /// The static `String.fromCharCode()` method returns a string created from @@ -4392,27 +4468,52 @@ extern "C" { /// Additionally, this function accepts `u16` for character codes, but /// fixing others requires a breaking change release /// (see https://github.com/rustwasm/wasm-bindgen/issues/1460 for details). - #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode, variadic)] + #[wasm_bindgen( + static_method_of = "JsString", + js_class = "String", + js_name = "fromCharCode", + variadic + )] pub fn from_char_code(char_codes: &[u16]) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) - #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)] + #[wasm_bindgen( + static_method_of = "JsString", + js_class = "String", + js_name = "fromCharCode" + )] pub fn from_char_code1(a: u32) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) - #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)] + #[wasm_bindgen( + static_method_of = "JsString", + js_class = "String", + js_name = "fromCharCode" + )] pub fn from_char_code2(a: u32, b: u32) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) - #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)] + #[wasm_bindgen( + static_method_of = "JsString", + js_class = "String", + js_name = "fromCharCode" + )] pub fn from_char_code3(a: u32, b: u32, c: u32) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) - #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)] + #[wasm_bindgen( + static_method_of = "JsString", + js_class = "String", + js_name = "fromCharCode" + )] pub fn from_char_code4(a: u32, b: u32, c: u32, d: u32) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) - #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)] + #[wasm_bindgen( + static_method_of = "JsString", + js_class = "String", + js_name = "fromCharCode" + )] pub fn from_char_code5(a: u32, b: u32, c: u32, d: u32, e: u32) -> JsString; /// The static `String.fromCodePoint()` method returns a string created by @@ -4428,27 +4529,58 @@ extern "C" { /// /// There are a few bindings to `from_code_point` in `js-sys`: `from_code_point1`, `from_code_point2`, etc... /// with different arities. - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = fromCodePoint, variadic)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "fromCodePoint", + variadic + )] pub fn from_code_point(code_points: &[u32]) -> Result; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = fromCodePoint)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "fromCodePoint" + )] pub fn from_code_point1(a: u32) -> Result; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = fromCodePoint)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "fromCodePoint" + )] pub fn from_code_point2(a: u32, b: u32) -> Result; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = fromCodePoint)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "fromCodePoint" + )] pub fn from_code_point3(a: u32, b: u32, c: u32) -> Result; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = fromCodePoint)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "fromCodePoint" + )] pub fn from_code_point4(a: u32, b: u32, c: u32, d: u32) -> Result; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = fromCodePoint)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "fromCodePoint" + )] pub fn from_code_point5(a: u32, b: u32, c: u32, d: u32, e: u32) -> Result; /// The `includes()` method determines whether one string may be found @@ -4463,7 +4595,7 @@ extern "C" { /// search at fromIndex. Returns -1 if the value is not found. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf) - #[wasm_bindgen(method, js_class = "String", js_name = indexOf)] + #[wasm_bindgen(method, js_class = "String", js_name = "indexOf")] pub fn index_of(this: &JsString, search_value: &str, from_index: i32) -> i32; /// The `lastIndexOf()` method returns the index within the calling String @@ -4471,7 +4603,7 @@ extern "C" { /// backwards from fromIndex. Returns -1 if the value is not found. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf) - #[wasm_bindgen(method, js_class = "String", js_name = lastIndexOf)] + #[wasm_bindgen(method, js_class = "String", js_name = "lastIndexOf")] pub fn last_index_of(this: &JsString, search_value: &str, from_index: i32) -> i32; /// The `localeCompare()` method returns a number indicating whether @@ -4479,7 +4611,7 @@ extern "C" { /// the given string in sort order. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare) - #[wasm_bindgen(method, js_class = "String", js_name = localeCompare)] + #[wasm_bindgen(method, js_class = "String", js_name = "localeCompare")] pub fn locale_compare( this: &JsString, compare_string: &str, @@ -4490,13 +4622,13 @@ extern "C" { /// The `match()` method retrieves the matches when matching a string against a regular expression. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match) - #[wasm_bindgen(method, js_class = "String", js_name = match)] + #[wasm_bindgen(method, js_class = "String", js_name = "match")] pub fn match_(this: &JsString, pattern: &RegExp) -> Option; /// The `match_all()` method is similar to `match()`, but gives an iterator of `exec()` arrays, which preserve capture groups. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll) - #[wasm_bindgen(method, js_class = "String", js_name = matchAll)] + #[wasm_bindgen(method, js_class = "String", js_name = "matchAll")] pub fn match_all(this: &JsString, pattern: &RegExp) -> Iterator; /// The `normalize()` method returns the Unicode Normalization Form @@ -4512,7 +4644,7 @@ extern "C" { /// string. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd) - #[wasm_bindgen(method, js_class = "String", js_name = padEnd)] + #[wasm_bindgen(method, js_class = "String", js_name = "padEnd")] pub fn pad_end(this: &JsString, target_length: u32, pad_string: &str) -> JsString; /// The `padStart()` method pads the current string with another string @@ -4521,7 +4653,7 @@ extern "C" { /// string. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart) - #[wasm_bindgen(method, js_class = "String", js_name = padStart)] + #[wasm_bindgen(method, js_class = "String", js_name = "padStart")] pub fn pad_start(this: &JsString, target_length: u32, pad_string: &str) -> JsString; /// The `repeat()` method constructs and returns a new string which contains the specified @@ -4542,18 +4674,18 @@ extern "C" { pub fn replace(this: &JsString, pattern: &str, replacement: &str) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) - #[wasm_bindgen(method, js_class = "String", js_name = replace)] + #[wasm_bindgen(method, js_class = "String", js_name = "replace")] pub fn replace_with_function( this: &JsString, pattern: &str, replacement: &Function, ) -> JsString; - #[wasm_bindgen(method, js_class = "String", js_name = replace)] + #[wasm_bindgen(method, js_class = "String", js_name = "replace")] pub fn replace_by_pattern(this: &JsString, pattern: &RegExp, replacement: &str) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) - #[wasm_bindgen(method, js_class = "String", js_name = replace)] + #[wasm_bindgen(method, js_class = "String", js_name = "replace")] pub fn replace_by_pattern_with_function( this: &JsString, pattern: &RegExp, @@ -4567,23 +4699,23 @@ extern "C" { /// Note: The original string will remain unchanged. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) - #[wasm_bindgen(method, js_class = "String", js_name = replaceAll)] + #[wasm_bindgen(method, js_class = "String", js_name = "replaceAll")] pub fn replace_all(this: &JsString, pattern: &str, replacement: &str) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) - #[wasm_bindgen(method, js_class = "String", js_name = replaceAll)] + #[wasm_bindgen(method, js_class = "String", js_name = "replaceAll")] pub fn replace_all_with_function( this: &JsString, pattern: &str, replacement: &Function, ) -> JsString; - #[wasm_bindgen(method, js_class = "String", js_name = replaceAll)] + #[wasm_bindgen(method, js_class = "String", js_name = "replaceAll")] pub fn replace_all_by_pattern(this: &JsString, pattern: &RegExp, replacement: &str) -> JsString; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) - #[wasm_bindgen(method, js_class = "String", js_name = replaceAll)] + #[wasm_bindgen(method, js_class = "String", js_name = "replaceAll")] pub fn replace_all_by_pattern_with_function( this: &JsString, pattern: &RegExp, @@ -4612,15 +4744,15 @@ extern "C" { pub fn split(this: &JsString, separator: &str) -> Array; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split) - #[wasm_bindgen(method, js_class = "String", js_name = split)] + #[wasm_bindgen(method, js_class = "String", js_name = "split")] pub fn split_limit(this: &JsString, separator: &str, limit: u32) -> Array; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split) - #[wasm_bindgen(method, js_class = "String", js_name = split)] + #[wasm_bindgen(method, js_class = "String", js_name = "split")] pub fn split_by_pattern(this: &JsString, pattern: &RegExp) -> Array; /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split) - #[wasm_bindgen(method, js_class = "String", js_name = split)] + #[wasm_bindgen(method, js_class = "String", js_name = "split")] pub fn split_by_pattern_limit(this: &JsString, pattern: &RegExp, limit: u32) -> Array; /// The `startsWith()` method determines whether a string begins with the @@ -4628,7 +4760,7 @@ extern "C" { /// appropriate. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith) - #[wasm_bindgen(method, js_class = "String", js_name = startsWith)] + #[wasm_bindgen(method, js_class = "String", js_name = "startsWith")] pub fn starts_with(this: &JsString, search_string: &str, position: u32) -> bool; /// The `substring()` method returns the part of the string between the @@ -4649,35 +4781,35 @@ extern "C" { /// according to any locale-specific case mappings. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase) - #[wasm_bindgen(method, js_class = "String", js_name = toLocaleLowerCase)] + #[wasm_bindgen(method, js_class = "String", js_name = "toLocaleLowerCase")] pub fn to_locale_lower_case(this: &JsString, locale: Option<&str>) -> JsString; /// The `toLocaleUpperCase()` method returns the calling string value converted to upper case, /// according to any locale-specific case mappings. /// /// [MDN documentation](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase) - #[wasm_bindgen(method, js_class = "String", js_name = toLocaleUpperCase)] + #[wasm_bindgen(method, js_class = "String", js_name = "toLocaleUpperCase")] pub fn to_locale_upper_case(this: &JsString, locale: Option<&str>) -> JsString; /// The `toLowerCase()` method returns the calling string value /// converted to lower case. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase) - #[wasm_bindgen(method, js_class = "String", js_name = toLowerCase)] + #[wasm_bindgen(method, js_class = "String", js_name = "toLowerCase")] pub fn to_lower_case(this: &JsString) -> JsString; /// The `toString()` method returns a string representing the specified /// object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toString) - #[wasm_bindgen(method, js_class = "String", js_name = toString)] + #[wasm_bindgen(method, js_class = "String", js_name = "toString")] pub fn to_string(this: &JsString) -> JsString; /// The `toUpperCase()` method returns the calling string value converted to /// uppercase (the value will be converted to a string if it isn't one). /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase) - #[wasm_bindgen(method, js_class = "String", js_name = toUpperCase)] + #[wasm_bindgen(method, js_class = "String", js_name = "toUpperCase")] pub fn to_upper_case(this: &JsString) -> JsString; /// The `trim()` method removes whitespace from both ends of a string. @@ -4693,62 +4825,77 @@ extern "C" { /// `trimRight()` is an alias of this method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd) - #[wasm_bindgen(method, js_class = "String", js_name = trimEnd)] + #[wasm_bindgen(method, js_class = "String", js_name = "trimEnd")] pub fn trim_end(this: &JsString) -> JsString; /// The `trimEnd()` method removes whitespace from the end of a string. /// `trimRight()` is an alias of this method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd) - #[wasm_bindgen(method, js_class = "String", js_name = trimRight)] + #[wasm_bindgen(method, js_class = "String", js_name = "trimRight")] pub fn trim_right(this: &JsString) -> JsString; /// The `trimStart()` method removes whitespace from the beginning of a /// string. `trimLeft()` is an alias of this method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart) - #[wasm_bindgen(method, js_class = "String", js_name = trimStart)] + #[wasm_bindgen(method, js_class = "String", js_name = "trimStart")] pub fn trim_start(this: &JsString) -> JsString; /// The `trimStart()` method removes whitespace from the beginning of a /// string. `trimLeft()` is an alias of this method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart) - #[wasm_bindgen(method, js_class = "String", js_name = trimLeft)] + #[wasm_bindgen(method, js_class = "String", js_name = "trimLeft")] pub fn trim_left(this: &JsString) -> JsString; /// The `valueOf()` method returns the primitive value of a `String` object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf) - #[wasm_bindgen(method, js_class = "String", js_name = valueOf)] + #[wasm_bindgen(method, js_class = "String", js_name = "valueOf")] pub fn value_of(this: &JsString) -> JsString; /// The static `raw()` method is a tag function of template literals, /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, variadic, static_method_of = JsString, js_class = "String")] + #[wasm_bindgen(catch, variadic, static_method_of = "JsString", js_class = "String")] pub fn raw(call_site: &Object, substitutions: &Array) -> Result; /// The static `raw()` method is a tag function of template literals, /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_0(call_site: &Object) -> Result; /// The static `raw()` method is a tag function of template literals, /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_1(call_site: &Object, substitutions_1: &str) -> Result; /// The static `raw()` method is a tag function of template literals, /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_2( call_site: &Object, substitutions_1: &str, @@ -4759,7 +4906,12 @@ extern "C" { /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_3( call_site: &Object, substitutions_1: &str, @@ -4771,7 +4923,12 @@ extern "C" { /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_4( call_site: &Object, substitutions_1: &str, @@ -4784,7 +4941,12 @@ extern "C" { /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_5( call_site: &Object, substitutions_1: &str, @@ -4798,7 +4960,12 @@ extern "C" { /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_6( call_site: &Object, substitutions_1: &str, @@ -4813,7 +4980,12 @@ extern "C" { /// similar to the `r` prefix in Python or the `@` prefix in C# for string literals. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw) - #[wasm_bindgen(catch, static_method_of = JsString, js_class = "String", js_name = raw)] + #[wasm_bindgen( + catch, + static_method_of = "JsString", + js_class = "String", + js_name = "raw" + )] pub fn raw_7( call_site: &Object, substitutions_1: &str, @@ -4978,7 +5150,7 @@ impl str::FromStr for JsString { // Symbol #[wasm_bindgen] extern "C" { - #[wasm_bindgen(is_type_of = JsValue::is_symbol, typescript_type = "Symbol")] + #[wasm_bindgen(is_type_of = "JsValue::is_symbol", typescript_type = "Symbol")] #[derive(Clone, Debug)] pub type Symbol; @@ -4987,7 +5159,12 @@ extern "C" { /// The `instanceof` operator's behavior can be customized by this symbol. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance) - #[wasm_bindgen(static_method_of = Symbol, getter, structural, js_name = hasInstance)] + #[wasm_bindgen( + static_method_of = "Symbol", + getter, + structural, + js_name = "hasInstance" + )] pub fn has_instance() -> Symbol; /// The `Symbol.isConcatSpreadable` well-known symbol is used to configure @@ -4995,21 +5172,31 @@ extern "C" { /// `Array.prototype.concat()` method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable) - #[wasm_bindgen(static_method_of = Symbol, getter, structural, js_name = isConcatSpreadable)] + #[wasm_bindgen( + static_method_of = "Symbol", + getter, + structural, + js_name = "isConcatSpreadable" + )] pub fn is_concat_spreadable() -> Symbol; /// The `Symbol.asyncIterator` well-known symbol specifies the default AsyncIterator for an object. /// If this property is set on an object, it is an async iterable and can be used in a `for await...of` loop. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator) - #[wasm_bindgen(static_method_of = Symbol, getter, structural, js_name = asyncIterator)] + #[wasm_bindgen( + static_method_of = "Symbol", + getter, + structural, + js_name = "asyncIterator" + )] pub fn async_iterator() -> Symbol; /// The `Symbol.iterator` well-known symbol specifies the default iterator /// for an object. Used by `for...of`. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator) - #[wasm_bindgen(static_method_of = Symbol, getter, structural)] + #[wasm_bindgen(static_method_of = "Symbol", getter, structural)] pub fn iterator() -> Symbol; /// The `Symbol.match` well-known symbol specifies the matching of a regular @@ -5017,7 +5204,7 @@ extern "C" { /// `String.prototype.match()` method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/match) - #[wasm_bindgen(static_method_of = Symbol, getter, structural, js_name = match)] + #[wasm_bindgen(static_method_of = "Symbol", getter, structural, js_name = "match")] pub fn match_() -> Symbol; /// The `Symbol.replace` well-known symbol specifies the method that @@ -5028,7 +5215,7 @@ extern "C" { /// `String.prototype.replace()`. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/replace) - #[wasm_bindgen(static_method_of = Symbol, getter, structural)] + #[wasm_bindgen(static_method_of = "Symbol", getter, structural)] pub fn replace() -> Symbol; /// The `Symbol.search` well-known symbol specifies the method that returns @@ -5039,14 +5226,14 @@ extern "C" { /// `String.prototype.search()`. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/search) - #[wasm_bindgen(static_method_of = Symbol, getter, structural)] + #[wasm_bindgen(static_method_of = "Symbol", getter, structural)] pub fn search() -> Symbol; /// The well-known symbol `Symbol.species` specifies a function-valued /// property that the constructor function uses to create derived objects. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/species) - #[wasm_bindgen(static_method_of = Symbol, getter, structural)] + #[wasm_bindgen(static_method_of = "Symbol", getter, structural)] pub fn species() -> Symbol; /// The `Symbol.split` well-known symbol specifies the method that splits a @@ -5056,7 +5243,7 @@ extern "C" { /// For more information, see `RegExp.prototype[@@split]()` and /// `String.prototype.split()`. /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/split) - #[wasm_bindgen(static_method_of = Symbol, getter, structural)] + #[wasm_bindgen(static_method_of = "Symbol", getter, structural)] pub fn split() -> Symbol; /// The `Symbol.toPrimitive` is a symbol that specifies a function valued @@ -5064,7 +5251,12 @@ extern "C" { /// primitive value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive) - #[wasm_bindgen(static_method_of = Symbol, getter, structural, js_name = toPrimitive)] + #[wasm_bindgen( + static_method_of = "Symbol", + getter, + structural, + js_name = "toPrimitive" + )] pub fn to_primitive() -> Symbol; /// The `Symbol.toStringTag` well-known symbol is a string valued property @@ -5073,7 +5265,12 @@ extern "C" { /// method. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toString) - #[wasm_bindgen(static_method_of = Symbol, getter, structural, js_name = toStringTag)] + #[wasm_bindgen( + static_method_of = "Symbol", + getter, + structural, + js_name = "toStringTag" + )] pub fn to_string_tag() -> Symbol; /// The `Symbol.for(key)` method searches for existing symbols in a runtime-wide symbol registry with @@ -5081,19 +5278,19 @@ extern "C" { /// Otherwise a new symbol gets created in the global symbol registry with this key. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for) - #[wasm_bindgen(static_method_of = Symbol, js_name = for)] + #[wasm_bindgen(static_method_of = "Symbol", js_name = "for")] pub fn for_(key: &str) -> Symbol; /// The `Symbol.keyFor(sym)` method retrieves a shared symbol key from the global symbol registry for the given symbol. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/keyFor) - #[wasm_bindgen(static_method_of = Symbol, js_name = keyFor)] + #[wasm_bindgen(static_method_of = "Symbol", js_name = "keyFor")] pub fn key_for(sym: &Symbol) -> JsValue; /// The `toString()` method returns a string representing the specified Symbol object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toString) - #[wasm_bindgen(method, js_name = toString)] + #[wasm_bindgen(method, js_name = "toString")] pub fn to_string(this: &Symbol) -> JsString; /// The `Symbol.unscopables` well-known symbol is used to specify an object @@ -5101,13 +5298,13 @@ extern "C" { /// with environment bindings of the associated object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/unscopables) - #[wasm_bindgen(static_method_of = Symbol, getter, structural)] + #[wasm_bindgen(static_method_of = "Symbol", getter, structural)] pub fn unscopables() -> Symbol; /// The `valueOf()` method returns the primitive value of a Symbol object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/valueOf) - #[wasm_bindgen(method, js_name = valueOf)] + #[wasm_bindgen(method, js_name = "valueOf")] pub fn value_of(this: &Symbol) -> Symbol; } @@ -5123,7 +5320,7 @@ pub mod Intl { /// will be validated as structurally valid language tags. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) - #[wasm_bindgen(js_name = getCanonicalLocales, js_namespace = Intl)] + #[wasm_bindgen(js_name = "getCanonicalLocales", js_namespace = "Intl")] pub fn get_canonical_locales(s: &JsValue) -> Array; } @@ -5134,7 +5331,11 @@ pub mod Intl { /// that enable language sensitive string comparison. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator) - #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.Collator")] + #[wasm_bindgen( + extends = "Object", + js_namespace = "Intl", + typescript_type = "Intl.Collator" + )] #[derive(Clone, Debug)] pub type Collator; @@ -5142,7 +5343,7 @@ pub mod Intl { /// that enable language sensitive string comparison. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator) - #[wasm_bindgen(constructor, js_namespace = Intl)] + #[wasm_bindgen(constructor, js_namespace = "Intl")] pub fn new(locales: &Array, options: &Object) -> Collator; /// The Intl.Collator.prototype.compare property returns a function that @@ -5158,7 +5359,7 @@ pub mod Intl { /// computed during initialization of this Collator object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/resolvedOptions) - #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)] + #[wasm_bindgen(method, js_namespace = "Intl", js_name = "resolvedOptions")] pub fn resolved_options(this: &Collator) -> Object; /// The `Intl.Collator.supportedLocalesOf()` method returns an array @@ -5167,7 +5368,11 @@ pub mod Intl { /// locale. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/supportedLocalesOf) - #[wasm_bindgen(static_method_of = Collator, js_namespace = Intl, js_name = supportedLocalesOf)] + #[wasm_bindgen( + static_method_of = "Collator", + js_namespace = "Intl", + js_name = "supportedLocalesOf" + )] pub fn supported_locales_of(locales: &Array, options: &Object) -> Array; } @@ -5187,7 +5392,11 @@ pub mod Intl { /// that enable language-sensitive date and time formatting. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) - #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.DateTimeFormat")] + #[wasm_bindgen( + extends = "Object", + js_namespace = "Intl", + typescript_type = "Intl.DateTimeFormat" + )] #[derive(Clone, Debug)] pub type DateTimeFormat; @@ -5195,7 +5404,7 @@ pub mod Intl { /// that enable language-sensitive date and time formatting. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) - #[wasm_bindgen(constructor, js_namespace = Intl)] + #[wasm_bindgen(constructor, js_namespace = "Intl")] pub fn new(locales: &Array, options: &Object) -> DateTimeFormat; /// The Intl.DateTimeFormat.prototype.format property returns a getter function that @@ -5210,7 +5419,7 @@ pub mod Intl { /// formatting of strings produced by DateTimeFormat formatters. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts) - #[wasm_bindgen(method, js_class = "Intl.DateTimeFormat", js_name = formatToParts)] + #[wasm_bindgen(method, js_class = "Intl.DateTimeFormat", js_name = "formatToParts")] pub fn format_to_parts(this: &DateTimeFormat, date: &Date) -> Array; /// The `Intl.DateTimeFormat.prototype.resolvedOptions()` method returns a new @@ -5218,7 +5427,7 @@ pub mod Intl { /// options computed during initialization of this DateTimeFormat object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/resolvedOptions) - #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)] + #[wasm_bindgen(method, js_namespace = "Intl", js_name = "resolvedOptions")] pub fn resolved_options(this: &DateTimeFormat) -> Object; /// The `Intl.DateTimeFormat.supportedLocalesOf()` method returns an array @@ -5227,7 +5436,11 @@ pub mod Intl { /// locale. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/supportedLocalesOf) - #[wasm_bindgen(static_method_of = DateTimeFormat, js_namespace = Intl, js_name = supportedLocalesOf)] + #[wasm_bindgen( + static_method_of = "DateTimeFormat", + js_namespace = "Intl", + js_name = "supportedLocalesOf" + )] pub fn supported_locales_of(locales: &Array, options: &Object) -> Array; } @@ -5247,7 +5460,11 @@ pub mod Intl { /// that enable language sensitive number formatting. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) - #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.NumberFormat")] + #[wasm_bindgen( + extends = "Object", + js_namespace = "Intl", + typescript_type = "Intl.NumberFormat" + )] #[derive(Clone, Debug)] pub type NumberFormat; @@ -5255,7 +5472,7 @@ pub mod Intl { /// that enable language sensitive number formatting. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) - #[wasm_bindgen(constructor, js_namespace = Intl)] + #[wasm_bindgen(constructor, js_namespace = "Intl")] pub fn new(locales: &Array, options: &Object) -> NumberFormat; /// The Intl.NumberFormat.prototype.format property returns a getter function that @@ -5270,7 +5487,7 @@ pub mod Intl { /// formatting of strings produced by NumberTimeFormat formatters. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/formatToParts) - #[wasm_bindgen(method, js_class = "Intl.NumberFormat", js_name = formatToParts)] + #[wasm_bindgen(method, js_class = "Intl.NumberFormat", js_name = "formatToParts")] pub fn format_to_parts(this: &NumberFormat, number: f64) -> Array; /// The `Intl.NumberFormat.prototype.resolvedOptions()` method returns a new @@ -5278,7 +5495,7 @@ pub mod Intl { /// options computed during initialization of this NumberFormat object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/resolvedOptions) - #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)] + #[wasm_bindgen(method, js_namespace = "Intl", js_name = "resolvedOptions")] pub fn resolved_options(this: &NumberFormat) -> Object; /// The `Intl.NumberFormat.supportedLocalesOf()` method returns an array @@ -5286,7 +5503,11 @@ pub mod Intl { /// formatting without having to fall back to the runtime's default locale. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/supportedLocalesOf) - #[wasm_bindgen(static_method_of = NumberFormat, js_namespace = Intl, js_name = supportedLocalesOf)] + #[wasm_bindgen( + static_method_of = "NumberFormat", + js_namespace = "Intl", + js_name = "supportedLocalesOf" + )] pub fn supported_locales_of(locales: &Array, options: &Object) -> Array; } @@ -5306,7 +5527,11 @@ pub mod Intl { /// that enable plural sensitive formatting and plural language rules. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules) - #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.PluralRules")] + #[wasm_bindgen( + extends = "Object", + js_namespace = "Intl", + typescript_type = "Intl.PluralRules" + )] #[derive(Clone, Debug)] pub type PluralRules; @@ -5314,7 +5539,7 @@ pub mod Intl { /// that enable plural sensitive formatting and plural language rules. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules) - #[wasm_bindgen(constructor, js_namespace = Intl)] + #[wasm_bindgen(constructor, js_namespace = "Intl")] pub fn new(locales: &Array, options: &Object) -> PluralRules; /// The `Intl.PluralRules.prototype.resolvedOptions()` method returns a new @@ -5322,14 +5547,14 @@ pub mod Intl { /// options computed during initialization of this PluralRules object. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/resolvedOptions) - #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)] + #[wasm_bindgen(method, js_namespace = "Intl", js_name = "resolvedOptions")] pub fn resolved_options(this: &PluralRules) -> Object; /// The `Intl.PluralRules.prototype.select()` method returns a String indicating /// which plural rule to use for locale-aware formatting. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/select) - #[wasm_bindgen(method, js_namespace = Intl)] + #[wasm_bindgen(method, js_namespace = "Intl")] pub fn select(this: &PluralRules, number: f64) -> JsString; /// The `Intl.PluralRules.supportedLocalesOf()` method returns an array @@ -5337,7 +5562,11 @@ pub mod Intl { /// formatting without having to fall back to the runtime's default locale. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/supportedLocalesOf) - #[wasm_bindgen(static_method_of = PluralRules, js_namespace = Intl, js_name = supportedLocalesOf)] + #[wasm_bindgen( + static_method_of = "PluralRules", + js_namespace = "Intl", + js_name = "supportedLocalesOf" + )] pub fn supported_locales_of(locales: &Array, options: &Object) -> Array; } @@ -5359,7 +5588,7 @@ extern "C" { /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) #[must_use] - #[wasm_bindgen(extends = Object, typescript_type = "Promise")] + #[wasm_bindgen(extends = "Object", typescript_type = "Promise")] #[derive(Clone, Debug)] pub type Promise; @@ -5388,7 +5617,7 @@ extern "C" { /// reason of the first promise that rejects. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all) - #[wasm_bindgen(static_method_of = Promise)] + #[wasm_bindgen(static_method_of = "Promise")] pub fn all(obj: &JsValue) -> Promise; /// The `Promise.allSettled(iterable)` method returns a single `Promise` that @@ -5396,7 +5625,7 @@ extern "C" { /// fulfilled or rejected or when the iterable argument contains no promises. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled) - #[wasm_bindgen(static_method_of = Promise, js_name = allSettled)] + #[wasm_bindgen(static_method_of = "Promise", js_name = "allSettled")] pub fn all_settled(obj: &JsValue) -> Promise; /// The `Promise.any(iterable)` method returns a single `Promise` that @@ -5405,7 +5634,7 @@ extern "C" { /// `AggregateError` if all promises in the iterable rejected. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any) - #[wasm_bindgen(static_method_of = Promise)] + #[wasm_bindgen(static_method_of = "Promise")] pub fn any(obj: &JsValue) -> Promise; /// The `Promise.race(iterable)` method returns a promise that resolves or @@ -5413,14 +5642,14 @@ extern "C" { /// rejects, with the value or reason from that promise. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race) - #[wasm_bindgen(static_method_of = Promise)] + #[wasm_bindgen(static_method_of = "Promise")] pub fn race(obj: &JsValue) -> Promise; /// The `Promise.reject(reason)` method returns a `Promise` object that is /// rejected with the given reason. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/reject) - #[wasm_bindgen(static_method_of = Promise)] + #[wasm_bindgen(static_method_of = "Promise")] pub fn reject(obj: &JsValue) -> Promise; /// The `Promise.resolve(value)` method returns a `Promise` object that is @@ -5430,7 +5659,7 @@ extern "C" { /// state; otherwise the returned promise will be fulfilled with the value. /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve) - #[wasm_bindgen(static_method_of = Promise)] + #[wasm_bindgen(static_method_of = "Promise")] pub fn resolve(obj: &JsValue) -> Promise; /// The `catch()` method returns a `Promise` and deals with rejected cases @@ -5450,7 +5679,7 @@ extern "C" { pub fn then(this: &Promise, cb: &Closure) -> Promise; /// Same as `then`, only with both arguments provided. - #[wasm_bindgen(method, js_name = then)] + #[wasm_bindgen(method, js_name = "then")] pub fn then2( this: &Promise, resolve: &Closure, @@ -5502,16 +5731,40 @@ pub fn global() -> Object { extern "C" { type Global; - #[wasm_bindgen(getter, catch, static_method_of = Global, js_class = globalThis, js_name = globalThis)] + #[wasm_bindgen( + getter, + catch, + static_method_of = "Global", + js_class = "globalThis", + js_name = "globalThis" + )] fn get_global_this() -> Result; - #[wasm_bindgen(getter, catch, static_method_of = Global, js_class = self, js_name = self)] + #[wasm_bindgen( + getter, + catch, + static_method_of = "Global", + js_class = "self", + js_name = "self" + )] fn get_self() -> Result; - #[wasm_bindgen(getter, catch, static_method_of = Global, js_class = window, js_name = window)] + #[wasm_bindgen( + getter, + catch, + static_method_of = "Global", + js_class = "window", + js_name = "window" + )] fn get_window() -> Result; - #[wasm_bindgen(getter, catch, static_method_of = Global, js_class = global, js_name = global)] + #[wasm_bindgen( + getter, + catch, + static_method_of = "Global", + js_class = "global", + js_name = "global" + )] fn get_global() -> Result; } @@ -5556,7 +5809,7 @@ macro_rules! arrays { ($(#[doc = $ctor:literal] #[doc = $mdn:literal] $name:ident: $ty:ident,)*) => ($( #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = Object, typescript_type = $name)] + #[wasm_bindgen(extends = "Object", typescript_type = "$name")] #[derive(Clone, Debug)] pub type $name; @@ -5635,7 +5888,7 @@ macro_rules! arrays { /// element. This method has the same algorithm as /// `Array.prototype.forEach()`. `TypedArray` is one of the typed array /// types here. - #[wasm_bindgen(method, js_name = forEach)] + #[wasm_bindgen(method, js_name = "forEach")] pub fn for_each(this: &$name, callback: &mut dyn FnMut($ty, u32, $name)); /// The length accessor property represents the length (in elements) of a @@ -5645,12 +5898,12 @@ macro_rules! arrays { /// The byteLength accessor property represents the length (in bytes) of a /// typed array. - #[wasm_bindgen(method, getter, js_name = byteLength)] + #[wasm_bindgen(method, getter, js_name = "byteLength")] pub fn byte_length(this: &$name) -> u32; /// The byteOffset accessor property represents the offset (in bytes) of a /// typed array from the start of its `ArrayBuffer`. - #[wasm_bindgen(method, getter, js_name = byteOffset)] + #[wasm_bindgen(method, getter, js_name = "byteOffset")] pub fn byte_offset(this: &$name) -> u32; /// The `set()` method stores multiple values in the typed array, reading diff --git a/crates/js-sys/tests/wasm/Function.rs b/crates/js-sys/tests/wasm/Function.rs index c87a46cca2d..227571f513a 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(js_name = max, js_namespace = Math)] + #[wasm_bindgen(js_name = "max", js_namespace = "Math")] static MAX: Function; type ArrayPrototype; #[wasm_bindgen(method, getter, structural)] pub fn push(this: &ArrayPrototype) -> Function; - #[wasm_bindgen(js_name = prototype, js_namespace = Array)] + #[wasm_bindgen(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 4f1ade9727c..ef663c333b9 100644 --- a/crates/js-sys/tests/wasm/Object.rs +++ b/crates/js-sys/tests/wasm/Object.rs @@ -10,9 +10,9 @@ extern "C" { #[wasm_bindgen(method, setter, structural)] fn set_foo(this: &Foo42, val: JsValue); - #[wasm_bindgen(js_name = prototype, js_namespace = Object)] + #[wasm_bindgen(js_name = "prototype", js_namespace = "Object")] static OBJECT_PROTOTYPE: JsValue; - #[wasm_bindgen(js_name = prototype, js_namespace = Array)] + #[wasm_bindgen(js_name = "prototype", js_namespace = "Array")] static ARRAY_PROTOTYPE: JsValue; type DefinePropertyAttrs; @@ -33,9 +33,9 @@ extern "C" { #[wasm_bindgen(constructor)] fn new() -> Foo; - #[wasm_bindgen(js_name = prototype, js_namespace = Foo)] + #[wasm_bindgen(js_name = "prototype", js_namespace = "Foo")] static FOO_PROTOTYPE: Object; - #[wasm_bindgen(js_name = prototype, js_namespace = Bar)] + #[wasm_bindgen(js_name = "prototype", js_namespace = "Bar")] static BAR_PROTOTYPE: Object; } diff --git a/crates/js-sys/tests/wasm/Reflect.rs b/crates/js-sys/tests/wasm/Reflect.rs index d50629ec12b..73e2285ec64 100644 --- a/crates/js-sys/tests/wasm/Reflect.rs +++ b/crates/js-sys/tests/wasm/Reflect.rs @@ -6,9 +6,9 @@ use wasm_bindgen_test::*; extern "C" { fn get_char_at() -> Function; - #[wasm_bindgen(js_name = Rectangle)] + #[wasm_bindgen(js_name = "Rectangle")] static RECTANGLE_CLASS: Function; - #[wasm_bindgen(js_name = Rectangle2)] + #[wasm_bindgen(js_name = "Rectangle2")] static RECTANGLE2_CLASS: Function; #[derive(Clone)] @@ -17,7 +17,7 @@ extern "C" { fn new() -> Rectangle; #[wasm_bindgen(method, getter, structural)] fn x(this: &Rectangle) -> u32; - #[wasm_bindgen(method, getter, structural, js_name = x)] + #[wasm_bindgen(method, getter, structural, js_name = "x")] fn x_jsval(this: &Rectangle) -> JsValue; #[wasm_bindgen(method, setter, structural)] fn set_x(this: &Rectangle, x: u32); @@ -27,9 +27,9 @@ extern "C" { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_name = prototype, js_namespace = Object)] + #[wasm_bindgen(js_name = "prototype", js_namespace = "Object")] static OBJECT_PROTOTYPE: JsValue; - #[wasm_bindgen(js_name = prototype, js_namespace = Array)] + #[wasm_bindgen(js_name = "prototype", js_namespace = "Array")] static ARRAY_PROTOTYPE: JsValue; type DefinePropertyAttrs; diff --git a/crates/js-sys/tests/wasm/Symbol.rs b/crates/js-sys/tests/wasm/Symbol.rs index 0f1e3d0f63d..94191ea141e 100644 --- a/crates/js-sys/tests/wasm/Symbol.rs +++ b/crates/js-sys/tests/wasm/Symbol.rs @@ -20,7 +20,7 @@ extern "C" { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_name = Symbol)] + #[wasm_bindgen(js_name = "Symbol")] fn gensym(val: JsValue) -> Symbol; } diff --git a/crates/js-sys/tests/wasm/WebAssembly.rs b/crates/js-sys/tests/wasm/WebAssembly.rs index 7a06e256a2c..3b601a496ca 100644 --- a/crates/js-sys/tests/wasm/WebAssembly.rs +++ b/crates/js-sys/tests/wasm/WebAssembly.rs @@ -5,16 +5,16 @@ use wasm_bindgen_test::*; #[wasm_bindgen(module = "tests/wasm/WebAssembly.js")] extern "C" { - #[wasm_bindgen(js_name = getWasmArray)] + #[wasm_bindgen(js_name = "getWasmArray")] fn get_wasm_array() -> Uint8Array; - #[wasm_bindgen(js_name = getTableObject)] + #[wasm_bindgen(js_name = "getTableObject")] fn get_table_object() -> Object; - #[wasm_bindgen(js_name = getInvalidTableObject)] + #[wasm_bindgen(js_name = "getInvalidTableObject")] fn get_invalid_table_object() -> Object; - #[wasm_bindgen(js_name = getImports)] + #[wasm_bindgen(js_name = "getImports")] fn get_imports() -> Object; } diff --git a/crates/macro-support/Cargo.toml b/crates/macro-support/Cargo.toml index 3bebaa3fe93..f63352dd9ed 100644 --- a/crates/macro-support/Cargo.toml +++ b/crates/macro-support/Cargo.toml @@ -17,6 +17,7 @@ extra-traits = ["syn/extra-traits"] strict-macro = [] [dependencies] +darling = "0.14.1" syn = { version = '1.0.67', features = ['visit', 'full'] } quote = '1.0' proc-macro2 = "1.0" diff --git a/crates/macro-support/src/d.rs b/crates/macro-support/src/d.rs new file mode 100644 index 00000000000..98f2d5abb46 --- /dev/null +++ b/crates/macro-support/src/d.rs @@ -0,0 +1,383 @@ +//! Structs to receive attribute options for each supported syntax type. +//! +//! Dedicated structs are used per-syntax-type to make sure unexpected meta properties produce errors +//! at compile-time. + +use std::ops::Deref; + +use darling::{ + util::{Flag, Override, SpannedValue}, + Error, FromMeta, +}; +use syn::{Ident, LitStr}; +use wasm_bindgen_backend::ast; + +use self::fields::SkipTypescript; + +/// A JS namespace, which can be represented as `"value"` or `r#"["first", "second"]#"`. +pub struct JsNamespace(Vec); + +impl JsNamespace { + pub fn to_strings(&self) -> Vec { + self.0.iter().map(|s| s.value()).collect() + } +} + +impl FromMeta for JsNamespace { + fn from_value(value: &syn::Lit) -> darling::Result { + if let syn::Lit::Str(s) = value { + if let Ok(array) = s.parse::() { + let mut errors = Error::accumulator(); + let terms = array + .elems + .into_iter() + .filter_map(|elem| errors.handle(get_string_literal(elem))) + .collect(); + errors.finish_with(Self(terms)) + } else if let Ok(_ident) = s.parse::() { + Ok(Self(vec![s.clone()])) + } else { + Err(Error::custom(format!( + "Value is not an ident or a list of idents" + ))) + } + } else { + Err(Error::unexpected_lit_type(value)) + } + } +} + +fn get_string_literal(expr: syn::Expr) -> darling::Result { + if let syn::Expr::Lit(syn::ExprLit { + attrs: _, + lit: syn::Lit::Str(s), + }) = expr + { + Ok(s) + } else { + Err(darling::Error::custom("Expected string literal").with_span(&expr)) + } +} + +pub mod fields { + use darling::util::Flag; + + macro_rules! field_trait { + ($name:ident, $return:ty, $field:ident) => { + pub trait $name { + fn $field(&self) -> $return; + } + }; + } + + field_trait!(JsName, Option<&syn::LitStr>, js_name); + field_trait!(SkipTypescript, Flag, skip_typescript); +} + +macro_rules! impl_field_trait { + (JsName for $name:ident) => { + impl fields::JsName for $name { + fn js_name(&self) -> Option<&LitStr> { + self.js_name.as_ref() + } + } + }; + (SkipTypescript for $name:ident) => { + impl fields::SkipTypescript for $name { + fn skip_typescript(&self) -> Flag { + self.skip_typescript + } + } + }; +} + +pub trait ParseAttr { + type Parsed: FromMeta; + + /// Parse the `wasm_bindgen` attr from the explicitly-passed list of meta items. + fn parse_attr_args(args: &[syn::NestedMeta]) -> darling::Result; + + /// Find the first `#[wasm_bindgen]` attribute in `self`, remove it, and parse it. + fn parse_contained_attr(&mut self) -> darling::Result; +} + +macro_rules! impl_parse_attr { + ($syn:path, $parsed:ident) => { + impl ParseAttr for $syn { + type Parsed = $parsed; + + fn parse_attr_args(args: &[syn::NestedMeta]) -> darling::Result { + Self::Parsed::from_list(args) + } + + fn parse_contained_attr(&mut self) -> darling::Result { + extract_wasm_bindgen::(&mut self.attrs) + } + } + }; +} + +fn extract_wasm_bindgen(attrs: &mut Vec) -> darling::Result { + let wasm_bindgen_attr = if let Some((index, _attr)) = attrs + .iter() + .enumerate() + .find(|(_, val)| val.path.is_ident("wasm_bindgen")) + { + Some(attrs.remove(index).parse_meta()?) + } else { + None + }; + + match wasm_bindgen_attr { + Some(syn::Meta::Path(_)) | None => T::from_list(&[]), + Some(meta) => T::from_meta(&meta), + } +} + +#[derive(FromMeta)] +pub struct ImplItemMethod { + pub constructor: Flag, + pub getter: Option>>, + pub indexing_deleter: Flag, + pub indexing_getter: Flag, + pub indexing_setter: Flag, + pub js_name: Option, + pub setter: Option>>, + pub skip: Flag, + pub skip_typescript: Flag, +} + +impl_parse_attr!(syn::ImplItemMethod, ImplItemMethod); +impl_field_trait!(JsName for ImplItemMethod); +impl_field_trait!(SkipTypescript for ImplItemMethod); + +#[derive(FromMeta)] +pub struct ItemEnum { + pub js_name: Option, + pub skip_typescript: Flag, +} + +impl_parse_attr!(syn::ItemEnum, ItemEnum); + +#[derive(Debug, FromMeta)] +pub struct ItemStruct { + pub js_name: Option, + pub getter_with_clone: Flag, + pub inspectable: Flag, + pub skip_typescript: Flag, +} + +impl_parse_attr!(syn::ItemStruct, ItemStruct); +impl_field_trait!(JsName for ItemStruct); +impl_field_trait!(SkipTypescript for ItemStruct); + +#[derive(FromMeta)] +pub struct ItemFn { + pub getter: Option>>, + pub indexing_deleter: Flag, + pub indexing_getter: Flag, + pub indexing_setter: Flag, + pub js_name: Option, + pub setter: Option>>, + pub skip: Flag, + pub skip_typescript: Flag, + pub start: Flag, +} + +impl_parse_attr!(syn::ItemFn, ItemFn); +impl_field_trait!(JsName for ItemFn); +impl_field_trait!(SkipTypescript for ItemFn); + +#[derive(FromMeta)] +pub struct ItemImpl { + pub js_class: Option, +} + +impl_parse_attr!(syn::ItemImpl, ItemImpl); + +#[derive(FromMeta)] +pub struct Field { + pub getter_with_clone: Flag, + pub js_name: Option, + pub readonly: Flag, + pub skip: Flag, + pub skip_typescript: Flag, +} + +impl_parse_attr!(syn::Field, Field); + +#[derive(FromMeta)] +pub struct Variant { + pub js_name: Option, + pub skip: Flag, +} + +impl_parse_attr!(syn::Variant, Variant); + +#[derive(FromMeta)] +pub struct ItemConst { + // This requires the word be present, and no value be provided. If this becomes optional + // in the future, switch to `Flag` instead. + pub typescript_custom_section: SpannedValue<()>, +} + +impl_parse_attr!(syn::ItemConst, ItemConst); + +#[derive(FromMeta)] +#[darling(and_then = "Self::finish")] +pub struct ForeignMod { + pub module: Option, + pub raw_module: Option, + pub inline_js: Option, + /// This field prevents construction of a `ForeignMod` without it going through the validation + /// in [`Self::finish`]. + #[darling(skip)] + __do_not_construct: (), +} + +impl_parse_attr!(syn::ItemForeignMod, ForeignMod); + +impl ForeignMod { + fn finish(self) -> darling::Result { + let mut errors = Error::accumulator(); + if let Some(v) = &self.module { + if self.inline_js.is_some() { + let msg = "cannot specify both `module` and `inline_js`"; + errors.push(Error::custom(msg).with_span(v)); + } + if self.raw_module.is_some() { + let msg = "cannot specify both `module` and `raw_module`"; + errors.push(Error::custom(msg).with_span(v)); + } + } else if let Some(v) = &self.raw_module { + if self.inline_js.is_some() { + let msg = "cannot specify both `raw_module` and `inline_js`"; + errors.push(Error::custom(msg).with_span(v)); + } + } + + errors.finish_with(self) + } +} + +#[derive(FromMeta)] +pub struct ForeignItemFn { + pub assert_no_shim: Flag, + pub catch: Flag, + pub constructor: Flag, + #[darling(rename = "final")] + pub r#final: Flag, + pub getter: Option>>, + pub indexing_deleter: Flag, + pub indexing_getter: Flag, + pub indexing_setter: Flag, + pub js_class: Option, + pub js_name: Option, + pub js_namespace: Option, + pub method: Flag, + pub structural: Flag, + pub variadic: Flag, + pub setter: Option>>, + pub static_method_of: Option, +} + +impl_parse_attr!(syn::ForeignItemFn, ForeignItemFn); +impl_field_trait!(JsName for ForeignItemFn); + +impl SkipTypescript for ForeignItemFn { + fn skip_typescript(&self) -> Flag { + Flag::default() + } +} + +#[derive(FromMeta)] +pub struct ForeignItemStatic { + pub js_name: Option, + pub js_namespace: Option, +} + +impl_parse_attr!(syn::ForeignItemStatic, ForeignItemStatic); + +#[derive(FromMeta)] +pub struct ForeignItemType { + #[darling(multiple)] + pub extends: Vec, + pub is_type_of: Option, + pub js_name: Option, + pub js_namespace: Option, + pub no_deref: Flag, + pub typescript_type: Option, + #[darling(multiple)] + pub vendor_prefix: Vec, +} + +impl_parse_attr!(syn::ForeignItemType, ForeignItemType); + +impl<'a> From<&'a ImplItemMethod> for ast::OperationKind { + fn from(opts: &'a ImplItemMethod) -> Self { + let mut operation_kind = ast::OperationKind::Regular; + if let Some(g) = &opts.getter { + operation_kind = ast::OperationKind::Getter(g.deref().clone().explicit()); + } + if let Some(s) = &opts.setter { + operation_kind = ast::OperationKind::Setter(s.deref().clone().explicit()); + } + if opts.indexing_getter.is_present() { + operation_kind = ast::OperationKind::IndexingGetter; + } + if opts.indexing_setter.is_present() { + operation_kind = ast::OperationKind::IndexingSetter; + } + if opts.indexing_deleter.is_present() { + operation_kind = ast::OperationKind::IndexingDeleter; + } + + operation_kind + } +} + +impl<'a> From<&'a ItemFn> for ast::OperationKind { + fn from(opts: &'a ItemFn) -> Self { + let mut operation_kind = ast::OperationKind::Regular; + if let Some(g) = &opts.getter { + operation_kind = ast::OperationKind::Getter(g.deref().clone().explicit()); + } + if let Some(s) = &opts.setter { + operation_kind = ast::OperationKind::Setter(s.deref().clone().explicit()); + } + if opts.indexing_getter.is_present() { + operation_kind = ast::OperationKind::IndexingGetter; + } + if opts.indexing_setter.is_present() { + operation_kind = ast::OperationKind::IndexingSetter; + } + if opts.indexing_deleter.is_present() { + operation_kind = ast::OperationKind::IndexingDeleter; + } + + operation_kind + } +} + +impl<'a> From<&'a ForeignItemFn> for ast::OperationKind { + fn from(opts: &'a ForeignItemFn) -> Self { + let mut operation_kind = ast::OperationKind::Regular; + if let Some(g) = &opts.getter { + operation_kind = ast::OperationKind::Getter(g.deref().clone().explicit()); + } + if let Some(s) = &opts.setter { + operation_kind = ast::OperationKind::Setter(s.deref().clone().explicit()); + } + if opts.indexing_getter.is_present() { + operation_kind = ast::OperationKind::IndexingGetter; + } + if opts.indexing_setter.is_present() { + operation_kind = ast::OperationKind::IndexingSetter; + } + if opts.indexing_deleter.is_present() { + operation_kind = ast::OperationKind::IndexingDeleter; + } + + operation_kind + } +} diff --git a/crates/macro-support/src/lib.rs b/crates/macro-support/src/lib.rs index 9996849596a..f20485e3495 100644 --- a/crates/macro-support/src/lib.rs +++ b/crates/macro-support/src/lib.rs @@ -11,32 +11,29 @@ extern crate syn; extern crate wasm_bindgen_backend as backend; extern crate wasm_bindgen_shared as shared; -pub use crate::parser::BindgenAttrs; use crate::parser::MacroParse; use backend::{Diagnostic, TryToTokens}; use proc_macro2::TokenStream; use quote::ToTokens; use quote::TokenStreamExt; use syn::parse::{Parse, ParseStream, Result as SynResult}; +use syn::AttributeArgs; + +mod d; + +pub(crate) use d::ParseAttr; mod parser; /// Takes the parsed input from a `#[wasm_bindgen]` macro and returns the generated bindings -pub fn expand(attr: TokenStream, input: TokenStream) -> Result { - parser::reset_attrs_used(); +pub fn expand(attr: AttributeArgs, input: TokenStream) -> Result { let item = syn::parse2::(input)?; - let opts = syn::parse2(attr)?; let mut tokens = proc_macro2::TokenStream::new(); let mut program = backend::ast::Program::default(); - item.macro_parse(&mut program, (Some(opts), &mut tokens))?; + item.macro_parse(&mut program, (attr, &mut tokens))?; program.try_to_tokens(&mut tokens)?; - // If we successfully got here then we should have used up all attributes - // and considered all of them to see if they were used. If one was forgotten - // that's a bug on our end, so sanity check here. - parser::assert_all_attrs_checked(); - Ok(tokens) } @@ -45,13 +42,11 @@ pub fn expand_class_marker( attr: TokenStream, input: TokenStream, ) -> Result { - parser::reset_attrs_used(); let mut item = syn::parse2::(input)?; let opts: ClassMarker = syn::parse2(attr)?; let mut program = backend::ast::Program::default(); item.macro_parse(&mut program, (&opts.class, &opts.js_class))?; - parser::assert_all_attrs_checked(); // same as above // This is where things are slightly different, we are being expanded in the // context of an impl so we can't inject arbitrary item-like tokens into the diff --git a/crates/macro-support/src/parser.rs b/crates/macro-support/src/parser.rs index 4768b3d15de..d95f9a1b3ce 100644 --- a/crates/macro-support/src/parser.rs +++ b/crates/macro-support/src/parser.rs @@ -1,4 +1,3 @@ -use std::cell::Cell; use std::char; use std::str::Chars; @@ -6,345 +5,13 @@ use ast::OperationKind; use backend::ast; use backend::util::{ident_ty, ShortHash}; use backend::Diagnostic; -use proc_macro2::{Delimiter, Ident, Span, TokenStream, TokenTree}; +use proc_macro2::{Ident, Span, TokenStream, TokenTree}; use quote::ToTokens; use shared; -use syn; -use syn::parse::{Parse, ParseStream, Result as SynResult}; use syn::spanned::Spanned; +use syn::{self, AttributeArgs}; -thread_local!(static ATTRS: AttributeParseState = Default::default()); - -#[derive(Default)] -struct AttributeParseState { - parsed: Cell, - checks: Cell, -} - -/// Parsed attributes from a `#[wasm_bindgen(..)]`. -#[cfg_attr(feature = "extra-traits", derive(Debug))] -pub struct BindgenAttrs { - /// List of parsed attributes - pub attrs: Vec<(Cell, BindgenAttr)>, -} - -macro_rules! attrgen { - ($mac:ident) => { - $mac! { - (catch, Catch(Span)), - (constructor, Constructor(Span)), - (method, Method(Span)), - (static_method_of, StaticMethodOf(Span, Ident)), - (js_namespace, JsNamespace(Span, Vec, Vec)), - (module, Module(Span, String, Span)), - (raw_module, RawModule(Span, String, Span)), - (inline_js, InlineJs(Span, String, Span)), - (getter, Getter(Span, Option)), - (setter, Setter(Span, Option)), - (indexing_getter, IndexingGetter(Span)), - (indexing_setter, IndexingSetter(Span)), - (indexing_deleter, IndexingDeleter(Span)), - (structural, Structural(Span)), - (r#final, Final(Span)), - (readonly, Readonly(Span)), - (js_name, JsName(Span, String, Span)), - (js_class, JsClass(Span, String, Span)), - (inspectable, Inspectable(Span)), - (is_type_of, IsTypeOf(Span, syn::Expr)), - (extends, Extends(Span, syn::Path)), - (no_deref, NoDeref(Span)), - (vendor_prefix, VendorPrefix(Span, Ident)), - (variadic, Variadic(Span)), - (typescript_custom_section, TypescriptCustomSection(Span)), - (skip_typescript, SkipTypescript(Span)), - (start, Start(Span)), - (skip, Skip(Span)), - (typescript_type, TypeScriptType(Span, String, Span)), - (getter_with_clone, GetterWithClone(Span)), - - // For testing purposes only. - (assert_no_shim, AssertNoShim(Span)), - } - }; -} - -macro_rules! methods { - ($(($name:ident, $variant:ident($($contents:tt)*)),)*) => { - $(methods!(@method $name, $variant($($contents)*));)* - - #[cfg(feature = "strict-macro")] - fn check_used(self) -> Result<(), Diagnostic> { - // Account for the fact this method was called - ATTRS.with(|state| state.checks.set(state.checks.get() + 1)); - - let mut errors = Vec::new(); - for (used, attr) in self.attrs.iter() { - if used.get() { - continue - } - // The check below causes rustc to crash on powerpc64 platforms - // with an LLVM error. To avoid this, we instead use #[cfg()] - // and duplicate the function below. See #58516 for details. - /*if !cfg!(feature = "strict-macro") { - continue - }*/ - let span = match attr { - $(BindgenAttr::$variant(span, ..) => span,)* - }; - errors.push(Diagnostic::span_error(*span, "unused #[wasm_bindgen] attribute")); - } - Diagnostic::from_vec(errors) - } - - #[cfg(not(feature = "strict-macro"))] - fn check_used(self) -> Result<(), Diagnostic> { - // Account for the fact this method was called - ATTRS.with(|state| state.checks.set(state.checks.get() + 1)); - Ok(()) - } - }; - - (@method $name:ident, $variant:ident(Span, String, Span)) => { - fn $name(&self) -> Option<(&str, Span)> { - self.attrs - .iter() - .filter_map(|a| match &a.1 { - BindgenAttr::$variant(_, s, span) => { - a.0.set(true); - Some((&s[..], *span)) - } - _ => None, - }) - .next() - } - }; - - (@method $name:ident, $variant:ident(Span, Vec, Vec)) => { - fn $name(&self) -> Option<(&[String], &[Span])> { - self.attrs - .iter() - .filter_map(|a| match &a.1 { - BindgenAttr::$variant(_, ss, spans) => { - a.0.set(true); - Some((&ss[..], &spans[..])) - } - _ => None, - }) - .next() - } - }; - - (@method $name:ident, $variant:ident(Span, $($other:tt)*)) => { - #[allow(unused)] - fn $name(&self) -> Option<&$($other)*> { - self.attrs - .iter() - .filter_map(|a| match &a.1 { - BindgenAttr::$variant(_, s) => { - a.0.set(true); - Some(s) - } - _ => None, - }) - .next() - } - }; - - (@method $name:ident, $variant:ident($($other:tt)*)) => { - #[allow(unused)] - fn $name(&self) -> Option<&$($other)*> { - self.attrs - .iter() - .filter_map(|a| match &a.1 { - BindgenAttr::$variant(s) => { - a.0.set(true); - Some(s) - } - _ => None, - }) - .next() - } - }; -} - -impl BindgenAttrs { - /// Find and parse the wasm_bindgen attributes. - fn find(attrs: &mut Vec) -> Result { - let mut ret = BindgenAttrs::default(); - loop { - let pos = attrs - .iter() - .enumerate() - .find(|&(_, ref m)| m.path.segments[0].ident == "wasm_bindgen") - .map(|a| a.0); - let pos = match pos { - Some(i) => i, - None => return Ok(ret), - }; - let attr = attrs.remove(pos); - let mut tts = attr.tokens.clone().into_iter(); - let group = match tts.next() { - Some(TokenTree::Group(d)) => d, - Some(_) => bail_span!(attr, "malformed #[wasm_bindgen] attribute"), - None => continue, - }; - if tts.next().is_some() { - bail_span!(attr, "malformed #[wasm_bindgen] attribute"); - } - if group.delimiter() != Delimiter::Parenthesis { - bail_span!(attr, "malformed #[wasm_bindgen] attribute"); - } - let mut attrs: BindgenAttrs = syn::parse2(group.stream())?; - ret.attrs.extend(attrs.attrs.drain(..)); - attrs.check_used()?; - } - } - - attrgen!(methods); -} - -impl Default for BindgenAttrs { - fn default() -> BindgenAttrs { - // Add 1 to the list of parsed attribute sets. We'll use this counter to - // sanity check that we call `check_used` an appropriate number of - // times. - ATTRS.with(|state| state.parsed.set(state.parsed.get() + 1)); - BindgenAttrs { attrs: Vec::new() } - } -} - -impl Parse for BindgenAttrs { - fn parse(input: ParseStream) -> SynResult { - let mut attrs = BindgenAttrs::default(); - if input.is_empty() { - return Ok(attrs); - } - - let opts = syn::punctuated::Punctuated::<_, syn::token::Comma>::parse_terminated(input)?; - attrs.attrs = opts.into_iter().map(|c| (Cell::new(false), c)).collect(); - Ok(attrs) - } -} - -macro_rules! gen_bindgen_attr { - ($(($method:ident, $($variants:tt)*),)*) => { - /// The possible attributes in the `#[wasm_bindgen]`. - #[cfg_attr(feature = "extra-traits", derive(Debug))] - pub enum BindgenAttr { - $($($variants)*,)* - } - } -} -attrgen!(gen_bindgen_attr); - -impl Parse for BindgenAttr { - fn parse(input: ParseStream) -> SynResult { - let original = input.fork(); - let attr: AnyIdent = input.parse()?; - let attr = attr.0; - let attr_span = attr.span(); - let attr_string = attr.to_string(); - let raw_attr_string = format!("r#{}", attr_string); - - macro_rules! parsers { - ($(($name:ident, $($contents:tt)*),)*) => { - $( - if attr_string == stringify!($name) || raw_attr_string == stringify!($name) { - parsers!( - @parser - $($contents)* - ); - } - )* - }; - - (@parser $variant:ident(Span)) => ({ - return Ok(BindgenAttr::$variant(attr_span)); - }); - - (@parser $variant:ident(Span, Ident)) => ({ - input.parse::()?; - let ident = input.parse::()?.0; - return Ok(BindgenAttr::$variant(attr_span, ident)) - }); - - (@parser $variant:ident(Span, Option)) => ({ - if input.parse::().is_ok() { - let ident = input.parse::()?.0; - return Ok(BindgenAttr::$variant(attr_span, Some(ident))) - } else { - return Ok(BindgenAttr::$variant(attr_span, None)); - } - }); - - (@parser $variant:ident(Span, syn::Path)) => ({ - input.parse::()?; - return Ok(BindgenAttr::$variant(attr_span, input.parse()?)); - }); - - (@parser $variant:ident(Span, syn::Expr)) => ({ - input.parse::()?; - return Ok(BindgenAttr::$variant(attr_span, input.parse()?)); - }); - - (@parser $variant:ident(Span, String, Span)) => ({ - input.parse::()?; - let (val, span) = match input.parse::() { - Ok(str) => (str.value(), str.span()), - Err(_) => { - let ident = input.parse::()?.0; - (ident.to_string(), ident.span()) - } - }; - return Ok(BindgenAttr::$variant(attr_span, val, span)) - }); - - (@parser $variant:ident(Span, Vec, Vec)) => ({ - input.parse::()?; - let (vals, spans) = match input.parse::() { - Ok(exprs) => { - let mut vals = vec![]; - let mut spans = vec![]; - - for expr in exprs.elems.iter() { - if let syn::Expr::Lit(syn::ExprLit { - lit: syn::Lit::Str(ref str), - .. - }) = expr { - vals.push(str.value()); - spans.push(str.span()); - } else { - return Err(syn::Error::new(expr.span(), "expected string literals")); - } - } - - (vals, spans) - }, - Err(_) => { - let ident = input.parse::()?.0; - (vec![ident.to_string()], vec![ident.span()]) - } - }; - return Ok(BindgenAttr::$variant(attr_span, vals, spans)) - }); - } - - attrgen!(parsers); - - return Err(original.error("unknown attribute")); - } -} - -struct AnyIdent(Ident); - -impl Parse for AnyIdent { - fn parse(input: ParseStream) -> SynResult { - input.step(|cursor| match cursor.ident() { - Some((ident, remaining)) => Ok((AnyIdent(ident), remaining)), - None => Err(cursor.error("expected an identifier")), - }) - } -} +use crate::{d, ParseAttr}; /// Conversion trait with context. /// @@ -359,10 +26,10 @@ trait ConvertToAst { fn convert(self, context: Ctx) -> Result; } -impl<'a> ConvertToAst for &'a mut syn::ItemStruct { +impl<'a> ConvertToAst for &'a mut syn::ItemStruct { type Target = ast::Struct; - fn convert(self, attrs: BindgenAttrs) -> Result { + fn convert(self, attrs: d::ItemStruct) -> Result { if self.generics.params.len() > 0 { bail_span!( self.generics, @@ -372,11 +39,13 @@ impl<'a> ConvertToAst for &'a mut syn::ItemStruct { } let mut fields = Vec::new(); let js_name = attrs - .js_name() - .map(|s| s.0.to_string()) + .js_name + .as_ref() + .map(|s| s.value()) .unwrap_or(self.ident.to_string()); - let is_inspectable = attrs.inspectable().is_some(); - let getter_with_clone = attrs.getter_with_clone().is_some(); + let is_inspectable = attrs.inspectable.is_present(); + let getter_with_clone = attrs.getter_with_clone.is_present(); + for (i, field) in self.fields.iter_mut().enumerate() { match field.vis { syn::Visibility::Public(..) => {} @@ -387,15 +56,13 @@ impl<'a> ConvertToAst for &'a mut syn::ItemStruct { None => (i.to_string(), syn::Member::Unnamed(i.into())), }; - let attrs = BindgenAttrs::find(&mut field.attrs)?; - assert_not_variadic(&attrs)?; - if attrs.skip().is_some() { - attrs.check_used()?; + let attrs = field.parse_contained_attr()?; + if attrs.skip.is_present() { continue; } - let js_field_name = match attrs.js_name() { - Some((name, _)) => name.to_string(), + let js_field_name = match &attrs.js_name { + Some(name) => name.value(), None => js_field_name, }; @@ -407,19 +74,17 @@ impl<'a> ConvertToAst for &'a mut syn::ItemStruct { rust_name: member, js_name: js_field_name, struct_name: self.ident.clone(), - readonly: attrs.readonly().is_some(), + readonly: attrs.readonly.is_present(), ty: field.ty.clone(), getter: Ident::new(&getter, Span::call_site()), setter: Ident::new(&setter, Span::call_site()), comments, - generate_typescript: attrs.skip_typescript().is_none(), - getter_with_clone: getter_with_clone || attrs.getter_with_clone().is_some(), + generate_typescript: !attrs.skip_typescript.is_present(), + getter_with_clone: getter_with_clone || attrs.getter_with_clone.is_present(), }); - attrs.check_used()?; } - let generate_typescript = attrs.skip_typescript().is_none(); + let generate_typescript = !attrs.skip_typescript.is_present(); let comments: Vec = extract_doc_comments(&self.attrs); - attrs.check_used()?; Ok(ast::Struct { rust_name: self.ident.clone(), js_name, @@ -447,12 +112,12 @@ fn get_expr(mut expr: &syn::Expr) -> &syn::Expr { expr } -impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignItemFn { +impl<'a> ConvertToAst<(d::ForeignItemFn, &'a ast::ImportModule)> for syn::ForeignItemFn { type Target = ast::ImportKind; fn convert( self, - (opts, module): (BindgenAttrs, &'a ast::ImportModule), + (opts, module): (d::ForeignItemFn, &'a ast::ImportModule), ) -> Result { let wasm = function_from_decl( &self.sig.ident, @@ -464,8 +129,8 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte None, )? .0; - let catch = opts.catch().is_some(); - let variadic = opts.variadic().is_some(); + let catch = opts.catch.is_present(); + let variadic = opts.variadic.is_present(); let js_ret = if catch { // TODO: this assumes a whole bunch: // @@ -479,9 +144,9 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte wasm.ret.clone() }; - let operation_kind = operation_kind(&opts); + let operation_kind = OperationKind::from(&opts); - let kind = if opts.method().is_some() { + let kind = if opts.method.is_present() { let class = wasm.arguments.get(0).ok_or_else(|| { err_span!(self, "imported methods must have at least one argument") })?; @@ -505,8 +170,9 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte }; let class_name = extract_path_ident(class_name)?; let class_name = opts - .js_class() - .map(|p| p.0.into()) + .js_class + .as_ref() + .map(|p| p.value()) .unwrap_or_else(|| class_name.to_string()); let kind = ast::MethodKind::Operation(ast::Operation { @@ -519,10 +185,11 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte ty: class.clone(), kind, } - } else if let Some(cls) = opts.static_method_of() { + } else if let Some(cls) = &opts.static_method_of { let class = opts - .js_class() - .map(|p| p.0.into()) + .js_class + .as_ref() + .map(|p| p.value()) .unwrap_or_else(|| cls.to_string()); let ty = ident_ty(cls.clone()); @@ -532,7 +199,7 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte }); ast::ImportFunctionKind::Method { class, ty, kind } - } else if opts.constructor().is_some() { + } else if opts.constructor.is_present() { let class = match js_ret { Some(ref ty) => ty, _ => bail_span!(self, "constructor returns must be bare types"), @@ -546,8 +213,9 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte }; let class_name = extract_path_ident(class_name)?; let class_name = opts - .js_class() - .map(|p| p.0.into()) + .js_class + .as_ref() + .map(|p| p.value()) .unwrap_or_else(|| class_name.to_string()); ast::ImportFunctionKind::Method { @@ -574,13 +242,11 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte ShortHash(data) ) }; - if let Some(span) = opts.r#final() { - if opts.structural().is_some() { - let msg = "cannot specify both `structural` and `final`"; - return Err(Diagnostic::span_error(*span, msg)); - } + if opts.r#final.is_present() && opts.structural.is_present() { + let msg = "cannot specify both `structural` and `final`"; + return Err(Diagnostic::span_error(opts.r#final.span(), msg)); } - let assert_no_shim = opts.assert_no_shim().is_some(); + let assert_no_shim = opts.assert_no_shim.is_present(); let ret = ast::ImportKind::Function(ast::ImportFunction { function: wasm, assert_no_shim, @@ -588,46 +254,30 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte js_ret, catch, variadic, - structural: opts.structural().is_some() || opts.r#final().is_none(), + structural: opts.structural.is_present() || !opts.r#final.is_present(), rust_name: self.sig.ident.clone(), shim: Ident::new(&shim, Span::call_site()), doc_comment: None, }); - opts.check_used()?; Ok(ret) } } -impl ConvertToAst for syn::ForeignItemType { +impl ConvertToAst for syn::ForeignItemType { type Target = ast::ImportKind; - fn convert(self, attrs: BindgenAttrs) -> Result { - assert_not_variadic(&attrs)?; + fn convert(self, attrs: d::ForeignItemType) -> Result { let js_name = attrs - .js_name() - .map(|s| s.0) - .map_or_else(|| self.ident.to_string(), |s| s.to_string()); - let typescript_type = attrs.typescript_type().map(|s| s.0.to_string()); - let is_type_of = attrs.is_type_of().cloned(); + .js_name + .as_ref() + .map_or_else(|| self.ident.to_string(), |s| s.value()); + let typescript_type = attrs.typescript_type.as_ref().map(|s| s.value()); + let is_type_of = attrs.is_type_of.clone(); let shim = format!("__wbg_instanceof_{}_{}", self.ident, ShortHash(&self.ident)); - let mut extends = Vec::new(); - let mut vendor_prefixes = Vec::new(); - let no_deref = attrs.no_deref().is_some(); - for (used, attr) in attrs.attrs.iter() { - match attr { - BindgenAttr::Extends(_, e) => { - extends.push(e.clone()); - used.set(true); - } - BindgenAttr::VendorPrefix(_, e) => { - vendor_prefixes.push(e.clone()); - used.set(true); - } - _ => {} - } - } - attrs.check_used()?; + let extends = attrs.extends.clone(); + let vendor_prefixes = attrs.vendor_prefix.clone(); + let no_deref = attrs.no_deref.is_present(); Ok(ast::ImportKind::Type(ast::ImportType { vis: self.vis, attrs: self.attrs, @@ -644,29 +294,28 @@ impl ConvertToAst for syn::ForeignItemType { } } -impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignItemStatic { +impl<'a> ConvertToAst<(d::ForeignItemStatic, &'a ast::ImportModule)> for syn::ForeignItemStatic { type Target = ast::ImportKind; fn convert( self, - (opts, module): (BindgenAttrs, &'a ast::ImportModule), + (opts, module): (d::ForeignItemStatic, &'a ast::ImportModule), ) -> Result { if self.mutability.is_some() { bail_span!(self.mutability, "cannot import mutable globals yet") } - assert_not_variadic(&opts)?; + let default_name = self.ident.to_string(); let js_name = opts - .js_name() - .map(|p| p.0) - .unwrap_or(&default_name) - .to_string(); + .js_name + .as_ref() + .map(|p| p.value()) + .unwrap_or_else(|| default_name.to_string()); let shim = format!( "__wbg_static_accessor_{}_{}", self.ident, ShortHash((&js_name, module, &self.ident)), ); - opts.check_used()?; Ok(ast::ImportKind::Static(ast::ImportStatic { ty: *self.ty, vis: self.vis, @@ -677,10 +326,10 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte } } -impl ConvertToAst for syn::ItemFn { +impl ConvertToAst for syn::ItemFn { type Target = ast::Function; - fn convert(self, attrs: BindgenAttrs) -> Result { + fn convert(self, attrs: d::ItemFn) -> Result { match self.vis { syn::Visibility::Public(_) => {} _ => bail_span!(self, "can only #[wasm_bindgen] public functions"), @@ -694,7 +343,6 @@ impl ConvertToAst for syn::ItemFn { if self.sig.unsafety.is_some() { bail_span!(self.sig.unsafety, "can only #[wasm_bindgen] safe functions"); } - assert_not_variadic(&attrs)?; let ret = function_from_decl( &self.sig.ident, @@ -705,21 +353,24 @@ impl ConvertToAst for syn::ItemFn { false, None, )?; - attrs.check_used()?; Ok(ret.0) } } /// Construct a function (and gets the self type if appropriate) for our AST from a syn function. -fn function_from_decl( +fn function_from_decl( decl_name: &syn::Ident, - opts: &BindgenAttrs, + opts: &O, sig: syn::Signature, attrs: Vec, vis: syn::Visibility, allow_self: bool, self_ty: Option<&Ident>, -) -> Result<(ast::Function, Option), Diagnostic> { +) -> Result<(ast::Function, Option), Diagnostic> +where + for<'a> &'a O: Into, + O: d::fields::JsName + d::fields::SkipTypescript, +{ if sig.variadic.is_some() { bail_span!(sig.variadic, "can't #[wasm_bindgen] variadic functions"); } @@ -784,21 +435,19 @@ fn function_from_decl( syn::ReturnType::Type(_, ty) => Some(replace_self(*ty)), }; - let (name, name_span, renamed_via_js_name) = - if let Some((js_name, js_name_span)) = opts.js_name() { - let kind = operation_kind(&opts); - let prefix = match kind { - OperationKind::Setter(_) => "set_", - _ => "", - }; - ( - format!("{}{}", prefix, js_name.to_string()), - js_name_span, - true, - ) - } else { - (decl_name.to_string(), decl_name.span(), false) + let (name, name_span, renamed_via_js_name) = if let Some(js_name) = opts.js_name() { + let prefix = match opts.into() { + OperationKind::Setter(_) => "set_", + _ => "", }; + ( + format!("{}{}", prefix, js_name.value()), + js_name.span(), + true, + ) + } else { + (decl_name.to_string(), decl_name.span(), false) + }; Ok(( ast::Function { arguments, @@ -809,7 +458,7 @@ fn function_from_decl( rust_attrs: attrs, rust_vis: vis, r#async: sig.asyncness.is_some(), - generate_typescript: opts.skip_typescript().is_none(), + generate_typescript: !opts.skip_typescript().is_present(), }, method_self, )) @@ -823,11 +472,11 @@ pub(crate) trait MacroParse { fn macro_parse(self, program: &mut ast::Program, context: Ctx) -> Result<(), Diagnostic>; } -impl<'a> MacroParse<(Option, &'a mut TokenStream)> for syn::Item { +impl<'a> MacroParse<(AttributeArgs, &'a mut TokenStream)> for syn::Item { fn macro_parse( self, program: &mut ast::Program, - (opts, tokens): (Option, &'a mut TokenStream), + (args, tokens): (AttributeArgs, &'a mut TokenStream), ) -> Result<(), Diagnostic> { match self { syn::Item::Fn(mut f) => { @@ -845,8 +494,8 @@ impl<'a> MacroParse<(Option, &'a mut TokenStream)> for syn::Item { } let comments = extract_doc_comments(&f.attrs); f.to_tokens(tokens); - let opts = opts.unwrap_or_default(); - if opts.start().is_some() { + let opts = syn::ItemFn::parse_attr_args(&args)?; + if opts.start.is_present() { if f.sig.generics.params.len() > 0 { bail_span!(&f.sig.generics, "the start function cannot have generics",); } @@ -856,10 +505,10 @@ impl<'a> MacroParse<(Option, &'a mut TokenStream)> for syn::Item { } let method_kind = ast::MethodKind::Operation(ast::Operation { is_static: true, - kind: operation_kind(&opts), + kind: OperationKind::from(&opts), }); let rust_name = f.sig.ident.clone(); - let start = opts.start().is_some(); + let start = opts.start.is_present(); program.exports.push(ast::Export { comments, function: f.convert(opts)?, @@ -872,34 +521,25 @@ impl<'a> MacroParse<(Option, &'a mut TokenStream)> for syn::Item { }); } syn::Item::Struct(mut s) => { - let opts = opts.unwrap_or_default(); + let opts = syn::ItemStruct::parse_attr_args(&args)?; program.structs.push((&mut s).convert(opts)?); s.to_tokens(tokens); } syn::Item::Impl(mut i) => { - let opts = opts.unwrap_or_default(); + let opts = syn::ItemImpl::parse_attr_args(&args)?; (&mut i).macro_parse(program, opts)?; i.to_tokens(tokens); } - syn::Item::ForeignMod(mut f) => { - let opts = match opts { - Some(opts) => opts, - None => BindgenAttrs::find(&mut f.attrs)?, - }; + syn::Item::ForeignMod(f) => { + let opts = syn::ItemForeignMod::parse_attr_args(&args)?; f.macro_parse(program, opts)?; } - syn::Item::Enum(mut e) => { - let opts = match opts { - Some(opts) => opts, - None => BindgenAttrs::find(&mut e.attrs)?, - }; + syn::Item::Enum(e) => { + let opts = syn::ItemEnum::parse_attr_args(&args)?; e.macro_parse(program, (tokens, opts))?; } - syn::Item::Const(mut c) => { - let opts = match opts { - Some(opts) => opts, - None => BindgenAttrs::find(&mut c.attrs)?, - }; + syn::Item::Const(c) => { + let opts = syn::ItemConst::parse_attr_args(&args)?; c.macro_parse(program, opts)?; } _ => { @@ -915,12 +555,8 @@ impl<'a> MacroParse<(Option, &'a mut TokenStream)> for syn::Item { } } -impl<'a> MacroParse for &'a mut syn::ItemImpl { - fn macro_parse( - self, - _program: &mut ast::Program, - opts: BindgenAttrs, - ) -> Result<(), Diagnostic> { +impl<'a> MacroParse for &'a mut syn::ItemImpl { + fn macro_parse(self, _program: &mut ast::Program, opts: d::ItemImpl) -> Result<(), Diagnostic> { if self.defaultness.is_some() { bail_span!( self.defaultness, @@ -959,7 +595,6 @@ impl<'a> MacroParse for &'a mut syn::ItemImpl { } } Diagnostic::from_vec(errors)?; - opts.check_used()?; Ok(()) } } @@ -975,7 +610,7 @@ impl<'a> MacroParse for &'a mut syn::ItemImpl { fn prepare_for_impl_recursion( item: &mut syn::ImplItem, class: &syn::Path, - impl_opts: &BindgenAttrs, + impl_opts: &d::ItemImpl, ) -> Result<(), Diagnostic> { let method = match item { syn::ImplItem::Method(m) => m, @@ -1003,8 +638,9 @@ fn prepare_for_impl_recursion( let ident = extract_path_ident(class)?; let js_class = impl_opts - .js_class() - .map(|s| s.0.to_string()) + .js_class + .as_ref() + .map(|s| s.value()) .unwrap_or(ident.to_string()); method.attrs.insert( @@ -1044,7 +680,7 @@ impl<'a, 'b> MacroParse<(&'a Ident, &'a str)> for &'b mut syn::ImplItemMethod { bail_span!(self.sig.unsafety, "can only bindgen safe functions",); } - let opts = BindgenAttrs::find(&mut self.attrs)?; + let opts = self.parse_contained_attr()?; let comments = extract_doc_comments(&self.attrs); let (function, method_self) = function_from_decl( &self.sig.ident, @@ -1055,11 +691,11 @@ impl<'a, 'b> MacroParse<(&'a Ident, &'a str)> for &'b mut syn::ImplItemMethod { true, Some(class), )?; - let method_kind = if opts.constructor().is_some() { + let method_kind = if opts.constructor.is_present() { ast::MethodKind::Constructor } else { let is_static = method_self.is_none(); - let kind = operation_kind(&opts); + let kind = OperationKind::from(&opts); ast::MethodKind::Operation(ast::Operation { is_static, kind }) }; program.exports.push(ast::Export { @@ -1072,7 +708,6 @@ impl<'a, 'b> MacroParse<(&'a Ident, &'a str)> for &'b mut syn::ImplItemMethod { rust_name: self.sig.ident.clone(), start: false, }); - opts.check_used()?; Ok(()) } } @@ -1123,16 +758,16 @@ fn import_enum(enum_: syn::ItemEnum, program: &mut ast::Program) -> Result<(), D Ok(()) } -impl<'a> MacroParse<(&'a mut TokenStream, BindgenAttrs)> for syn::ItemEnum { +impl<'a> MacroParse<(&'a mut TokenStream, d::ItemEnum)> for syn::ItemEnum { fn macro_parse( self, program: &mut ast::Program, - (tokens, opts): (&'a mut TokenStream, BindgenAttrs), + (tokens, opts): (&'a mut TokenStream, d::ItemEnum), ) -> Result<(), Diagnostic> { if self.variants.len() == 0 { bail_span!(self, "cannot export empty enums to JS"); } - let generate_typescript = opts.skip_typescript().is_none(); + let generate_typescript = !opts.skip_typescript.is_present(); // Check if the first value is a string literal if let Some((_, expr)) = &self.variants[0].discriminant { @@ -1141,17 +776,15 @@ impl<'a> MacroParse<(&'a mut TokenStream, BindgenAttrs)> for syn::ItemEnum { attrs: _, lit: syn::Lit::Str(_), }) => { - opts.check_used()?; return import_enum(self, program); } _ => {} } } let js_name = opts - .js_name() - .map(|s| s.0) - .map_or_else(|| self.ident.to_string(), |s| s.to_string()); - opts.check_used()?; + .js_name + .as_ref() + .map_or_else(|| self.ident.to_string(), |s| s.value()); let has_discriminant = self.variants[0].discriminant.is_some(); @@ -1246,13 +879,12 @@ impl<'a> MacroParse<(&'a mut TokenStream, BindgenAttrs)> for syn::ItemEnum { } } -impl MacroParse for syn::ItemConst { - fn macro_parse(self, program: &mut ast::Program, opts: BindgenAttrs) -> Result<(), Diagnostic> { - // Shortcut - if opts.typescript_custom_section().is_none() { - bail_span!(self, "#[wasm_bindgen] will not work on constants unless you are defining a #[wasm_bindgen(typescript_custom_section)]."); - } - +impl MacroParse for syn::ItemConst { + fn macro_parse( + self, + program: &mut ast::Program, + _opts: d::ItemConst, + ) -> Result<(), Diagnostic> { match get_expr(&self.expr) { syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Str(litstr), @@ -1265,14 +897,16 @@ impl MacroParse for syn::ItemConst { } } - opts.check_used()?; - Ok(()) } } -impl MacroParse for syn::ItemForeignMod { - fn macro_parse(self, program: &mut ast::Program, opts: BindgenAttrs) -> Result<(), Diagnostic> { +impl MacroParse for syn::ItemForeignMod { + fn macro_parse( + self, + program: &mut ast::Program, + opts: d::ForeignMod, + ) -> Result<(), Diagnostic> { let mut errors = Vec::new(); match self.abi.name { Some(ref l) if l.value() == "C" => {} @@ -1284,26 +918,16 @@ impl MacroParse for syn::ItemForeignMod { )); } } - let module = if let Some((name, span)) = opts.module() { - if opts.inline_js().is_some() { - let msg = "cannot specify both `module` and `inline_js`"; - errors.push(Diagnostic::span_error(span, msg)); - } - if opts.raw_module().is_some() { - let msg = "cannot specify both `module` and `raw_module`"; - errors.push(Diagnostic::span_error(span, msg)); - } - ast::ImportModule::Named(name.to_string(), span) - } else if let Some((name, span)) = opts.raw_module() { - if opts.inline_js().is_some() { - let msg = "cannot specify both `raw_module` and `inline_js`"; - errors.push(Diagnostic::span_error(span, msg)); - } - ast::ImportModule::RawNamed(name.to_string(), span) - } else if let Some((js, span)) = opts.inline_js() { + + // This expects only one branch to be taken as a result of validation in d::ForeignMod::from_attributes + let module = if let Some(name) = &opts.module { + ast::ImportModule::Named(name.value(), name.span()) + } else if let Some(name) = &opts.raw_module { + ast::ImportModule::RawNamed(name.value(), name.span()) + } else if let Some(js) = &opts.inline_js { let i = program.inline_js.len(); - program.inline_js.push(js.to_string()); - ast::ImportModule::Inline(i, span) + program.inline_js.push(js.value()); + ast::ImportModule::Inline(i, js.span()) } else { ast::ImportModule::None }; @@ -1313,31 +937,38 @@ impl MacroParse for syn::ItemForeignMod { } } Diagnostic::from_vec(errors)?; - opts.check_used()?; Ok(()) } } impl MacroParse for syn::ForeignItem { fn macro_parse( - mut self, + self, program: &mut ast::Program, module: ast::ImportModule, ) -> Result<(), Diagnostic> { - let item_opts = { - let attrs = match self { - syn::ForeignItem::Fn(ref mut f) => &mut f.attrs, - syn::ForeignItem::Type(ref mut t) => &mut t.attrs, - syn::ForeignItem::Static(ref mut s) => &mut s.attrs, - _ => panic!("only foreign functions/types allowed for now"), - }; - BindgenAttrs::find(attrs)? - }; - let js_namespace = item_opts.js_namespace().map(|(s, _)| s.to_owned()); - let kind = match self { - syn::ForeignItem::Fn(f) => f.convert((item_opts, &module))?, - syn::ForeignItem::Type(t) => t.convert(item_opts)?, - syn::ForeignItem::Static(s) => s.convert((item_opts, &module))?, + let (js_namespace, kind) = match self { + syn::ForeignItem::Fn(mut f) => { + let item_opts = f.parse_contained_attr()?; + ( + item_opts.js_namespace.as_ref().map(|v| v.to_strings()), + f.convert((item_opts, &module))?, + ) + } + syn::ForeignItem::Type(mut t) => { + let item_opts = t.parse_contained_attr()?; + ( + item_opts.js_namespace.as_ref().map(|v| v.to_strings()), + t.convert(item_opts)?, + ) + } + syn::ForeignItem::Static(mut s) => { + let item_opts = s.parse_contained_attr()?; + ( + item_opts.js_namespace.as_ref().map(|v| v.to_strings()), + s.convert((item_opts, &module))?, + ) + } _ => panic!("only foreign functions/types allowed for now"), }; @@ -1508,16 +1139,6 @@ fn assert_no_lifetimes(sig: &syn::Signature) -> Result<(), Diagnostic> { Diagnostic::from_vec(walk.diagnostics) } -/// This method always fails if the BindgenAttrs contain variadic -fn assert_not_variadic(attrs: &BindgenAttrs) -> Result<(), Diagnostic> { - if let Some(span) = attrs.variadic() { - let msg = "the `variadic` attribute can only be applied to imported \ - (`extern`) functions"; - return Err(Diagnostic::span_error(*span, msg)); - } - Ok(()) -} - /// Extracts the last ident from the path fn extract_path_ident(path: &syn::Path) -> Result { for segment in path.segments.iter() { @@ -1534,36 +1155,3 @@ fn extract_path_ident(path: &syn::Path) -> Result { } } } - -pub fn reset_attrs_used() { - ATTRS.with(|state| { - state.parsed.set(0); - state.checks.set(0); - }) -} - -pub fn assert_all_attrs_checked() { - ATTRS.with(|state| { - assert_eq!(state.parsed.get(), state.checks.get()); - }) -} - -fn operation_kind(opts: &BindgenAttrs) -> ast::OperationKind { - let mut operation_kind = ast::OperationKind::Regular; - if let Some(g) = opts.getter() { - operation_kind = ast::OperationKind::Getter(g.clone()); - } - if let Some(s) = opts.setter() { - operation_kind = ast::OperationKind::Setter(s.clone()); - } - if opts.indexing_getter().is_some() { - operation_kind = ast::OperationKind::IndexingGetter; - } - if opts.indexing_setter().is_some() { - operation_kind = ast::OperationKind::IndexingSetter; - } - if opts.indexing_deleter().is_some() { - operation_kind = ast::OperationKind::IndexingDeleter; - } - operation_kind -} diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index 510c3b9fab6..8f53c45bef0 100644 --- a/crates/macro/Cargo.toml +++ b/crates/macro/Cargo.toml @@ -22,6 +22,7 @@ strict-macro = ["wasm-bindgen-macro-support/strict-macro"] [dependencies] wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.80" } quote = "1.0" +syn = "1.0" [dev-dependencies] trybuild = "1.0" diff --git a/crates/macro/src/lib.rs b/crates/macro/src/lib.rs index c677aaf24bf..13a90baee30 100644 --- a/crates/macro/src/lib.rs +++ b/crates/macro/src/lib.rs @@ -7,7 +7,8 @@ use quote::quote; #[proc_macro_attribute] pub fn wasm_bindgen(attr: TokenStream, input: TokenStream) -> TokenStream { - match wasm_bindgen_macro_support::expand(attr.into(), input.into()) { + let attr_args = syn::parse_macro_input!(attr as syn::AttributeArgs); + match wasm_bindgen_macro_support::expand(attr_args, input.into()) { Ok(tokens) => { if cfg!(feature = "xxx_debug_only_print_generated_code") { println!("{}", tokens); diff --git a/crates/macro/ui-tests/async-errors.stderr b/crates/macro/ui-tests/async-errors.stderr index 492492a181e..93e9a5a9555 100644 --- a/crates/macro/ui-tests/async-errors.stderr +++ b/crates/macro/ui-tests/async-errors.stderr @@ -1,68 +1,48 @@ error[E0277]: the trait bound `Result<(), ()>: IntoJsResult` is not satisfied - --> ui-tests/async-errors.rs:30:1 - | -30 | #[wasm_bindgen] - | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>` - | - = help: the following implementations were found: - as IntoJsResult> - as IntoJsResult> -note: required by `into_js_result` - --> $WORKSPACE/src/lib.rs - | - | fn into_js_result(self) -> Result; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/async-errors.rs:30:1 + | +30 | #[wasm_bindgen] + | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>` + | + = help: the following implementations were found: + as IntoJsResult> + as IntoJsResult> + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfied - --> ui-tests/async-errors.rs:32:1 - | -32 | #[wasm_bindgen] - | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>` - | - = help: the following implementations were found: - as IntoJsResult> - as IntoJsResult> -note: required by `into_js_result` - --> $WORKSPACE/src/lib.rs - | - | fn into_js_result(self) -> Result; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/async-errors.rs:32:1 + | +32 | #[wasm_bindgen] + | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>` + | + = help: the following implementations were found: + as IntoJsResult> + as IntoJsResult> + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `wasm_bindgen::JsValue: From` is not satisfied - --> ui-tests/async-errors.rs:34:1 - | -34 | #[wasm_bindgen] - | ^^^^^^^^^^^^^^^ the trait `From` is not implemented for `wasm_bindgen::JsValue` - | - = help: the following implementations were found: - > - > - > - > - and 73 others - = note: required because of the requirements on the impl of `Into` for `BadType` - = note: required because of the requirements on the impl of `IntoJsResult` for `BadType` -note: required by `into_js_result` - --> $WORKSPACE/src/lib.rs - | - | fn into_js_result(self) -> Result; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/async-errors.rs:34:1 + | +34 | #[wasm_bindgen] + | ^^^^^^^^^^^^^^^ the trait `From` is not implemented for `wasm_bindgen::JsValue` + | + = help: the following implementations were found: + > + > + > + > + and 73 others + = note: required because of the requirements on the impl of `Into` for `BadType` + = note: required because of the requirements on the impl of `IntoJsResult` for `BadType` + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Result: IntoJsResult` is not satisfied - --> ui-tests/async-errors.rs:36:1 - | -36 | #[wasm_bindgen] - | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result` - | - = help: the following implementations were found: - as IntoJsResult> - as IntoJsResult> -note: required by `into_js_result` - --> $WORKSPACE/src/lib.rs - | - | fn into_js_result(self) -> Result; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/async-errors.rs:36:1 + | +36 | #[wasm_bindgen] + | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result` + | + = help: the following implementations were found: + as IntoJsResult> + as IntoJsResult> + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/crates/macro/ui-tests/attribute-fails-to-parse.stderr b/crates/macro/ui-tests/attribute-fails-to-parse.stderr index dfe9ecf0e3f..afe0d43af9d 100644 --- a/crates/macro/ui-tests/attribute-fails-to-parse.stderr +++ b/crates/macro/ui-tests/attribute-fails-to-parse.stderr @@ -1,5 +1,5 @@ -error: unknown attribute - --> $DIR/attribute-fails-to-parse.rs:3:16 +error: Unknown field: `nonsense` + --> ui-tests/attribute-fails-to-parse.rs:3:16 | 3 | #[wasm_bindgen(nonsense)] | ^^^^^^^^ diff --git a/crates/macro/ui-tests/invalid-attr.stderr b/crates/macro/ui-tests/invalid-attr.stderr index 47264acd32e..23add586d68 100644 --- a/crates/macro/ui-tests/invalid-attr.stderr +++ b/crates/macro/ui-tests/invalid-attr.stderr @@ -1,17 +1,17 @@ -error: unknown attribute - --> $DIR/invalid-attr.rs:3:16 +error: Unknown field: `x` + --> ui-tests/invalid-attr.rs:3:16 | 3 | #[wasm_bindgen(x)] | ^ -error: unknown attribute - --> $DIR/invalid-attr.rs:8:20 +error: Unknown field: `y` + --> ui-tests/invalid-attr.rs:8:20 | 8 | #[wasm_bindgen(y)] | ^ -error: malformed #[wasm_bindgen] attribute - --> $DIR/invalid-attr.rs:11:5 +error: unexpected token + --> ui-tests/invalid-attr.rs:11:20 | 11 | #[wasm_bindgen { }] - | ^^^^^^^^^^^^^^^^^^^^ + | ^^^^ diff --git a/crates/macro/ui-tests/invalid-methods.stderr b/crates/macro/ui-tests/invalid-methods.stderr index 4268864b275..8282fe7e756 100644 --- a/crates/macro/ui-tests/invalid-methods.stderr +++ b/crates/macro/ui-tests/invalid-methods.stderr @@ -1,67 +1,67 @@ error: #[wasm_bindgen] default impls are not supported - --> $DIR/invalid-methods.rs:7:1 + --> ui-tests/invalid-methods.rs:7:1 | 7 | default impl A { | ^^^^^^^ error: #[wasm_bindgen] unsafe impls are not supported - --> $DIR/invalid-methods.rs:11:1 + --> ui-tests/invalid-methods.rs:11:1 | 11 | unsafe impl A { | ^^^^^^ error: #[wasm_bindgen] trait impls are not supported - --> $DIR/invalid-methods.rs:15:6 + --> ui-tests/invalid-methods.rs:15:6 | 15 | impl Clone for A { | ^^^^^ error: #[wasm_bindgen] generic impls aren't supported - --> $DIR/invalid-methods.rs:19:5 + --> ui-tests/invalid-methods.rs:19:5 | 19 | impl A { | ^^^ error: unsupported self type in #[wasm_bindgen] impl - --> $DIR/invalid-methods.rs:23:6 + --> ui-tests/invalid-methods.rs:23:6 | 23 | impl &'static A { | ^^^^^^^^^^ error: const definitions aren't supported with #[wasm_bindgen] - --> $DIR/invalid-methods.rs:30:5 + --> ui-tests/invalid-methods.rs:30:5 | 30 | const X: u32 = 3; | ^^^^^^^^^^^^^^^^^ error: type definitions in impls aren't supported with #[wasm_bindgen] - --> $DIR/invalid-methods.rs:31:5 + --> ui-tests/invalid-methods.rs:31:5 | 31 | type Y = u32; | ^^^^^^^^^^^^^ error: macros in impls aren't supported - --> $DIR/invalid-methods.rs:32:5 + --> ui-tests/invalid-methods.rs:32:5 | 32 | x!(); | ^^^^^ error: can only #[wasm_bindgen] non-const functions - --> $DIR/invalid-methods.rs:39:9 + --> ui-tests/invalid-methods.rs:39:9 | 39 | pub const fn foo() {} | ^^^^^ error: can only bindgen safe functions - --> $DIR/invalid-methods.rs:44:9 + --> ui-tests/invalid-methods.rs:44:9 | 44 | pub unsafe fn foo() {} | ^^^^^^ -warning: unused macro definition - --> $DIR/invalid-methods.rs:26:1 +warning: unused macro definition: `x` + --> ui-tests/invalid-methods.rs:26:14 | 26 | macro_rules! x { () => () } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ^ | = note: `#[warn(unused_macros)]` on by default diff --git a/crates/macro/ui-tests/invalid-setter.rs b/crates/macro/ui-tests/invalid-setter.rs index 42d83879e7a..84a16da55a5 100644 --- a/crates/macro/ui-tests/invalid-setter.rs +++ b/crates/macro/ui-tests/invalid-setter.rs @@ -1,4 +1,3 @@ - use wasm_bindgen::prelude::*; #[wasm_bindgen] @@ -8,10 +7,10 @@ extern "C" { #[wasm_bindgen(setter, method)] fn a(this: &A, b: i32); - #[wasm_bindgen(setter = x, method)] + #[wasm_bindgen(setter = "x", method)] fn b(this: &A, b: i32); - #[wasm_bindgen(setter, method, js_name = x)] + #[wasm_bindgen(setter, method, js_name = "x")] fn c(this: &A, b: i32); } diff --git a/crates/macro/ui-tests/invalid-setter.stderr b/crates/macro/ui-tests/invalid-setter.stderr index 77e1509e970..88d9593ed52 100644 --- a/crates/macro/ui-tests/invalid-setter.stderr +++ b/crates/macro/ui-tests/invalid-setter.stderr @@ -1,5 +1,5 @@ error: setters must start with `set_`, found: a - --> $DIR/invalid-setter.rs:9:8 + --> ui-tests/invalid-setter.rs:8:8 | -9 | fn a(this: &A, b: i32); +8 | fn a(this: &A, b: i32); | ^ diff --git a/crates/macro/ui-tests/missing-catch.stderr b/crates/macro/ui-tests/missing-catch.stderr index 4c20dbe76f7..8ebd44ab80e 100644 --- a/crates/macro/ui-tests/missing-catch.stderr +++ b/crates/macro/ui-tests/missing-catch.stderr @@ -1,17 +1,5 @@ error[E0277]: the trait bound `Result: FromWasmAbi` is not satisfied - --> $DIR/missing-catch.rs:6:9 - | -6 | pub fn foo() -> Result; - | ^^^ the trait `FromWasmAbi` is not implemented for `Result` - | -note: required by a bound in `FromWasmAbi` - --> $DIR/traits.rs:23:1 - | -23 | / pub trait FromWasmAbi: WasmDescribe { -24 | | /// The wasm ABI type that this converts from when coming back out from the -25 | | /// ABI boundary. -26 | | type Abi: WasmAbi; -... | -35 | | unsafe fn from_abi(js: Self::Abi) -> Self; -36 | | } - | |_^ required by this bound in `FromWasmAbi` + --> ui-tests/missing-catch.rs:6:9 + | +6 | pub fn foo() -> Result; + | ^^^ the trait `FromWasmAbi` is not implemented for `Result` diff --git a/crates/macro/ui-tests/start-function.stderr b/crates/macro/ui-tests/start-function.stderr index 8f459863d2e..a3d1a83164b 100644 --- a/crates/macro/ui-tests/start-function.stderr +++ b/crates/macro/ui-tests/start-function.stderr @@ -11,61 +11,41 @@ error: the start function cannot have generics | ^^^ error[E0277]: the trait bound `Result: wasm_bindgen::__rt::Start` is not satisfied - --> ui-tests/start-function.rs:15:1 - | -15 | #[wasm_bindgen(start)] - | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` - | - = help: the following implementations were found: - as wasm_bindgen::__rt::Start> -note: required by `start` - --> $WORKSPACE/src/lib.rs - | - | fn start(self); - | ^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/start-function.rs:15:1 + | +15 | #[wasm_bindgen(start)] + | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` + | + = help: the following implementations were found: + as wasm_bindgen::__rt::Start> + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Result: wasm_bindgen::__rt::Start` is not satisfied - --> ui-tests/start-function.rs:18:1 - | -18 | #[wasm_bindgen(start)] - | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` - | - = help: the following implementations were found: - as wasm_bindgen::__rt::Start> -note: required by `start` - --> $WORKSPACE/src/lib.rs - | - | fn start(self); - | ^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/start-function.rs:18:1 + | +18 | #[wasm_bindgen(start)] + | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` + | + = help: the following implementations were found: + as wasm_bindgen::__rt::Start> + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Result: wasm_bindgen::__rt::Start` is not satisfied - --> ui-tests/start-function.rs:27:1 - | -27 | #[wasm_bindgen(start)] - | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` - | - = help: the following implementations were found: - as wasm_bindgen::__rt::Start> -note: required by `start` - --> $WORKSPACE/src/lib.rs - | - | fn start(self); - | ^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/start-function.rs:27:1 + | +27 | #[wasm_bindgen(start)] + | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` + | + = help: the following implementations were found: + as wasm_bindgen::__rt::Start> + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Result: wasm_bindgen::__rt::Start` is not satisfied - --> ui-tests/start-function.rs:30:1 - | -30 | #[wasm_bindgen(start)] - | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` - | - = help: the following implementations were found: - as wasm_bindgen::__rt::Start> -note: required by `start` - --> $WORKSPACE/src/lib.rs - | - | fn start(self); - | ^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/start-function.rs:30:1 + | +30 | #[wasm_bindgen(start)] + | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result` + | + = help: the following implementations were found: + as wasm_bindgen::__rt::Start> + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/crates/macro/ui-tests/traits-not-implemented.stderr b/crates/macro/ui-tests/traits-not-implemented.stderr index 7b0f90f574c..4b1f97eaa35 100644 --- a/crates/macro/ui-tests/traits-not-implemented.stderr +++ b/crates/macro/ui-tests/traits-not-implemented.stderr @@ -1,18 +1,7 @@ error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied - --> $DIR/traits-not-implemented.rs:5:1 - | -5 | #[wasm_bindgen] - | ^^^^^^^^^^^^^^^ the trait `IntoWasmAbi` is not implemented for `A` - | -note: required by a bound in `IntoWasmAbi` - --> $DIR/traits.rs:9:1 - | -9 | / pub trait IntoWasmAbi: WasmDescribe { -10 | | /// The wasm ABI type that this converts into when crossing the ABI -11 | | /// boundary. -12 | | type Abi: WasmAbi; -... | -16 | | fn into_abi(self) -> Self::Abi; -17 | | } - | |_^ required by this bound in `IntoWasmAbi` - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) + --> ui-tests/traits-not-implemented.rs:5:1 + | +5 | #[wasm_bindgen] + | ^^^^^^^^^^^^^^^ the trait `IntoWasmAbi` is not implemented for `A` + | + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/crates/macro/ui-tests/unused-attributes.stderr b/crates/macro/ui-tests/unused-attributes.stderr index 12f2c01f31e..52e7a244515 100644 --- a/crates/macro/ui-tests/unused-attributes.stderr +++ b/crates/macro/ui-tests/unused-attributes.stderr @@ -1,11 +1,5 @@ -error: unused #[wasm_bindgen] attribute - --> $DIR/unused-attributes.rs:7:20 +error: Unknown field: `method` + --> ui-tests/unused-attributes.rs:7:20 | 7 | #[wasm_bindgen(method)] | ^^^^^^ - -error: unused #[wasm_bindgen] attribute - --> $DIR/unused-attributes.rs:8:20 - | -8 | #[wasm_bindgen(method)] - | ^^^^^^ diff --git a/crates/test/sample/src/lib.rs b/crates/test/sample/src/lib.rs index 8780973e142..5f4fb4f249f 100644 --- a/crates/test/sample/src/lib.rs +++ b/crates/test/sample/src/lib.rs @@ -13,10 +13,10 @@ pub struct Timeout { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_name = setTimeout)] + #[wasm_bindgen(js_name = "setTimeout")] fn set_timeout(closure: JsValue, millis: f64) -> JsValue; - #[wasm_bindgen(js_name = clearTimeout)] + #[wasm_bindgen(js_name = "clearTimeout")] fn clear_timeout(id: &JsValue); } diff --git a/crates/test/src/rt/browser.rs b/crates/test/src/rt/browser.rs index d488a0dd512..fd78c191fcc 100644 --- a/crates/test/src/rt/browser.rs +++ b/crates/test/src/rt/browser.rs @@ -22,9 +22,9 @@ extern "C" { fn getElementById(this: &HTMLDocument, id: &str) -> Element; type Element; - #[wasm_bindgen(method, getter = textContent, structural)] + #[wasm_bindgen(method, getter = "textContent", structural)] fn text_content(this: &Element) -> String; - #[wasm_bindgen(method, setter = textContent, structural)] + #[wasm_bindgen(method, setter = "textContent", structural)] fn set_text_content(this: &Element, text: &str); type BrowserError; diff --git a/crates/test/src/rt/detect.rs b/crates/test/src/rt/detect.rs index 6f83bae8440..b67daab737d 100644 --- a/crates/test/src/rt/detect.rs +++ b/crates/test/src/rt/detect.rs @@ -7,7 +7,7 @@ use wasm_bindgen::JsCast; #[wasm_bindgen] extern "C" { type This; - #[wasm_bindgen(method, getter, structural, js_name = self)] + #[wasm_bindgen(method, getter, structural, js_name = "self")] fn self_(me: &This) -> JsValue; } diff --git a/crates/test/src/rt/mod.rs b/crates/test/src/rt/mod.rs index bf08fe19e42..640ec9f5cef 100644 --- a/crates/test/src/rt/mod.rs +++ b/crates/test/src/rt/mod.rs @@ -114,7 +114,7 @@ pub mod node; /// /// The node.js entry script instantiates a `Context` here which is used to /// drive test execution. -#[wasm_bindgen(js_name = WasmBindgenTestContext)] +#[wasm_bindgen(js_name = "WasmBindgenTestContext")] pub struct Context { state: Rc, } @@ -185,12 +185,12 @@ trait Formatter { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console, js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc(hidden)] pub fn js_console_log(s: &str); // General-purpose conversion into a `String`. - #[wasm_bindgen(js_name = String)] + #[wasm_bindgen(js_name = "String")] fn stringify(val: &JsValue) -> String; } @@ -199,7 +199,7 @@ pub fn log(args: &fmt::Arguments) { js_console_log(&args.to_string()); } -#[wasm_bindgen(js_class = WasmBindgenTestContext)] +#[wasm_bindgen(js_class = "WasmBindgenTestContext")] impl Context { /// Creates a new context ready to run tests. /// diff --git a/crates/web-sys/src/features/gen_AbortController.rs b/crates/web-sys/src/features/gen_AbortController.rs index 95776f74a67..f313d9b5b19 100644 --- a/crates/web-sys/src/features/gen_AbortController.rs +++ b/crates/web-sys/src/features/gen_AbortController.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AbortController , typescript_type = "AbortController")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AbortController", + typescript_type = "AbortController" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AbortController` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] pub type AbortController; #[cfg(feature = "AbortSignal")] - # [wasm_bindgen (structural , method , getter , js_class = "AbortController" , js_name = signal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AbortController", + js_name = "signal" + )] #[doc = "Getter for the `signal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/signal)"] @@ -26,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] pub fn new() -> Result; - # [wasm_bindgen (method , structural , js_class = "AbortController" , js_name = abort)] + #[wasm_bindgen(method, structural, js_class = "AbortController", js_name = "abort")] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)"] diff --git a/crates/web-sys/src/features/gen_AbortSignal.rs b/crates/web-sys/src/features/gen_AbortSignal.rs index 081fa5c4969..14db2fc7693 100644 --- a/crates/web-sys/src/features/gen_AbortSignal.rs +++ b/crates/web-sys/src/features/gen_AbortSignal.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AbortSignal , typescript_type = "AbortSignal")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AbortSignal", + typescript_type = "AbortSignal" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AbortSignal` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub type AbortSignal; - # [wasm_bindgen (structural , method , getter , js_class = "AbortSignal" , js_name = aborted)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AbortSignal", + js_name = "aborted" + )] #[doc = "Getter for the `aborted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/aborted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn aborted(this: &AbortSignal) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "AbortSignal" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AbortSignal", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn onabort(this: &AbortSignal) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "AbortSignal" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AbortSignal", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"] diff --git a/crates/web-sys/src/features/gen_AddEventListenerOptions.rs b/crates/web-sys/src/features/gen_AddEventListenerOptions.rs index c2de0cad6d1..f62bdb09b7c 100644 --- a/crates/web-sys/src/features/gen_AddEventListenerOptions.rs +++ b/crates/web-sys/src/features/gen_AddEventListenerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AddEventListenerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AddEventListenerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AddEventListenerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AesCbcParams.rs b/crates/web-sys/src/features/gen_AesCbcParams.rs index 475d94981ab..269217f0b59 100644 --- a/crates/web-sys/src/features/gen_AesCbcParams.rs +++ b/crates/web-sys/src/features/gen_AesCbcParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesCbcParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AesCbcParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesCbcParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AesCtrParams.rs b/crates/web-sys/src/features/gen_AesCtrParams.rs index ec60d3fd440..96bf2fcfeaa 100644 --- a/crates/web-sys/src/features/gen_AesCtrParams.rs +++ b/crates/web-sys/src/features/gen_AesCtrParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesCtrParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AesCtrParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesCtrParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs b/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs index 46bcc59a4cc..d5f75253dcc 100644 --- a/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs +++ b/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesDerivedKeyParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AesDerivedKeyParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesDerivedKeyParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AesGcmParams.rs b/crates/web-sys/src/features/gen_AesGcmParams.rs index 8f361d1f5af..ecc758c83f0 100644 --- a/crates/web-sys/src/features/gen_AesGcmParams.rs +++ b/crates/web-sys/src/features/gen_AesGcmParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesGcmParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AesGcmParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesGcmParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs b/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs index 380782f05ff..8b3a04947b3 100644 --- a/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesKeyAlgorithm)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AesKeyAlgorithm")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesKeyAlgorithm` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AesKeyGenParams.rs b/crates/web-sys/src/features/gen_AesKeyGenParams.rs index 016d2b88fd8..8c30e45af26 100644 --- a/crates/web-sys/src/features/gen_AesKeyGenParams.rs +++ b/crates/web-sys/src/features/gen_AesKeyGenParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesKeyGenParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AesKeyGenParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesKeyGenParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Algorithm.rs b/crates/web-sys/src/features/gen_Algorithm.rs index d0263e74f73..8df9a6d255b 100644 --- a/crates/web-sys/src/features/gen_Algorithm.rs +++ b/crates/web-sys/src/features/gen_Algorithm.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Algorithm)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "Algorithm")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Algorithm` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs b/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs index 82f734e998d..7b20479044f 100644 --- a/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs +++ b/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AllowedBluetoothDevice)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AllowedBluetoothDevice")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AllowedBluetoothDevice` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AllowedUsbDevice.rs b/crates/web-sys/src/features/gen_AllowedUsbDevice.rs index b4b082f13f8..75f5e2cf460 100644 --- a/crates/web-sys/src/features/gen_AllowedUsbDevice.rs +++ b/crates/web-sys/src/features/gen_AllowedUsbDevice.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AllowedUSBDevice)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AllowedUSBDevice")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AllowedUsbDevice` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AnalyserNode.rs b/crates/web-sys/src/features/gen_AnalyserNode.rs index a659b628c9e..6a88b6ef6aa 100644 --- a/crates/web-sys/src/features/gen_AnalyserNode.rs +++ b/crates/web-sys/src/features/gen_AnalyserNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AnalyserNode , typescript_type = "AnalyserNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AnalyserNode", + typescript_type = "AnalyserNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnalyserNode` class."] #[doc = ""] @@ -11,63 +17,117 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub type AnalyserNode; - # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = fftSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnalyserNode", + js_name = "fftSize" + )] #[doc = "Getter for the `fftSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn fft_size(this: &AnalyserNode) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = fftSize)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AnalyserNode", + js_name = "fftSize" + )] #[doc = "Setter for the `fftSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn set_fft_size(this: &AnalyserNode, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = frequencyBinCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnalyserNode", + js_name = "frequencyBinCount" + )] #[doc = "Getter for the `frequencyBinCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn frequency_bin_count(this: &AnalyserNode) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = minDecibels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnalyserNode", + js_name = "minDecibels" + )] #[doc = "Getter for the `minDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn min_decibels(this: &AnalyserNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = minDecibels)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AnalyserNode", + js_name = "minDecibels" + )] #[doc = "Setter for the `minDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn set_min_decibels(this: &AnalyserNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = maxDecibels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnalyserNode", + js_name = "maxDecibels" + )] #[doc = "Getter for the `maxDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn max_decibels(this: &AnalyserNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = maxDecibels)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AnalyserNode", + js_name = "maxDecibels" + )] #[doc = "Setter for the `maxDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn set_max_decibels(this: &AnalyserNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnalyserNode", + js_name = "smoothingTimeConstant" + )] #[doc = "Getter for the `smoothingTimeConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn smoothing_time_constant(this: &AnalyserNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AnalyserNode", + js_name = "smoothingTimeConstant" + )] #[doc = "Setter for the `smoothingTimeConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"] @@ -93,28 +153,48 @@ extern "C" { context: &BaseAudioContext, options: &AnalyserOptions, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteFrequencyData)] + #[wasm_bindgen( + method, + structural, + js_class = "AnalyserNode", + js_name = "getByteFrequencyData" + )] #[doc = "The `getByteFrequencyData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn get_byte_frequency_data(this: &AnalyserNode, array: &mut [u8]); - # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteTimeDomainData)] + #[wasm_bindgen( + method, + structural, + js_class = "AnalyserNode", + js_name = "getByteTimeDomainData" + )] #[doc = "The `getByteTimeDomainData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteTimeDomainData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn get_byte_time_domain_data(this: &AnalyserNode, array: &mut [u8]); - # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatFrequencyData)] + #[wasm_bindgen( + method, + structural, + js_class = "AnalyserNode", + js_name = "getFloatFrequencyData" + )] #[doc = "The `getFloatFrequencyData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn get_float_frequency_data(this: &AnalyserNode, array: &mut [f32]); - # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatTimeDomainData)] + #[wasm_bindgen( + method, + structural, + js_class = "AnalyserNode", + js_name = "getFloatTimeDomainData" + )] #[doc = "The `getFloatTimeDomainData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData)"] diff --git a/crates/web-sys/src/features/gen_AnalyserOptions.rs b/crates/web-sys/src/features/gen_AnalyserOptions.rs index a5a73c278b7..88349309285 100644 --- a/crates/web-sys/src/features/gen_AnalyserOptions.rs +++ b/crates/web-sys/src/features/gen_AnalyserOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnalyserOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AnalyserOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnalyserOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AngleInstancedArrays.rs b/crates/web-sys/src/features/gen_AngleInstancedArrays.rs index 2fd99e72391..416b61c2ac6 100644 --- a/crates/web-sys/src/features/gen_AngleInstancedArrays.rs +++ b/crates/web-sys/src/features/gen_AngleInstancedArrays.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ANGLE_instanced_arrays , typescript_type = "ANGLE_instanced_arrays")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "ANGLE_instanced_arrays" , typescript_type = "ANGLE_instanced_arrays")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AngleInstancedArrays` class."] #[doc = ""] @@ -11,7 +11,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] pub type AngleInstancedArrays; - # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawArraysInstancedANGLE)] + #[wasm_bindgen( + method, + structural, + js_class = "ANGLE_instanced_arrays", + js_name = "drawArraysInstancedANGLE" + )] #[doc = "The `drawArraysInstancedANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)"] @@ -24,7 +29,12 @@ extern "C" { count: i32, primcount: i32, ); - # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE)] + #[wasm_bindgen( + method, + structural, + js_class = "ANGLE_instanced_arrays", + js_name = "drawElementsInstancedANGLE" + )] #[doc = "The `drawElementsInstancedANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"] @@ -38,7 +48,12 @@ extern "C" { offset: i32, primcount: i32, ); - # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE)] + #[wasm_bindgen( + method, + structural, + js_class = "ANGLE_instanced_arrays", + js_name = "drawElementsInstancedANGLE" + )] #[doc = "The `drawElementsInstancedANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"] @@ -52,7 +67,12 @@ extern "C" { offset: f64, primcount: i32, ); - # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = vertexAttribDivisorANGLE)] + #[wasm_bindgen( + method, + structural, + js_class = "ANGLE_instanced_arrays", + js_name = "vertexAttribDivisorANGLE" + )] #[doc = "The `vertexAttribDivisorANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)"] diff --git a/crates/web-sys/src/features/gen_Animation.rs b/crates/web-sys/src/features/gen_Animation.rs index 9862eab321f..41192531822 100644 --- a/crates/web-sys/src/features/gen_Animation.rs +++ b/crates/web-sys/src/features/gen_Animation.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Animation , typescript_type = "Animation")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Animation", + typescript_type = "Animation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Animation` class."] #[doc = ""] @@ -11,14 +16,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub type Animation; - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "Animation", 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/Animation/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn id(this: &Animation) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = id)] + #[wasm_bindgen(structural, method, setter, js_class = "Animation", js_name = "id")] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"] @@ -26,7 +31,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_id(this: &Animation, value: &str); #[cfg(feature = "AnimationEffect")] - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = effect)] + #[wasm_bindgen(structural, method, getter, js_class = "Animation", js_name = "effect")] #[doc = "Getter for the `effect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"] @@ -34,7 +39,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] pub fn effect(this: &Animation) -> Option; #[cfg(feature = "AnimationEffect")] - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = effect)] + #[wasm_bindgen(structural, method, setter, js_class = "Animation", js_name = "effect")] #[doc = "Setter for the `effect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"] @@ -42,7 +47,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] pub fn set_effect(this: &Animation, value: Option<&AnimationEffect>); #[cfg(feature = "AnimationTimeline")] - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = timeline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "timeline" + )] #[doc = "Getter for the `timeline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"] @@ -50,49 +61,91 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"] pub fn timeline(this: &Animation) -> Option; #[cfg(feature = "AnimationTimeline")] - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = timeline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Animation", + js_name = "timeline" + )] #[doc = "Setter for the `timeline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"] pub fn set_timeline(this: &Animation, value: Option<&AnimationTimeline>); - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = startTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "startTime" + )] #[doc = "Getter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn start_time(this: &Animation) -> Option; - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = startTime)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Animation", + js_name = "startTime" + )] #[doc = "Setter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_start_time(this: &Animation, value: Option); - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn current_time(this: &Animation) -> Option; - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Animation", + js_name = "currentTime" + )] #[doc = "Setter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_current_time(this: &Animation, value: Option); - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = playbackRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "playbackRate" + )] #[doc = "Getter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn playback_rate(this: &Animation) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = playbackRate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Animation", + js_name = "playbackRate" + )] #[doc = "Setter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"] @@ -100,56 +153,106 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_playback_rate(this: &Animation, value: f64); #[cfg(feature = "AnimationPlayState")] - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = playState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "playState" + )] #[doc = "Getter for the `playState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationPlayState`*"] pub fn play_state(this: &Animation) -> AnimationPlayState; - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = pending)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "pending" + )] #[doc = "Getter for the `pending` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn pending(this: &Animation) -> bool; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Animation" , js_name = ready)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Animation", + js_name = "ready" + )] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn ready(this: &Animation) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Animation" , js_name = finished)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Animation", + js_name = "finished" + )] #[doc = "Getter for the `finished` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn finished(this: &Animation) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = onfinish)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "onfinish" + )] #[doc = "Getter for the `onfinish` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn onfinish(this: &Animation) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = onfinish)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Animation", + js_name = "onfinish" + )] #[doc = "Setter for the `onfinish` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_onfinish(this: &Animation, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = oncancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Animation", + js_name = "oncancel" + )] #[doc = "Getter for the `oncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn oncancel(this: &Animation) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = oncancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Animation", + js_name = "oncancel" + )] #[doc = "Setter for the `oncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"] @@ -182,42 +285,47 @@ extern "C" { effect: Option<&AnimationEffect>, timeline: Option<&AnimationTimeline>, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "Animation" , js_name = cancel)] + #[wasm_bindgen(method, structural, js_class = "Animation", js_name = "cancel")] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn cancel(this: &Animation); - # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = finish)] + #[wasm_bindgen(catch, method, structural, js_class = "Animation", js_name = "finish")] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn finish(this: &Animation) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = pause)] + #[wasm_bindgen(catch, method, structural, js_class = "Animation", js_name = "pause")] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn pause(this: &Animation) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = play)] + #[wasm_bindgen(catch, method, structural, js_class = "Animation", js_name = "play")] #[doc = "The `play()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/play)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn play(this: &Animation) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = reverse)] + #[wasm_bindgen(catch, method, structural, js_class = "Animation", js_name = "reverse")] #[doc = "The `reverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/reverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn reverse(this: &Animation) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Animation" , js_name = updatePlaybackRate)] + #[wasm_bindgen( + method, + structural, + js_class = "Animation", + js_name = "updatePlaybackRate" + )] #[doc = "The `updatePlaybackRate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/updatePlaybackRate)"] diff --git a/crates/web-sys/src/features/gen_AnimationEffect.rs b/crates/web-sys/src/features/gen_AnimationEffect.rs index b57dc8ba42f..1589f777725 100644 --- a/crates/web-sys/src/features/gen_AnimationEffect.rs +++ b/crates/web-sys/src/features/gen_AnimationEffect.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationEffect , typescript_type = "AnimationEffect")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AnimationEffect", + typescript_type = "AnimationEffect" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationEffect` class."] #[doc = ""] @@ -12,7 +16,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"] pub type AnimationEffect; #[cfg(feature = "ComputedEffectTiming")] - # [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getComputedTiming)] + #[wasm_bindgen( + method, + structural, + js_class = "AnimationEffect", + js_name = "getComputedTiming" + )] #[doc = "The `getComputedTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getComputedTiming)"] @@ -20,14 +29,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `ComputedEffectTiming`*"] pub fn get_computed_timing(this: &AnimationEffect) -> ComputedEffectTiming; #[cfg(feature = "EffectTiming")] - # [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getTiming)] + #[wasm_bindgen( + method, + structural, + js_class = "AnimationEffect", + js_name = "getTiming" + )] #[doc = "The `getTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `EffectTiming`*"] pub fn get_timing(this: &AnimationEffect) -> EffectTiming; - # [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AnimationEffect", + js_name = "updateTiming" + )] #[doc = "The `updateTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"] @@ -35,7 +55,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"] pub fn update_timing(this: &AnimationEffect) -> Result<(), JsValue>; #[cfg(feature = "OptionalEffectTiming")] - # [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AnimationEffect", + js_name = "updateTiming" + )] #[doc = "The `updateTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"] diff --git a/crates/web-sys/src/features/gen_AnimationEvent.rs b/crates/web-sys/src/features/gen_AnimationEvent.rs index b18d8f91a67..68a6110c3e3 100644 --- a/crates/web-sys/src/features/gen_AnimationEvent.rs +++ b/crates/web-sys/src/features/gen_AnimationEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AnimationEvent , typescript_type = "AnimationEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "AnimationEvent", + typescript_type = "AnimationEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationEvent` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] pub type AnimationEvent; - # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = animationName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnimationEvent", + js_name = "animationName" + )] #[doc = "Getter for the `animationName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = elapsedTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnimationEvent", + js_name = "elapsedTime" + )] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/elapsedTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] pub fn elapsed_time(this: &AnimationEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = pseudoElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnimationEvent", + js_name = "pseudoElement" + )] #[doc = "Getter for the `pseudoElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement)"] diff --git a/crates/web-sys/src/features/gen_AnimationEventInit.rs b/crates/web-sys/src/features/gen_AnimationEventInit.rs index 163a55b4306..05ff3ae690c 100644 --- a/crates/web-sys/src/features/gen_AnimationEventInit.rs +++ b/crates/web-sys/src/features/gen_AnimationEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AnimationEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AnimationPlaybackEvent.rs b/crates/web-sys/src/features/gen_AnimationPlaybackEvent.rs index 336e49a0686..e0e72aea56a 100644 --- a/crates/web-sys/src/features/gen_AnimationPlaybackEvent.rs +++ b/crates/web-sys/src/features/gen_AnimationPlaybackEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AnimationPlaybackEvent , typescript_type = "AnimationPlaybackEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "AnimationPlaybackEvent", + typescript_type = "AnimationPlaybackEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPlaybackEvent` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] pub type AnimationPlaybackEvent; - # [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnimationPlaybackEvent", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] pub fn current_time(this: &AnimationPlaybackEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = timelineTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnimationPlaybackEvent", + js_name = "timelineTime" + )] #[doc = "Getter for the `timelineTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/timelineTime)"] diff --git a/crates/web-sys/src/features/gen_AnimationPlaybackEventInit.rs b/crates/web-sys/src/features/gen_AnimationPlaybackEventInit.rs index 2cdaf070286..0fdbf437ec8 100644 --- a/crates/web-sys/src/features/gen_AnimationPlaybackEventInit.rs +++ b/crates/web-sys/src/features/gen_AnimationPlaybackEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPlaybackEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AnimationPlaybackEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPlaybackEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs b/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs index 7cf81edd992..3b175506571 100644 --- a/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs +++ b/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPropertyDetails)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AnimationPropertyDetails")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPropertyDetails` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs b/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs index 71b218c377a..7e674576f4b 100644 --- a/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs +++ b/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPropertyValueDetails)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AnimationPropertyValueDetails" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPropertyValueDetails` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AnimationTimeline.rs b/crates/web-sys/src/features/gen_AnimationTimeline.rs index 33c3fed39c5..1f42a1a253f 100644 --- a/crates/web-sys/src/features/gen_AnimationTimeline.rs +++ b/crates/web-sys/src/features/gen_AnimationTimeline.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationTimeline , typescript_type = "AnimationTimeline")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AnimationTimeline", + typescript_type = "AnimationTimeline" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationTimeline` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`*"] pub type AnimationTimeline; - # [wasm_bindgen (structural , method , getter , js_class = "AnimationTimeline" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AnimationTimeline", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationTimeline/currentTime)"] diff --git a/crates/web-sys/src/features/gen_AssignedNodesOptions.rs b/crates/web-sys/src/features/gen_AssignedNodesOptions.rs index 69471ffaa92..1a4ff12987c 100644 --- a/crates/web-sys/src/features/gen_AssignedNodesOptions.rs +++ b/crates/web-sys/src/features/gen_AssignedNodesOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AssignedNodesOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AssignedNodesOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AssignedNodesOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Attr.rs b/crates/web-sys/src/features/gen_Attr.rs index 6948e24279d..f1cf9afe468 100644 --- a/crates/web-sys/src/features/gen_Attr.rs +++ b/crates/web-sys/src/features/gen_Attr.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Attr , typescript_type = "Attr")] + #[wasm_bindgen( + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Attr", + typescript_type = "Attr" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Attr` class."] #[doc = ""] @@ -11,49 +17,55 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub type Attr; - # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = localName)] + #[wasm_bindgen(structural, method, getter, js_class = "Attr", 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/Attr/localName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn local_name(this: &Attr) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = value)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Attr" , js_name = value)] + #[wasm_bindgen(structural, method, setter, js_class = "Attr", js_name = "value")] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn set_value(this: &Attr, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "Attr", 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/Attr/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn name(this: &Attr) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = namespaceURI)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = prefix)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = specified)] + #[wasm_bindgen(structural, method, getter, js_class = "Attr", js_name = "specified")] #[doc = "Getter for the `specified` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/specified)"] diff --git a/crates/web-sys/src/features/gen_AttributeNameValue.rs b/crates/web-sys/src/features/gen_AttributeNameValue.rs index d2088a9edd4..83f1a3e4381 100644 --- a/crates/web-sys/src/features/gen_AttributeNameValue.rs +++ b/crates/web-sys/src/features/gen_AttributeNameValue.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AttributeNameValue)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AttributeNameValue")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AttributeNameValue` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioBuffer.rs b/crates/web-sys/src/features/gen_AudioBuffer.rs index 5f350bc6f64..33dedbdd7c9 100644 --- a/crates/web-sys/src/features/gen_AudioBuffer.rs +++ b/crates/web-sys/src/features/gen_AudioBuffer.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBuffer , typescript_type = "AudioBuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioBuffer", + typescript_type = "AudioBuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBuffer` class."] #[doc = ""] @@ -11,28 +15,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub type AudioBuffer; - # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = sampleRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBuffer", + js_name = "sampleRate" + )] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn sample_rate(this: &AudioBuffer) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBuffer", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn length(this: &AudioBuffer) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBuffer", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn duration(this: &AudioBuffer) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = numberOfChannels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBuffer", + js_name = "numberOfChannels" + )] #[doc = "Getter for the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/numberOfChannels)"] @@ -47,7 +75,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferOptions`*"] pub fn new(options: &AudioBufferOptions) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBuffer", + js_name = "copyFromChannel" + )] #[doc = "The `copyFromChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"] @@ -58,7 +92,13 @@ extern "C" { destination: &mut [f32], channel_number: i32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBuffer", + js_name = "copyFromChannel" + )] #[doc = "The `copyFromChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"] @@ -70,7 +110,13 @@ extern "C" { channel_number: i32, start_in_channel: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBuffer", + js_name = "copyToChannel" + )] #[doc = "The `copyToChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"] @@ -81,7 +127,13 @@ extern "C" { source: &[f32], channel_number: i32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBuffer", + js_name = "copyToChannel" + )] #[doc = "The `copyToChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"] @@ -93,7 +145,13 @@ extern "C" { channel_number: i32, start_in_channel: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = getChannelData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBuffer", + js_name = "getChannelData" + )] #[doc = "The `getChannelData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/getChannelData)"] diff --git a/crates/web-sys/src/features/gen_AudioBufferOptions.rs b/crates/web-sys/src/features/gen_AudioBufferOptions.rs index dfa7f46eda2..c06af0c5ca0 100644 --- a/crates/web-sys/src/features/gen_AudioBufferOptions.rs +++ b/crates/web-sys/src/features/gen_AudioBufferOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBufferOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioBufferOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBufferOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioBufferSourceNode.rs b/crates/web-sys/src/features/gen_AudioBufferSourceNode.rs index e6cd32e1a96..00a3ca76bcf 100644 --- a/crates/web-sys/src/features/gen_AudioBufferSourceNode.rs +++ b/crates/web-sys/src/features/gen_AudioBufferSourceNode.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioBufferSourceNode , typescript_type = "AudioBufferSourceNode")] + #[wasm_bindgen( + extends = "AudioScheduledSourceNode", + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioBufferSourceNode", + typescript_type = "AudioBufferSourceNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBufferSourceNode` class."] #[doc = ""] @@ -12,7 +19,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub type AudioBufferSourceNode; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = buffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBufferSourceNode", + js_name = "buffer" + )] #[doc = "Getter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"] @@ -20,7 +33,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"] pub fn buffer(this: &AudioBufferSourceNode) -> Option; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = buffer)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioBufferSourceNode", + js_name = "buffer" + )] #[doc = "Setter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"] @@ -28,7 +47,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"] pub fn set_buffer(this: &AudioBufferSourceNode, value: Option<&AudioBuffer>); #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = playbackRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBufferSourceNode", + js_name = "playbackRate" + )] #[doc = "Getter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/playbackRate)"] @@ -36,63 +61,117 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"] pub fn playback_rate(this: &AudioBufferSourceNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = detune)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBufferSourceNode", + js_name = "detune" + )] #[doc = "Getter for the `detune` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/detune)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"] pub fn detune(this: &AudioBufferSourceNode) -> AudioParam; - # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBufferSourceNode", + js_name = "loop" + )] #[doc = "Getter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn loop_(this: &AudioBufferSourceNode) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loop)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioBufferSourceNode", + js_name = "loop" + )] #[doc = "Setter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn set_loop(this: &AudioBufferSourceNode, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBufferSourceNode", + js_name = "loopStart" + )] #[doc = "Getter for the `loopStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn loop_start(this: &AudioBufferSourceNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopStart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioBufferSourceNode", + js_name = "loopStart" + )] #[doc = "Setter for the `loopStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn set_loop_start(this: &AudioBufferSourceNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBufferSourceNode", + js_name = "loopEnd" + )] #[doc = "Getter for the `loopEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn loop_end(this: &AudioBufferSourceNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopEnd)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioBufferSourceNode", + js_name = "loopEnd" + )] #[doc = "Setter for the `loopEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn set_loop_end(this: &AudioBufferSourceNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioBufferSourceNode", + js_name = "onended" + )] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn onended(this: &AudioBufferSourceNode) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioBufferSourceNode", + js_name = "onended" + )] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"] @@ -118,21 +197,39 @@ extern "C" { context: &BaseAudioContext, options: &AudioBufferSourceOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBufferSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn start(this: &AudioBufferSourceNode) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBufferSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn start_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBufferSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] @@ -143,7 +240,13 @@ extern "C" { when: f64, grain_offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBufferSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] @@ -155,14 +258,26 @@ extern "C" { grain_offset: f64, grain_duration: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBufferSourceNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn stop(this: &AudioBufferSourceNode) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioBufferSourceNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"] diff --git a/crates/web-sys/src/features/gen_AudioBufferSourceOptions.rs b/crates/web-sys/src/features/gen_AudioBufferSourceOptions.rs index e8a0f2f83a4..81a37c75649 100644 --- a/crates/web-sys/src/features/gen_AudioBufferSourceOptions.rs +++ b/crates/web-sys/src/features/gen_AudioBufferSourceOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBufferSourceOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioBufferSourceOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBufferSourceOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioConfiguration.rs b/crates/web-sys/src/features/gen_AudioConfiguration.rs index 600464d9bc7..b6022570400 100644 --- a/crates/web-sys/src/features/gen_AudioConfiguration.rs +++ b/crates/web-sys/src/features/gen_AudioConfiguration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioContext.rs b/crates/web-sys/src/features/gen_AudioContext.rs index 2fc35092c65..8623f18180a 100644 --- a/crates/web-sys/src/features/gen_AudioContext.rs +++ b/crates/web-sys/src/features/gen_AudioContext.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (vendor_prefix = webkit , extends = BaseAudioContext , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioContext , typescript_type = "AudioContext")] + #[wasm_bindgen( + vendor_prefix = "webkit", + extends = "BaseAudioContext", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioContext", + typescript_type = "AudioContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioContext` class."] #[doc = ""] @@ -12,21 +19,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub type AudioContext; #[cfg(feature = "AudioDestinationNode")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = destination)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioContext", + js_name = "destination" + )] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/destination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioDestinationNode`*"] pub fn destination(this: &AudioContext) -> AudioDestinationNode; - # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = sampleRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioContext", + js_name = "sampleRate" + )] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn sample_rate(this: &AudioContext) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioContext", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/currentTime)"] @@ -34,7 +59,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn current_time(this: &AudioContext) -> f64; #[cfg(feature = "AudioListener")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = listener)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioContext", + js_name = "listener" + )] #[doc = "Getter for the `listener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/listener)"] @@ -42,7 +73,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioListener`*"] pub fn listener(this: &AudioContext) -> AudioListener; #[cfg(feature = "AudioContextState")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioContext", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/state)"] @@ -50,21 +87,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioContextState`*"] pub fn state(this: &AudioContext) -> AudioContextState; #[cfg(feature = "AudioWorklet")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioContext" , js_name = audioWorklet)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "AudioContext", + js_name = "audioWorklet" + )] #[doc = "Getter for the `audioWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/audioWorklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioWorklet`*"] pub fn audio_worklet(this: &AudioContext) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioContext", + js_name = "onstatechange" + )] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn onstatechange(this: &AudioContext) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "AudioContext" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioContext", + js_name = "onstatechange" + )] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"] @@ -88,7 +144,13 @@ extern "C" { pub fn new_with_context_options( context_options: &AudioContextOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = close)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "close" + )] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/close)"] @@ -96,7 +158,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn close(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlMediaElement", feature = "MediaElementAudioSourceNode",))] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaElementSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createMediaElementSource" + )] #[doc = "The `createMediaElementSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaElementSource)"] @@ -107,7 +175,13 @@ extern "C" { media_element: &HtmlMediaElement, ) -> Result; #[cfg(feature = "MediaStreamAudioDestinationNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamDestination)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createMediaStreamDestination" + )] #[doc = "The `createMediaStreamDestination()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamDestination)"] @@ -117,7 +191,13 @@ extern "C" { this: &AudioContext, ) -> Result; #[cfg(all(feature = "MediaStream", feature = "MediaStreamAudioSourceNode",))] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createMediaStreamSource" + )] #[doc = "The `createMediaStreamSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamSource)"] @@ -127,7 +207,13 @@ extern "C" { this: &AudioContext, media_stream: &MediaStream, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = suspend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "suspend" + )] #[doc = "The `suspend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/suspend)"] @@ -135,7 +221,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn suspend(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "AnalyserNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createAnalyser)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createAnalyser" + )] #[doc = "The `createAnalyser()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createAnalyser)"] @@ -143,7 +235,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `AudioContext`*"] pub fn create_analyser(this: &AudioContext) -> Result; #[cfg(feature = "BiquadFilterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBiquadFilter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createBiquadFilter" + )] #[doc = "The `createBiquadFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBiquadFilter)"] @@ -151,7 +249,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `BiquadFilterNode`*"] pub fn create_biquad_filter(this: &AudioContext) -> Result; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createBuffer" + )] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBuffer)"] @@ -164,7 +268,13 @@ extern "C" { sample_rate: f32, ) -> Result; #[cfg(feature = "AudioBufferSourceNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBufferSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createBufferSource" + )] #[doc = "The `createBufferSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBufferSource)"] @@ -172,7 +282,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioContext`*"] pub fn create_buffer_source(this: &AudioContext) -> Result; #[cfg(feature = "ChannelMergerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createChannelMerger" + )] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"] @@ -180,7 +296,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelMergerNode`*"] pub fn create_channel_merger(this: &AudioContext) -> Result; #[cfg(feature = "ChannelMergerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createChannelMerger" + )] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"] @@ -191,7 +313,13 @@ extern "C" { number_of_inputs: u32, ) -> Result; #[cfg(feature = "ChannelSplitterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createChannelSplitter" + )] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"] @@ -199,7 +327,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelSplitterNode`*"] pub fn create_channel_splitter(this: &AudioContext) -> Result; #[cfg(feature = "ChannelSplitterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createChannelSplitter" + )] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"] @@ -210,7 +344,13 @@ extern "C" { number_of_outputs: u32, ) -> Result; #[cfg(feature = "ConstantSourceNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createConstantSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createConstantSource" + )] #[doc = "The `createConstantSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConstantSource)"] @@ -218,7 +358,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConstantSourceNode`*"] pub fn create_constant_source(this: &AudioContext) -> Result; #[cfg(feature = "ConvolverNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createConvolver)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createConvolver" + )] #[doc = "The `createConvolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConvolver)"] @@ -226,7 +372,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConvolverNode`*"] pub fn create_convolver(this: &AudioContext) -> Result; #[cfg(feature = "DelayNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDelay)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createDelay" + )] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"] @@ -234,7 +386,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DelayNode`*"] pub fn create_delay(this: &AudioContext) -> Result; #[cfg(feature = "DelayNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDelay)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createDelay" + )] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"] @@ -245,7 +403,13 @@ extern "C" { max_delay_time: f64, ) -> Result; #[cfg(feature = "DynamicsCompressorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDynamicsCompressor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createDynamicsCompressor" + )] #[doc = "The `createDynamicsCompressor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDynamicsCompressor)"] @@ -255,7 +419,13 @@ extern "C" { this: &AudioContext, ) -> Result; #[cfg(feature = "GainNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createGain)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createGain" + )] #[doc = "The `createGain()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createGain)"] @@ -263,7 +433,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `GainNode`*"] pub fn create_gain(this: &AudioContext) -> Result; #[cfg(feature = "IirFilterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createIIRFilter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createIIRFilter" + )] #[doc = "The `createIIRFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createIIRFilter)"] @@ -275,7 +451,13 @@ extern "C" { feedback: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "OscillatorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createOscillator)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createOscillator" + )] #[doc = "The `createOscillator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createOscillator)"] @@ -283,7 +465,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `OscillatorNode`*"] pub fn create_oscillator(this: &AudioContext) -> Result; #[cfg(feature = "PannerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPanner)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createPanner" + )] #[doc = "The `createPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPanner)"] @@ -291,7 +479,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PannerNode`*"] pub fn create_panner(this: &AudioContext) -> Result; #[cfg(feature = "PeriodicWave")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createPeriodicWave" + )] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"] @@ -303,7 +497,13 @@ extern "C" { imag: &mut [f32], ) -> Result; #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createPeriodicWave" + )] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"] @@ -316,7 +516,13 @@ extern "C" { constraints: &PeriodicWaveConstraints, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] @@ -324,7 +530,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor(this: &AudioContext) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] @@ -335,7 +547,13 @@ extern "C" { buffer_size: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] @@ -347,7 +565,13 @@ extern "C" { number_of_input_channels: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] @@ -360,7 +584,13 @@ extern "C" { number_of_output_channels: u32, ) -> Result; #[cfg(feature = "StereoPannerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createStereoPanner)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createStereoPanner" + )] #[doc = "The `createStereoPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createStereoPanner)"] @@ -368,14 +598,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `StereoPannerNode`*"] pub fn create_stereo_panner(this: &AudioContext) -> Result; #[cfg(feature = "WaveShaperNode")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createWaveShaper)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "createWaveShaper" + )] #[doc = "The `createWaveShaper()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createWaveShaper)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `WaveShaperNode`*"] pub fn create_wave_shaper(this: &AudioContext) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] @@ -385,7 +627,13 @@ extern "C" { this: &AudioContext, audio_data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] @@ -396,7 +644,13 @@ extern "C" { audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] @@ -408,7 +662,13 @@ extern "C" { success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = resume)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioContext", + js_name = "resume" + )] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/resume)"] diff --git a/crates/web-sys/src/features/gen_AudioContextOptions.rs b/crates/web-sys/src/features/gen_AudioContextOptions.rs index 6583853de29..5e833f25770 100644 --- a/crates/web-sys/src/features/gen_AudioContextOptions.rs +++ b/crates/web-sys/src/features/gen_AudioContextOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioContextOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioContextOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioContextOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioData.rs b/crates/web-sys/src/features/gen_AudioData.rs index 0bd91f4a938..09867eb52aa 100644 --- a/crates/web-sys/src/features/gen_AudioData.rs +++ b/crates/web-sys/src/features/gen_AudioData.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioData , typescript_type = "AudioData")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioData", + typescript_type = "AudioData" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioData` class."] #[doc = ""] @@ -17,7 +21,7 @@ extern "C" { pub type AudioData; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = format)] + #[wasm_bindgen(structural, method, getter, js_class = "AudioData", js_name = "format")] #[doc = "Getter for the `format` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/format)"] @@ -28,7 +32,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(this: &AudioData) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = sampleRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioData", + js_name = "sampleRate" + )] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/sampleRate)"] @@ -39,7 +49,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_rate(this: &AudioData) -> f32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = numberOfFrames)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioData", + js_name = "numberOfFrames" + )] #[doc = "Getter for the `numberOfFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/numberOfFrames)"] @@ -50,7 +66,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn number_of_frames(this: &AudioData) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = numberOfChannels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioData", + js_name = "numberOfChannels" + )] #[doc = "Getter for the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/numberOfChannels)"] @@ -61,7 +83,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn number_of_channels(this: &AudioData) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioData", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/duration)"] @@ -72,7 +100,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &AudioData) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = timestamp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioData", + js_name = "timestamp" + )] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/timestamp)"] @@ -96,7 +130,7 @@ extern "C" { pub fn new(init: &AudioDataInit) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataCopyToOptions")] - # [wasm_bindgen (method , structural , js_class = "AudioData" , js_name = allocationSize)] + #[wasm_bindgen(method, structural, js_class = "AudioData", js_name = "allocationSize")] #[doc = "The `allocationSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/allocationSize)"] @@ -107,7 +141,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allocation_size(this: &AudioData, options: &AudioDataCopyToOptions) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioData" , js_name = clone)] + #[wasm_bindgen(method, structural, js_class = "AudioData", js_name = "clone")] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/clone)"] @@ -118,7 +152,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clone(this: &AudioData) -> AudioData; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioData" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "AudioData", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/close)"] @@ -130,7 +164,7 @@ extern "C" { pub fn close(this: &AudioData); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataCopyToOptions")] - # [wasm_bindgen (method , structural , js_class = "AudioData" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "AudioData", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"] @@ -146,7 +180,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataCopyToOptions")] - # [wasm_bindgen (method , structural , js_class = "AudioData" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "AudioData", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"] diff --git a/crates/web-sys/src/features/gen_AudioDataCopyToOptions.rs b/crates/web-sys/src/features/gen_AudioDataCopyToOptions.rs index b1d3d8fbd44..430bf2c673d 100644 --- a/crates/web-sys/src/features/gen_AudioDataCopyToOptions.rs +++ b/crates/web-sys/src/features/gen_AudioDataCopyToOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDataCopyToOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioDataCopyToOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDataCopyToOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioDataInit.rs b/crates/web-sys/src/features/gen_AudioDataInit.rs index 8a7dc94225e..f391352c9ac 100644 --- a/crates/web-sys/src/features/gen_AudioDataInit.rs +++ b/crates/web-sys/src/features/gen_AudioDataInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDataInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioDataInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDataInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioDecoder.rs b/crates/web-sys/src/features/gen_AudioDecoder.rs index b448dc2f139..bd421fc7727 100644 --- a/crates/web-sys/src/features/gen_AudioDecoder.rs +++ b/crates/web-sys/src/features/gen_AudioDecoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoder , typescript_type = "AudioDecoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioDecoder", + typescript_type = "AudioDecoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoder` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type AudioDecoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioDecoder" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioDecoder", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/state)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &AudioDecoder) -> CodecState; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "AudioDecoder" , js_name = decodeQueueSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioDecoder", + js_name = "decodeQueueSize" + )] #[doc = "Getter for the `decodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/decodeQueueSize)"] @@ -51,7 +67,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &AudioDecoderInit) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioDecoder" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "AudioDecoder", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/close)"] @@ -63,7 +79,7 @@ extern "C" { pub fn close(this: &AudioDecoder); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] - # [wasm_bindgen (method , structural , js_class = "AudioDecoder" , js_name = configure)] + #[wasm_bindgen(method, structural, js_class = "AudioDecoder", js_name = "configure")] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/configure)"] @@ -75,7 +91,7 @@ extern "C" { pub fn configure(this: &AudioDecoder, config: &AudioDecoderConfig); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunk")] - # [wasm_bindgen (method , structural , js_class = "AudioDecoder" , js_name = decode)] + #[wasm_bindgen(method, structural, js_class = "AudioDecoder", js_name = "decode")] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/decode)"] @@ -86,7 +102,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode(this: &AudioDecoder, chunk: &EncodedAudioChunk); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioDecoder" , js_name = flush)] + #[wasm_bindgen(method, structural, js_class = "AudioDecoder", js_name = "flush")] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/flush)"] @@ -98,7 +114,11 @@ extern "C" { pub fn flush(this: &AudioDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] - # [wasm_bindgen (static_method_of = AudioDecoder , js_class = "AudioDecoder" , js_name = isConfigSupported)] + #[wasm_bindgen( + static_method_of = "AudioDecoder", + js_class = "AudioDecoder", + js_name = "isConfigSupported" + )] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/isConfigSupported)"] @@ -109,7 +129,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &AudioDecoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioDecoder" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "AudioDecoder", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/reset)"] diff --git a/crates/web-sys/src/features/gen_AudioDecoderConfig.rs b/crates/web-sys/src/features/gen_AudioDecoderConfig.rs index 2ba30966fee..2310b72cb38 100644 --- a/crates/web-sys/src/features/gen_AudioDecoderConfig.rs +++ b/crates/web-sys/src/features/gen_AudioDecoderConfig.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderConfig)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioDecoderConfig")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoderConfig` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioDecoderInit.rs b/crates/web-sys/src/features/gen_AudioDecoderInit.rs index d5149efd7a1..b76c79cddd1 100644 --- a/crates/web-sys/src/features/gen_AudioDecoderInit.rs +++ b/crates/web-sys/src/features/gen_AudioDecoderInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioDecoderInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoderInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioDecoderSupport.rs b/crates/web-sys/src/features/gen_AudioDecoderSupport.rs index 3640403e1df..a02b54aa1f7 100644 --- a/crates/web-sys/src/features/gen_AudioDecoderSupport.rs +++ b/crates/web-sys/src/features/gen_AudioDecoderSupport.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderSupport)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioDecoderSupport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoderSupport` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioDestinationNode.rs b/crates/web-sys/src/features/gen_AudioDestinationNode.rs index a6f79cffcdf..a0f230953a2 100644 --- a/crates/web-sys/src/features/gen_AudioDestinationNode.rs +++ b/crates/web-sys/src/features/gen_AudioDestinationNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioDestinationNode , typescript_type = "AudioDestinationNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioDestinationNode", + typescript_type = "AudioDestinationNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDestinationNode` class."] #[doc = ""] @@ -11,7 +17,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`*"] pub type AudioDestinationNode; - # [wasm_bindgen (structural , method , getter , js_class = "AudioDestinationNode" , js_name = maxChannelCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioDestinationNode", + js_name = "maxChannelCount" + )] #[doc = "Getter for the `maxChannelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode/maxChannelCount)"] diff --git a/crates/web-sys/src/features/gen_AudioEncoder.rs b/crates/web-sys/src/features/gen_AudioEncoder.rs index 244e997070c..9c2e7a0496e 100644 --- a/crates/web-sys/src/features/gen_AudioEncoder.rs +++ b/crates/web-sys/src/features/gen_AudioEncoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoder , typescript_type = "AudioEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioEncoder", + typescript_type = "AudioEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoder` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type AudioEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioEncoder" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioEncoder", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/state)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &AudioEncoder) -> CodecState; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "AudioEncoder" , js_name = encodeQueueSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioEncoder", + js_name = "encodeQueueSize" + )] #[doc = "Getter for the `encodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/encodeQueueSize)"] @@ -51,7 +67,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &AudioEncoderInit) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioEncoder" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "AudioEncoder", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/close)"] @@ -63,7 +79,7 @@ extern "C" { pub fn close(this: &AudioEncoder); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioEncoderConfig")] - # [wasm_bindgen (method , structural , js_class = "AudioEncoder" , js_name = configure)] + #[wasm_bindgen(method, structural, js_class = "AudioEncoder", js_name = "configure")] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/configure)"] @@ -75,7 +91,7 @@ extern "C" { pub fn configure(this: &AudioEncoder, config: &AudioEncoderConfig); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioData")] - # [wasm_bindgen (method , structural , js_class = "AudioEncoder" , js_name = encode)] + #[wasm_bindgen(method, structural, js_class = "AudioEncoder", js_name = "encode")] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/encode)"] @@ -86,7 +102,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn encode(this: &AudioEncoder, data: &AudioData); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioEncoder" , js_name = flush)] + #[wasm_bindgen(method, structural, js_class = "AudioEncoder", js_name = "flush")] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/flush)"] @@ -98,7 +114,11 @@ extern "C" { pub fn flush(this: &AudioEncoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioEncoderConfig")] - # [wasm_bindgen (static_method_of = AudioEncoder , js_class = "AudioEncoder" , js_name = isConfigSupported)] + #[wasm_bindgen( + static_method_of = "AudioEncoder", + js_class = "AudioEncoder", + js_name = "isConfigSupported" + )] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/isConfigSupported)"] @@ -109,7 +129,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &AudioEncoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "AudioEncoder" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "AudioEncoder", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/reset)"] diff --git a/crates/web-sys/src/features/gen_AudioEncoderConfig.rs b/crates/web-sys/src/features/gen_AudioEncoderConfig.rs index 49194678c0f..5aa2f1946ce 100644 --- a/crates/web-sys/src/features/gen_AudioEncoderConfig.rs +++ b/crates/web-sys/src/features/gen_AudioEncoderConfig.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderConfig)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioEncoderConfig")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoderConfig` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioEncoderInit.rs b/crates/web-sys/src/features/gen_AudioEncoderInit.rs index dba313bb419..ff84f765698 100644 --- a/crates/web-sys/src/features/gen_AudioEncoderInit.rs +++ b/crates/web-sys/src/features/gen_AudioEncoderInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioEncoderInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoderInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioEncoderSupport.rs b/crates/web-sys/src/features/gen_AudioEncoderSupport.rs index 0c7987bc6ce..dfbd26ee52c 100644 --- a/crates/web-sys/src/features/gen_AudioEncoderSupport.rs +++ b/crates/web-sys/src/features/gen_AudioEncoderSupport.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderSupport)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioEncoderSupport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoderSupport` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioListener.rs b/crates/web-sys/src/features/gen_AudioListener.rs index 1dfdfbeea01..1594de88813 100644 --- a/crates/web-sys/src/features/gen_AudioListener.rs +++ b/crates/web-sys/src/features/gen_AudioListener.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioListener , typescript_type = "AudioListener")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioListener", + typescript_type = "AudioListener" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioListener` class."] #[doc = ""] @@ -11,35 +15,64 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub type AudioListener; - # [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = dopplerFactor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioListener", + js_name = "dopplerFactor" + )] #[doc = "Getter for the `dopplerFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn doppler_factor(this: &AudioListener) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = dopplerFactor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioListener", + js_name = "dopplerFactor" + )] #[doc = "Setter for the `dopplerFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_doppler_factor(this: &AudioListener, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = speedOfSound)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioListener", + js_name = "speedOfSound" + )] #[doc = "Getter for the `speedOfSound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn speed_of_sound(this: &AudioListener) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = speedOfSound)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioListener", + js_name = "speedOfSound" + )] #[doc = "Setter for the `speedOfSound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_speed_of_sound(this: &AudioListener, value: f64); - # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setOrientation)] + #[wasm_bindgen( + method, + structural, + js_class = "AudioListener", + js_name = "setOrientation" + )] #[doc = "The `setOrientation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation)"] @@ -54,14 +87,24 @@ extern "C" { y_up: f64, z_up: f64, ); - # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setPosition)] + #[wasm_bindgen( + method, + structural, + js_class = "AudioListener", + js_name = "setPosition" + )] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_position(this: &AudioListener, x: f64, y: f64, z: f64); - # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setVelocity)] + #[wasm_bindgen( + method, + structural, + js_class = "AudioListener", + js_name = "setVelocity" + )] #[doc = "The `setVelocity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setVelocity)"] diff --git a/crates/web-sys/src/features/gen_AudioNode.rs b/crates/web-sys/src/features/gen_AudioNode.rs index bec7aa9393e..580ba2a4b1a 100644 --- a/crates/web-sys/src/features/gen_AudioNode.rs +++ b/crates/web-sys/src/features/gen_AudioNode.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioNode , typescript_type = "AudioNode")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioNode", + typescript_type = "AudioNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioNode` class."] #[doc = ""] @@ -12,35 +17,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub type AudioNode; #[cfg(feature = "BaseAudioContext")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = context)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioNode", + js_name = "context" + )] #[doc = "Getter for the `context` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/context)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `BaseAudioContext`*"] pub fn context(this: &AudioNode) -> BaseAudioContext; - # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfInputs)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioNode", + js_name = "numberOfInputs" + )] #[doc = "Getter for the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfInputs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn number_of_inputs(this: &AudioNode) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfOutputs)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioNode", + js_name = "numberOfOutputs" + )] #[doc = "Getter for the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfOutputs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn number_of_outputs(this: &AudioNode) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioNode", + js_name = "channelCount" + )] #[doc = "Getter for the `channelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn channel_count(this: &AudioNode) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCount)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioNode", + js_name = "channelCount" + )] #[doc = "Setter for the `channelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"] @@ -48,7 +83,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn set_channel_count(this: &AudioNode, value: u32); #[cfg(feature = "ChannelCountMode")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCountMode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioNode", + js_name = "channelCountMode" + )] #[doc = "Getter for the `channelCountMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"] @@ -56,7 +97,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"] pub fn channel_count_mode(this: &AudioNode) -> ChannelCountMode; #[cfg(feature = "ChannelCountMode")] - # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCountMode)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioNode", + js_name = "channelCountMode" + )] #[doc = "Setter for the `channelCountMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"] @@ -64,7 +111,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"] pub fn set_channel_count_mode(this: &AudioNode, value: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelInterpretation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioNode", + js_name = "channelInterpretation" + )] #[doc = "Getter for the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"] @@ -72,14 +125,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"] pub fn channel_interpretation(this: &AudioNode) -> ChannelInterpretation; #[cfg(feature = "ChannelInterpretation")] - # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelInterpretation)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioNode", + js_name = "channelInterpretation" + )] #[doc = "Setter for the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"] pub fn set_channel_interpretation(this: &AudioNode, value: ChannelInterpretation); - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] + #[wasm_bindgen(catch, method, structural, js_class = "AudioNode", js_name = "connect")] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] @@ -89,7 +148,7 @@ extern "C" { this: &AudioNode, destination: &AudioNode, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] + #[wasm_bindgen(catch, method, structural, js_class = "AudioNode", js_name = "connect")] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] @@ -100,7 +159,7 @@ extern "C" { destination: &AudioNode, output: u32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] + #[wasm_bindgen(catch, method, structural, js_class = "AudioNode", js_name = "connect")] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] @@ -113,7 +172,7 @@ extern "C" { input: u32, ) -> Result; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] + #[wasm_bindgen(catch, method, structural, js_class = "AudioNode", js_name = "connect")] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] @@ -124,7 +183,7 @@ extern "C" { destination: &AudioParam, ) -> Result<(), JsValue>; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] + #[wasm_bindgen(catch, method, structural, js_class = "AudioNode", js_name = "connect")] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] @@ -135,21 +194,39 @@ extern "C" { destination: &AudioParam, output: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioNode", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn disconnect(this: &AudioNode) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioNode", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn disconnect_with_output(this: &AudioNode, output: u32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioNode", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] @@ -159,7 +236,13 @@ extern "C" { this: &AudioNode, destination: &AudioNode, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioNode", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] @@ -170,7 +253,13 @@ extern "C" { destination: &AudioNode, output: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioNode", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] @@ -183,7 +272,13 @@ extern "C" { input: u32, ) -> Result<(), JsValue>; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioNode", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] @@ -194,7 +289,13 @@ extern "C" { destination: &AudioParam, ) -> Result<(), JsValue>; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioNode", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] diff --git a/crates/web-sys/src/features/gen_AudioNodeOptions.rs b/crates/web-sys/src/features/gen_AudioNodeOptions.rs index b898ea3feee..02e07ef90c7 100644 --- a/crates/web-sys/src/features/gen_AudioNodeOptions.rs +++ b/crates/web-sys/src/features/gen_AudioNodeOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioNodeOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioNodeOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioNodeOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioParam.rs b/crates/web-sys/src/features/gen_AudioParam.rs index 6cd0e1cd6b7..55fb76fcfa7 100644 --- a/crates/web-sys/src/features/gen_AudioParam.rs +++ b/crates/web-sys/src/features/gen_AudioParam.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioParam , typescript_type = "AudioParam")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioParam", + typescript_type = "AudioParam" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioParam` class."] #[doc = ""] @@ -11,42 +15,66 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub type AudioParam; - # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = value)] + #[wasm_bindgen(structural, method, getter, js_class = "AudioParam", 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/AudioParam/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn value(this: &AudioParam) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "AudioParam" , js_name = value)] + #[wasm_bindgen(structural, method, setter, js_class = "AudioParam", js_name = "value")] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn set_value(this: &AudioParam, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = defaultValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioParam", + 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/AudioParam/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn default_value(this: &AudioParam) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = minValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioParam", + js_name = "minValue" + )] #[doc = "Getter for the `minValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/minValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn min_value(this: &AudioParam) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = maxValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioParam", + js_name = "maxValue" + )] #[doc = "Getter for the `maxValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/maxValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn max_value(this: &AudioParam) -> f32; - # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = cancelScheduledValues)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioParam", + js_name = "cancelScheduledValues" + )] #[doc = "The `cancelScheduledValues()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/cancelScheduledValues)"] @@ -56,7 +84,13 @@ extern "C" { this: &AudioParam, start_time: f64, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = exponentialRampToValueAtTime)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioParam", + js_name = "exponentialRampToValueAtTime" + )] #[doc = "The `exponentialRampToValueAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/exponentialRampToValueAtTime)"] @@ -67,7 +101,13 @@ extern "C" { value: f32, end_time: f64, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = linearRampToValueAtTime)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioParam", + js_name = "linearRampToValueAtTime" + )] #[doc = "The `linearRampToValueAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/linearRampToValueAtTime)"] @@ -78,7 +118,13 @@ extern "C" { value: f32, end_time: f64, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setTargetAtTime)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioParam", + js_name = "setTargetAtTime" + )] #[doc = "The `setTargetAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setTargetAtTime)"] @@ -90,7 +136,13 @@ extern "C" { start_time: f64, time_constant: f64, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueAtTime)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioParam", + js_name = "setValueAtTime" + )] #[doc = "The `setValueAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueAtTime)"] @@ -101,7 +153,13 @@ extern "C" { value: f32, start_time: f64, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueCurveAtTime)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioParam", + js_name = "setValueCurveAtTime" + )] #[doc = "The `setValueCurveAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueCurveAtTime)"] diff --git a/crates/web-sys/src/features/gen_AudioParamMap.rs b/crates/web-sys/src/features/gen_AudioParamMap.rs index 02c3953081d..1f62bcd97de 100644 --- a/crates/web-sys/src/features/gen_AudioParamMap.rs +++ b/crates/web-sys/src/features/gen_AudioParamMap.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioParamMap , typescript_type = "AudioParamMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioParamMap", + typescript_type = "AudioParamMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioParamMap` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioProcessingEvent.rs b/crates/web-sys/src/features/gen_AudioProcessingEvent.rs index e1ed4bb018c..9675c8ca151 100644 --- a/crates/web-sys/src/features/gen_AudioProcessingEvent.rs +++ b/crates/web-sys/src/features/gen_AudioProcessingEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AudioProcessingEvent , typescript_type = "AudioProcessingEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "AudioProcessingEvent", + typescript_type = "AudioProcessingEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioProcessingEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"] pub type AudioProcessingEvent; - # [wasm_bindgen (structural , method , getter , js_class = "AudioProcessingEvent" , js_name = playbackTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioProcessingEvent", + js_name = "playbackTime" + )] #[doc = "Getter for the `playbackTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/playbackTime)"] @@ -19,7 +30,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"] pub fn playback_time(this: &AudioProcessingEvent) -> f64; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = inputBuffer)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "AudioProcessingEvent", + js_name = "inputBuffer" + )] #[doc = "Getter for the `inputBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/inputBuffer)"] @@ -27,7 +45,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"] pub fn input_buffer(this: &AudioProcessingEvent) -> Result; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = outputBuffer)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "AudioProcessingEvent", + js_name = "outputBuffer" + )] #[doc = "Getter for the `outputBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/outputBuffer)"] diff --git a/crates/web-sys/src/features/gen_AudioScheduledSourceNode.rs b/crates/web-sys/src/features/gen_AudioScheduledSourceNode.rs index 5c18efeed31..0898a0c3a33 100644 --- a/crates/web-sys/src/features/gen_AudioScheduledSourceNode.rs +++ b/crates/web-sys/src/features/gen_AudioScheduledSourceNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioScheduledSourceNode , typescript_type = "AudioScheduledSourceNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioScheduledSourceNode", + typescript_type = "AudioScheduledSourceNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioScheduledSourceNode` class."] #[doc = ""] @@ -13,7 +19,13 @@ extern "C" { #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] pub type AudioScheduledSourceNode; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioScheduledSourceNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioScheduledSourceNode", + js_name = "onended" + )] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"] @@ -21,7 +33,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn onended(this: &AudioScheduledSourceNode) -> Option<::js_sys::Function>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] - # [wasm_bindgen (structural , method , setter , js_class = "AudioScheduledSourceNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioScheduledSourceNode", + js_name = "onended" + )] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"] @@ -29,7 +47,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn set_onended(this: &AudioScheduledSourceNode, value: Option<&::js_sys::Function>); #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioScheduledSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"] @@ -37,7 +61,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn start(this: &AudioScheduledSourceNode) -> Result<(), JsValue>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioScheduledSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"] @@ -45,7 +75,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn start_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioScheduledSourceNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"] @@ -53,7 +89,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn stop(this: &AudioScheduledSourceNode) -> Result<(), JsValue>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] - # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "AudioScheduledSourceNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"] diff --git a/crates/web-sys/src/features/gen_AudioStreamTrack.rs b/crates/web-sys/src/features/gen_AudioStreamTrack.rs index 3c6eed63102..7426222e3b3 100644 --- a/crates/web-sys/src/features/gen_AudioStreamTrack.rs +++ b/crates/web-sys/src/features/gen_AudioStreamTrack.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioStreamTrack , typescript_type = "AudioStreamTrack")] + #[wasm_bindgen( + extends = "MediaStreamTrack", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioStreamTrack", + typescript_type = "AudioStreamTrack" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioStreamTrack` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioTrack.rs b/crates/web-sys/src/features/gen_AudioTrack.rs index 7e1c9600dc2..99da996c5d1 100644 --- a/crates/web-sys/src/features/gen_AudioTrack.rs +++ b/crates/web-sys/src/features/gen_AudioTrack.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioTrack , typescript_type = "AudioTrack")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioTrack", + typescript_type = "AudioTrack" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioTrack` class."] #[doc = ""] @@ -11,42 +15,60 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub type AudioTrack; - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "AudioTrack", 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/AudioTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn id(this: &AudioTrack) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = kind)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = label)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = language)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = enabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioTrack", + js_name = "enabled" + )] #[doc = "Getter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn enabled(this: &AudioTrack) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "AudioTrack" , js_name = enabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioTrack", + js_name = "enabled" + )] #[doc = "Setter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"] @@ -54,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn set_enabled(this: &AudioTrack, value: bool); #[cfg(feature = "SourceBuffer")] - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = sourceBuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioTrack", + js_name = "sourceBuffer" + )] #[doc = "Getter for the `sourceBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/sourceBuffer)"] diff --git a/crates/web-sys/src/features/gen_AudioTrackList.rs b/crates/web-sys/src/features/gen_AudioTrackList.rs index 44632432c6c..d8013dea301 100644 --- a/crates/web-sys/src/features/gen_AudioTrackList.rs +++ b/crates/web-sys/src/features/gen_AudioTrackList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioTrackList , typescript_type = "AudioTrackList")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioTrackList", + typescript_type = "AudioTrackList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioTrackList` class."] #[doc = ""] @@ -11,49 +16,91 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub type AudioTrackList; - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioTrackList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn length(this: &AudioTrackList) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioTrackList", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn onchange(this: &AudioTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioTrackList", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn set_onchange(this: &AudioTrackList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioTrackList", + js_name = "onaddtrack" + )] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn onaddtrack(this: &AudioTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioTrackList", + js_name = "onaddtrack" + )] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn set_onaddtrack(this: &AudioTrackList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioTrackList", + js_name = "onremovetrack" + )] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn onremovetrack(this: &AudioTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioTrackList", + js_name = "onremovetrack" + )] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"] @@ -61,7 +108,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn set_onremovetrack(this: &AudioTrackList, value: Option<&::js_sys::Function>); #[cfg(feature = "AudioTrack")] - # [wasm_bindgen (method , structural , js_class = "AudioTrackList" , js_name = getTrackById)] + #[wasm_bindgen( + method, + structural, + js_class = "AudioTrackList", + js_name = "getTrackById" + )] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/getTrackById)"] diff --git a/crates/web-sys/src/features/gen_AudioWorklet.rs b/crates/web-sys/src/features/gen_AudioWorklet.rs index c160c5004a2..9c35cc7db93 100644 --- a/crates/web-sys/src/features/gen_AudioWorklet.rs +++ b/crates/web-sys/src/features/gen_AudioWorklet.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Worklet , extends = :: js_sys :: Object , js_name = AudioWorklet , typescript_type = "AudioWorklet")] + #[wasm_bindgen( + extends = "Worklet", + extends = "::js_sys::Object", + js_name = "AudioWorklet", + typescript_type = "AudioWorklet" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorklet` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioWorkletGlobalScope.rs b/crates/web-sys/src/features/gen_AudioWorkletGlobalScope.rs index 4057aeaa10a..a3e7a2971c0 100644 --- a/crates/web-sys/src/features/gen_AudioWorkletGlobalScope.rs +++ b/crates/web-sys/src/features/gen_AudioWorkletGlobalScope.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = AudioWorkletGlobalScope , typescript_type = "AudioWorkletGlobalScope")] + #[wasm_bindgen( + extends = "WorkletGlobalScope", + extends = "::js_sys::Object", + js_name = "AudioWorkletGlobalScope", + typescript_type = "AudioWorkletGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletGlobalScope` class."] #[doc = ""] @@ -11,28 +16,51 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub type AudioWorkletGlobalScope; - # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentFrame)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioWorkletGlobalScope", + js_name = "currentFrame" + )] #[doc = "Getter for the `currentFrame` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub fn current_frame(this: &AudioWorkletGlobalScope) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioWorkletGlobalScope", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub fn current_time(this: &AudioWorkletGlobalScope) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = sampleRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioWorkletGlobalScope", + js_name = "sampleRate" + )] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub fn sample_rate(this: &AudioWorkletGlobalScope) -> f32; - # [wasm_bindgen (method , structural , js_class = "AudioWorkletGlobalScope" , js_name = registerProcessor)] + #[wasm_bindgen( + method, + structural, + js_class = "AudioWorkletGlobalScope", + js_name = "registerProcessor" + )] #[doc = "The `registerProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)"] diff --git a/crates/web-sys/src/features/gen_AudioWorkletNode.rs b/crates/web-sys/src/features/gen_AudioWorkletNode.rs index 989bab54453..fd6072c435d 100644 --- a/crates/web-sys/src/features/gen_AudioWorkletNode.rs +++ b/crates/web-sys/src/features/gen_AudioWorkletNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioWorkletNode , typescript_type = "AudioWorkletNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "AudioWorkletNode", + typescript_type = "AudioWorkletNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletNode` class."] #[doc = ""] @@ -12,7 +18,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] pub type AudioWorkletNode; #[cfg(feature = "AudioParamMap")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = parameters)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "AudioWorkletNode", + js_name = "parameters" + )] #[doc = "Getter for the `parameters` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/parameters)"] @@ -20,21 +33,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`, `AudioWorkletNode`*"] pub fn parameters(this: &AudioWorkletNode) -> Result; #[cfg(feature = "MessagePort")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = port)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "AudioWorkletNode", + 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/AudioWorkletNode/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `MessagePort`*"] pub fn port(this: &AudioWorkletNode) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletNode" , js_name = onprocessorerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AudioWorkletNode", + js_name = "onprocessorerror" + )] #[doc = "Getter for the `onprocessorerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] pub fn onprocessorerror(this: &AudioWorkletNode) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "AudioWorkletNode" , js_name = onprocessorerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "AudioWorkletNode", + js_name = "onprocessorerror" + )] #[doc = "Setter for the `onprocessorerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"] diff --git a/crates/web-sys/src/features/gen_AudioWorkletNodeOptions.rs b/crates/web-sys/src/features/gen_AudioWorkletNodeOptions.rs index e97330a3628..54d5ec8e2e4 100644 --- a/crates/web-sys/src/features/gen_AudioWorkletNodeOptions.rs +++ b/crates/web-sys/src/features/gen_AudioWorkletNodeOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioWorkletNodeOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AudioWorkletNodeOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletNodeOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioWorkletProcessor.rs b/crates/web-sys/src/features/gen_AudioWorkletProcessor.rs index 8a537cd1acb..19bd73cb076 100644 --- a/crates/web-sys/src/features/gen_AudioWorkletProcessor.rs +++ b/crates/web-sys/src/features/gen_AudioWorkletProcessor.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioWorkletProcessor , typescript_type = "AudioWorkletProcessor")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AudioWorkletProcessor", + typescript_type = "AudioWorkletProcessor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletProcessor` class."] #[doc = ""] @@ -12,7 +16,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`*"] pub type AudioWorkletProcessor; #[cfg(feature = "MessagePort")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletProcessor" , js_name = port)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "AudioWorkletProcessor", + 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/AudioWorkletProcessor/port)"] diff --git a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs index cde43d20c47..6eefdbf46b7 100644 --- a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs +++ b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientInputs)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AuthenticationExtensionsClientInputs" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsClientInputs` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientOutputs.rs b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientOutputs.rs index 4b59b32141d..a9571561403 100644 --- a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientOutputs.rs +++ b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientOutputs.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientOutputs)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AuthenticationExtensionsClientOutputs" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsClientOutputs` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AuthenticatorAssertionResponse.rs b/crates/web-sys/src/features/gen_AuthenticatorAssertionResponse.rs index dd6e10e7f5f..76483dad84d 100644 --- a/crates/web-sys/src/features/gen_AuthenticatorAssertionResponse.rs +++ b/crates/web-sys/src/features/gen_AuthenticatorAssertionResponse.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAssertionResponse , typescript_type = "AuthenticatorAssertionResponse")] + #[wasm_bindgen( + extends = "AuthenticatorResponse", + extends = "::js_sys::Object", + js_name = "AuthenticatorAssertionResponse", + typescript_type = "AuthenticatorAssertionResponse" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorAssertionResponse` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] pub type AuthenticatorAssertionResponse; - # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = authenticatorData)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AuthenticatorAssertionResponse", + js_name = "authenticatorData" + )] #[doc = "Getter for the `authenticatorData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] pub fn authenticator_data(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer; - # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = signature)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AuthenticatorAssertionResponse", + js_name = "signature" + )] #[doc = "Getter for the `signature` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/signature)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] pub fn signature(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer; - # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = userHandle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AuthenticatorAssertionResponse", + js_name = "userHandle" + )] #[doc = "Getter for the `userHandle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/userHandle)"] diff --git a/crates/web-sys/src/features/gen_AuthenticatorAttestationResponse.rs b/crates/web-sys/src/features/gen_AuthenticatorAttestationResponse.rs index 364ebc23bd5..80bb365576c 100644 --- a/crates/web-sys/src/features/gen_AuthenticatorAttestationResponse.rs +++ b/crates/web-sys/src/features/gen_AuthenticatorAttestationResponse.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAttestationResponse , typescript_type = "AuthenticatorAttestationResponse")] + #[wasm_bindgen( + extends = "AuthenticatorResponse", + extends = "::js_sys::Object", + js_name = "AuthenticatorAttestationResponse", + typescript_type = "AuthenticatorAttestationResponse" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorAttestationResponse` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] pub type AuthenticatorAttestationResponse; - # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAttestationResponse" , js_name = attestationObject)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AuthenticatorAttestationResponse", + js_name = "attestationObject" + )] #[doc = "Getter for the `attestationObject` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)"] diff --git a/crates/web-sys/src/features/gen_AuthenticatorResponse.rs b/crates/web-sys/src/features/gen_AuthenticatorResponse.rs index 2aa5468b2d8..fe9a42c0ff6 100644 --- a/crates/web-sys/src/features/gen_AuthenticatorResponse.rs +++ b/crates/web-sys/src/features/gen_AuthenticatorResponse.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorResponse , typescript_type = "AuthenticatorResponse")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AuthenticatorResponse", + typescript_type = "AuthenticatorResponse" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorResponse` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`*"] pub type AuthenticatorResponse; - # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorResponse" , js_name = clientDataJSON)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "AuthenticatorResponse", + js_name = "clientDataJSON" + )] #[doc = "Getter for the `clientDataJSON` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorResponse/clientDataJSON)"] diff --git a/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs b/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs index 1e4b5e90088..fdddf9299b2 100644 --- a/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs +++ b/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorSelectionCriteria)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "AuthenticatorSelectionCriteria" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorSelectionCriteria` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AutocompleteInfo.rs b/crates/web-sys/src/features/gen_AutocompleteInfo.rs index 42150b51bd2..7156a50fbc1 100644 --- a/crates/web-sys/src/features/gen_AutocompleteInfo.rs +++ b/crates/web-sys/src/features/gen_AutocompleteInfo.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AutocompleteInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "AutocompleteInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AutocompleteInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BarProp.rs b/crates/web-sys/src/features/gen_BarProp.rs index de029dcbcff..9c56c81e83b 100644 --- a/crates/web-sys/src/features/gen_BarProp.rs +++ b/crates/web-sys/src/features/gen_BarProp.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BarProp , typescript_type = "BarProp")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BarProp", + typescript_type = "BarProp" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BarProp` class."] #[doc = ""] @@ -11,14 +15,28 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] pub type BarProp; - # [wasm_bindgen (structural , catch , method , getter , js_class = "BarProp" , js_name = visible)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "BarProp", + js_name = "visible" + )] #[doc = "Getter for the `visible` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] pub fn visible(this: &BarProp) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "BarProp" , js_name = visible)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "BarProp", + js_name = "visible" + )] #[doc = "Setter for the `visible` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] diff --git a/crates/web-sys/src/features/gen_BaseAudioContext.rs b/crates/web-sys/src/features/gen_BaseAudioContext.rs index 4fa90216942..2fa2c54233f 100644 --- a/crates/web-sys/src/features/gen_BaseAudioContext.rs +++ b/crates/web-sys/src/features/gen_BaseAudioContext.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BaseAudioContext , typescript_type = "BaseAudioContext")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BaseAudioContext", + typescript_type = "BaseAudioContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BaseAudioContext` class."] #[doc = ""] @@ -14,7 +19,13 @@ extern "C" { pub type BaseAudioContext; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioDestinationNode")] - # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = destination)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BaseAudioContext", + js_name = "destination" + )] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/destination)"] @@ -22,7 +33,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `BaseAudioContext`*"] pub fn destination(this: &BaseAudioContext) -> AudioDestinationNode; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = sampleRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BaseAudioContext", + js_name = "sampleRate" + )] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate)"] @@ -30,7 +47,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn sample_rate(this: &BaseAudioContext) -> f32; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BaseAudioContext", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/currentTime)"] @@ -39,7 +62,13 @@ extern "C" { pub fn current_time(this: &BaseAudioContext) -> f64; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioListener")] - # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = listener)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BaseAudioContext", + js_name = "listener" + )] #[doc = "Getter for the `listener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/listener)"] @@ -48,7 +77,13 @@ extern "C" { pub fn listener(this: &BaseAudioContext) -> AudioListener; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioContextState")] - # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BaseAudioContext", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/state)"] @@ -57,7 +92,14 @@ extern "C" { pub fn state(this: &BaseAudioContext) -> AudioContextState; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioWorklet")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "BaseAudioContext" , js_name = audioWorklet)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "BaseAudioContext", + js_name = "audioWorklet" + )] #[doc = "Getter for the `audioWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/audioWorklet)"] @@ -65,7 +107,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `BaseAudioContext`*"] pub fn audio_worklet(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BaseAudioContext", + js_name = "onstatechange" + )] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"] @@ -73,7 +121,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn onstatechange(this: &BaseAudioContext) -> Option<::js_sys::Function>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (structural , method , setter , js_class = "BaseAudioContext" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BaseAudioContext", + js_name = "onstatechange" + )] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"] @@ -82,7 +136,13 @@ extern "C" { pub fn set_onstatechange(this: &BaseAudioContext, value: Option<&::js_sys::Function>); #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AnalyserNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createAnalyser)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createAnalyser" + )] #[doc = "The `createAnalyser()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createAnalyser)"] @@ -91,7 +151,13 @@ extern "C" { pub fn create_analyser(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "BiquadFilterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBiquadFilter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createBiquadFilter" + )] #[doc = "The `createBiquadFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBiquadFilter)"] @@ -100,7 +166,13 @@ extern "C" { pub fn create_biquad_filter(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createBuffer" + )] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBuffer)"] @@ -114,7 +186,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioBufferSourceNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBufferSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createBufferSource" + )] #[doc = "The `createBufferSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBufferSource)"] @@ -123,7 +201,13 @@ extern "C" { pub fn create_buffer_source(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelMergerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createChannelMerger" + )] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"] @@ -132,7 +216,13 @@ extern "C" { pub fn create_channel_merger(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelMergerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createChannelMerger" + )] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"] @@ -144,7 +234,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelSplitterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createChannelSplitter" + )] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"] @@ -154,7 +250,13 @@ extern "C" { -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelSplitterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createChannelSplitter" + )] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"] @@ -166,7 +268,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ConstantSourceNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConstantSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createConstantSource" + )] #[doc = "The `createConstantSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConstantSource)"] @@ -175,7 +283,13 @@ extern "C" { pub fn create_constant_source(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ConvolverNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConvolver)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createConvolver" + )] #[doc = "The `createConvolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConvolver)"] @@ -184,7 +298,13 @@ extern "C" { pub fn create_convolver(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "DelayNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createDelay" + )] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"] @@ -193,7 +313,13 @@ extern "C" { pub fn create_delay(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "DelayNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createDelay" + )] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"] @@ -205,7 +331,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "DynamicsCompressorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDynamicsCompressor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createDynamicsCompressor" + )] #[doc = "The `createDynamicsCompressor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDynamicsCompressor)"] @@ -216,7 +348,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "GainNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createGain)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createGain" + )] #[doc = "The `createGain()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createGain)"] @@ -225,7 +363,13 @@ extern "C" { pub fn create_gain(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "IirFilterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createIIRFilter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createIIRFilter" + )] #[doc = "The `createIIRFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createIIRFilter)"] @@ -238,7 +382,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "OscillatorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createOscillator)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createOscillator" + )] #[doc = "The `createOscillator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createOscillator)"] @@ -247,7 +397,13 @@ extern "C" { pub fn create_oscillator(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "PannerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPanner)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createPanner" + )] #[doc = "The `createPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPanner)"] @@ -256,7 +412,13 @@ extern "C" { pub fn create_panner(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "PeriodicWave")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createPeriodicWave" + )] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"] @@ -269,7 +431,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createPeriodicWave" + )] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"] @@ -283,7 +451,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] @@ -293,7 +467,13 @@ extern "C" { -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] @@ -305,7 +485,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] @@ -318,7 +504,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] @@ -332,7 +524,13 @@ extern "C" { ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "StereoPannerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createStereoPanner)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createStereoPanner" + )] #[doc = "The `createStereoPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createStereoPanner)"] @@ -341,7 +539,13 @@ extern "C" { pub fn create_stereo_panner(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "WaveShaperNode")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createWaveShaper)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "createWaveShaper" + )] #[doc = "The `createWaveShaper()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createWaveShaper)"] @@ -349,7 +553,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*"] pub fn create_wave_shaper(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] @@ -360,7 +570,13 @@ extern "C" { audio_data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] @@ -372,7 +588,13 @@ extern "C" { success_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] @@ -385,7 +607,13 @@ extern "C" { error_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] - # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = resume)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BaseAudioContext", + js_name = "resume" + )] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/resume)"] diff --git a/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs b/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs index eba64eee23b..0a7fb0132e1 100644 --- a/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs +++ b/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BaseComputedKeyframe)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BaseComputedKeyframe")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BaseComputedKeyframe` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BaseKeyframe.rs b/crates/web-sys/src/features/gen_BaseKeyframe.rs index aef90128463..542c72bf155 100644 --- a/crates/web-sys/src/features/gen_BaseKeyframe.rs +++ b/crates/web-sys/src/features/gen_BaseKeyframe.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BaseKeyframe)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BaseKeyframe")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BaseKeyframe` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BasePropertyIndexedKeyframe.rs b/crates/web-sys/src/features/gen_BasePropertyIndexedKeyframe.rs index b6dbdf025e1..58df2dffd33 100644 --- a/crates/web-sys/src/features/gen_BasePropertyIndexedKeyframe.rs +++ b/crates/web-sys/src/features/gen_BasePropertyIndexedKeyframe.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasePropertyIndexedKeyframe)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BasePropertyIndexedKeyframe")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BasePropertyIndexedKeyframe` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BasicCardRequest.rs b/crates/web-sys/src/features/gen_BasicCardRequest.rs index a0e60aa8c74..e83355c4770 100644 --- a/crates/web-sys/src/features/gen_BasicCardRequest.rs +++ b/crates/web-sys/src/features/gen_BasicCardRequest.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasicCardRequest)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BasicCardRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BasicCardRequest` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BasicCardResponse.rs b/crates/web-sys/src/features/gen_BasicCardResponse.rs index b005d718c06..541df74e7c5 100644 --- a/crates/web-sys/src/features/gen_BasicCardResponse.rs +++ b/crates/web-sys/src/features/gen_BasicCardResponse.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasicCardResponse)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BasicCardResponse")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BasicCardResponse` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BatteryManager.rs b/crates/web-sys/src/features/gen_BatteryManager.rs index 1098d5c1ff4..8e3c4b32aa9 100644 --- a/crates/web-sys/src/features/gen_BatteryManager.rs +++ b/crates/web-sys/src/features/gen_BatteryManager.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BatteryManager , typescript_type = "BatteryManager")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BatteryManager", + typescript_type = "BatteryManager" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BatteryManager` class."] #[doc = ""] @@ -11,84 +16,156 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub type BatteryManager; - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = charging)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "charging" + )] #[doc = "Getter for the `charging` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/charging)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn charging(this: &BatteryManager) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = chargingTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "chargingTime" + )] #[doc = "Getter for the `chargingTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/chargingTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn charging_time(this: &BatteryManager) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = dischargingTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "dischargingTime" + )] #[doc = "Getter for the `dischargingTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/dischargingTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn discharging_time(this: &BatteryManager) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = level)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "level" + )] #[doc = "Getter for the `level` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/level)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn level(this: &BatteryManager) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onchargingchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "onchargingchange" + )] #[doc = "Getter for the `onchargingchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn onchargingchange(this: &BatteryManager) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onchargingchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BatteryManager", + js_name = "onchargingchange" + )] #[doc = "Setter for the `onchargingchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn set_onchargingchange(this: &BatteryManager, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onchargingtimechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "onchargingtimechange" + )] #[doc = "Getter for the `onchargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn onchargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onchargingtimechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BatteryManager", + js_name = "onchargingtimechange" + )] #[doc = "Setter for the `onchargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn set_onchargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = ondischargingtimechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "ondischargingtimechange" + )] #[doc = "Getter for the `ondischargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn ondischargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = ondischargingtimechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BatteryManager", + js_name = "ondischargingtimechange" + )] #[doc = "Setter for the `ondischargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn set_ondischargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onlevelchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BatteryManager", + js_name = "onlevelchange" + )] #[doc = "Getter for the `onlevelchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn onlevelchange(this: &BatteryManager) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onlevelchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BatteryManager", + js_name = "onlevelchange" + )] #[doc = "Setter for the `onlevelchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"] diff --git a/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs b/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs index 981323ed0ae..ed545bfcb64 100644 --- a/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs +++ b/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = BeforeUnloadEvent , typescript_type = "BeforeUnloadEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "BeforeUnloadEvent", + typescript_type = "BeforeUnloadEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BeforeUnloadEvent` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] pub type BeforeUnloadEvent; - # [wasm_bindgen (structural , method , getter , js_class = "BeforeUnloadEvent" , js_name = returnValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BeforeUnloadEvent", + js_name = "returnValue" + )] #[doc = "Getter for the `returnValue` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "BeforeUnloadEvent" , js_name = returnValue)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BeforeUnloadEvent", + js_name = "returnValue" + )] #[doc = "Setter for the `returnValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent/returnValue)"] diff --git a/crates/web-sys/src/features/gen_BiquadFilterNode.rs b/crates/web-sys/src/features/gen_BiquadFilterNode.rs index 5c0dd01b70c..64a7107b14a 100644 --- a/crates/web-sys/src/features/gen_BiquadFilterNode.rs +++ b/crates/web-sys/src/features/gen_BiquadFilterNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = BiquadFilterNode , typescript_type = "BiquadFilterNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BiquadFilterNode", + typescript_type = "BiquadFilterNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BiquadFilterNode` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`*"] pub type BiquadFilterNode; #[cfg(feature = "BiquadFilterType")] - # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BiquadFilterNode", + 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/BiquadFilterNode/type)"] @@ -20,7 +32,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"] pub fn type_(this: &BiquadFilterNode) -> BiquadFilterType; #[cfg(feature = "BiquadFilterType")] - # [wasm_bindgen (structural , method , setter , js_class = "BiquadFilterNode" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BiquadFilterNode", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/type)"] @@ -28,7 +46,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"] pub fn set_type(this: &BiquadFilterNode, value: BiquadFilterType); #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = frequency)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BiquadFilterNode", + js_name = "frequency" + )] #[doc = "Getter for the `frequency` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/frequency)"] @@ -36,7 +60,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] pub fn frequency(this: &BiquadFilterNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = detune)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BiquadFilterNode", + js_name = "detune" + )] #[doc = "Getter for the `detune` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/detune)"] @@ -44,7 +74,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] pub fn detune(this: &BiquadFilterNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = Q)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BiquadFilterNode", + js_name = "Q" + )] #[doc = "Getter for the `Q` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/Q)"] @@ -52,7 +88,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] pub fn q(this: &BiquadFilterNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = gain)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BiquadFilterNode", + js_name = "gain" + )] #[doc = "Getter for the `gain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/gain)"] @@ -78,7 +120,12 @@ extern "C" { context: &BaseAudioContext, options: &BiquadFilterOptions, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "BiquadFilterNode" , js_name = getFrequencyResponse)] + #[wasm_bindgen( + method, + structural, + js_class = "BiquadFilterNode", + js_name = "getFrequencyResponse" + )] #[doc = "The `getFrequencyResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/getFrequencyResponse)"] diff --git a/crates/web-sys/src/features/gen_BiquadFilterOptions.rs b/crates/web-sys/src/features/gen_BiquadFilterOptions.rs index af051cb2cf1..557ca93142a 100644 --- a/crates/web-sys/src/features/gen_BiquadFilterOptions.rs +++ b/crates/web-sys/src/features/gen_BiquadFilterOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BiquadFilterOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BiquadFilterOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BiquadFilterOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Blob.rs b/crates/web-sys/src/features/gen_Blob.rs index 3300b57d67c..5d44313a1dd 100644 --- a/crates/web-sys/src/features/gen_Blob.rs +++ b/crates/web-sys/src/features/gen_Blob.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Blob , typescript_type = "Blob")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Blob", + typescript_type = "Blob" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Blob` class."] #[doc = ""] @@ -11,14 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub type Blob; - # [wasm_bindgen (structural , method , getter , js_class = "Blob" , js_name = size)] + #[wasm_bindgen(structural, method, getter, js_class = "Blob", js_name = "size")] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn size(this: &Blob) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "Blob" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "Blob", 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/Blob/type)"] @@ -108,63 +112,63 @@ extern "C" { blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = arrayBuffer)] + #[wasm_bindgen(method, structural, js_class = "Blob", js_name = "arrayBuffer")] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn array_buffer(this: &Blob) -> ::js_sys::Promise; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice(this: &Blob) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32(this: &Blob, start: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64(this: &Blob, start: f64) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_i32(this: &Blob, start: i32, end: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_i32(this: &Blob, start: f64, end: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_f64(this: &Blob, start: i32, end: f64) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_f64(this: &Blob, start: f64, end: f64) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] @@ -176,7 +180,7 @@ extern "C" { end: i32, content_type: &str, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] @@ -188,7 +192,7 @@ extern "C" { end: i32, content_type: &str, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] @@ -200,7 +204,7 @@ extern "C" { end: f64, content_type: &str, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] + #[wasm_bindgen(catch, method, structural, js_class = "Blob", js_name = "slice")] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] @@ -213,14 +217,14 @@ extern "C" { content_type: &str, ) -> Result; #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = stream)] + #[wasm_bindgen(method, structural, js_class = "Blob", js_name = "stream")] #[doc = "The `stream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/stream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `ReadableStream`*"] pub fn stream(this: &Blob) -> ReadableStream; - # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = text)] + #[wasm_bindgen(method, structural, js_class = "Blob", js_name = "text")] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/text)"] diff --git a/crates/web-sys/src/features/gen_BlobEvent.rs b/crates/web-sys/src/features/gen_BlobEvent.rs index 2274dde0eb4..689f41373f1 100644 --- a/crates/web-sys/src/features/gen_BlobEvent.rs +++ b/crates/web-sys/src/features/gen_BlobEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = BlobEvent , typescript_type = "BlobEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "BlobEvent", + typescript_type = "BlobEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlobEvent` class."] #[doc = ""] @@ -12,7 +17,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BlobEvent`*"] pub type BlobEvent; #[cfg(feature = "Blob")] - # [wasm_bindgen (structural , method , getter , js_class = "BlobEvent" , js_name = data)] + #[wasm_bindgen(structural, method, getter, js_class = "BlobEvent", 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/BlobEvent/data)"] diff --git a/crates/web-sys/src/features/gen_BlobEventInit.rs b/crates/web-sys/src/features/gen_BlobEventInit.rs index 10d38101338..ee4a0a82257 100644 --- a/crates/web-sys/src/features/gen_BlobEventInit.rs +++ b/crates/web-sys/src/features/gen_BlobEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BlobEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BlobEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlobEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BlobPropertyBag.rs b/crates/web-sys/src/features/gen_BlobPropertyBag.rs index e7d1f6f5a51..2ff29be2a67 100644 --- a/crates/web-sys/src/features/gen_BlobPropertyBag.rs +++ b/crates/web-sys/src/features/gen_BlobPropertyBag.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BlobPropertyBag)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BlobPropertyBag")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlobPropertyBag` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BlockParsingOptions.rs b/crates/web-sys/src/features/gen_BlockParsingOptions.rs index 9e0e4dbee5a..f4e565469af 100644 --- a/crates/web-sys/src/features/gen_BlockParsingOptions.rs +++ b/crates/web-sys/src/features/gen_BlockParsingOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BlockParsingOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BlockParsingOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlockParsingOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Bluetooth.rs b/crates/web-sys/src/features/gen_Bluetooth.rs index 826ee01af10..75c49b1f44a 100644 --- a/crates/web-sys/src/features/gen_Bluetooth.rs +++ b/crates/web-sys/src/features/gen_Bluetooth.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Bluetooth , typescript_type = "Bluetooth")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Bluetooth", + typescript_type = "Bluetooth" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Bluetooth` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Bluetooth; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onavailabilitychanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "onavailabilitychanged" + )] #[doc = "Getter for the `onavailabilitychanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onavailabilitychanged)"] @@ -27,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onavailabilitychanged(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onavailabilitychanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Bluetooth", + js_name = "onavailabilitychanged" + )] #[doc = "Setter for the `onavailabilitychanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onavailabilitychanged)"] @@ -39,7 +56,13 @@ extern "C" { pub fn set_onavailabilitychanged(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = referringDevice)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "referringDevice" + )] #[doc = "Getter for the `referringDevice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/referringDevice)"] @@ -50,7 +73,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn referring_device(this: &Bluetooth) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onadvertisementreceived)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "onadvertisementreceived" + )] #[doc = "Getter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onadvertisementreceived)"] @@ -61,7 +90,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onadvertisementreceived(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onadvertisementreceived)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Bluetooth", + js_name = "onadvertisementreceived" + )] #[doc = "Setter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onadvertisementreceived)"] @@ -72,7 +107,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onadvertisementreceived(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = ongattserverdisconnected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "ongattserverdisconnected" + )] #[doc = "Getter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/ongattserverdisconnected)"] @@ -83,7 +124,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongattserverdisconnected(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = ongattserverdisconnected)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Bluetooth", + js_name = "ongattserverdisconnected" + )] #[doc = "Setter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/ongattserverdisconnected)"] @@ -94,7 +141,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongattserverdisconnected(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/oncharacteristicvaluechanged)"] @@ -105,7 +158,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oncharacteristicvaluechanged(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Bluetooth", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/oncharacteristicvaluechanged)"] @@ -116,7 +175,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oncharacteristicvaluechanged(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onserviceadded)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "onserviceadded" + )] #[doc = "Getter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceadded)"] @@ -127,7 +192,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceadded(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onserviceadded)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Bluetooth", + js_name = "onserviceadded" + )] #[doc = "Setter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceadded)"] @@ -138,7 +209,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceadded(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onservicechanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "onservicechanged" + )] #[doc = "Getter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onservicechanged)"] @@ -149,7 +226,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onservicechanged(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onservicechanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Bluetooth", + js_name = "onservicechanged" + )] #[doc = "Setter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onservicechanged)"] @@ -160,7 +243,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onservicechanged(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onserviceremoved)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Bluetooth", + js_name = "onserviceremoved" + )] #[doc = "Getter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceremoved)"] @@ -171,7 +260,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceremoved(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onserviceremoved)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Bluetooth", + js_name = "onserviceremoved" + )] #[doc = "Setter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceremoved)"] @@ -182,7 +277,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceremoved(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Bluetooth" , js_name = getAvailability)] + #[wasm_bindgen( + method, + structural, + js_class = "Bluetooth", + js_name = "getAvailability" + )] #[doc = "The `getAvailability()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/getAvailability)"] @@ -193,7 +293,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_availability(this: &Bluetooth) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Bluetooth" , js_name = getDevices)] + #[wasm_bindgen(method, structural, js_class = "Bluetooth", js_name = "getDevices")] #[doc = "The `getDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/getDevices)"] @@ -205,7 +305,7 @@ extern "C" { pub fn get_devices(this: &Bluetooth) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RequestDeviceOptions")] - # [wasm_bindgen (method , structural , js_class = "Bluetooth" , js_name = requestDevice)] + #[wasm_bindgen(method, structural, js_class = "Bluetooth", js_name = "requestDevice")] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice)"] diff --git a/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs b/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs index 5919467c2d9..8e7896bbadf 100644 --- a/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs +++ b/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = BluetoothAdvertisingEvent , typescript_type = "BluetoothAdvertisingEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "BluetoothAdvertisingEvent", + typescript_type = "BluetoothAdvertisingEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothAdvertisingEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type BluetoothAdvertisingEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = device)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + js_name = "device" + )] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/device)"] @@ -28,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &BluetoothAdvertisingEvent) -> BluetoothDevice; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = uuids)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + js_name = "uuids" + )] #[doc = "Getter for the `uuids` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/uuids)"] @@ -39,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuids(this: &BluetoothAdvertisingEvent) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + 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/BluetoothAdvertisingEvent/name)"] @@ -50,7 +73,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = appearance)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + js_name = "appearance" + )] #[doc = "Getter for the `appearance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/appearance)"] @@ -61,7 +90,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn appearance(this: &BluetoothAdvertisingEvent) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = txPower)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + js_name = "txPower" + )] #[doc = "Getter for the `txPower` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/txPower)"] @@ -72,7 +107,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tx_power(this: &BluetoothAdvertisingEvent) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = rssi)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + js_name = "rssi" + )] #[doc = "Getter for the `rssi` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/rssi)"] @@ -84,7 +125,13 @@ extern "C" { pub fn rssi(this: &BluetoothAdvertisingEvent) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothManufacturerDataMap")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = manufacturerData)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + js_name = "manufacturerData" + )] #[doc = "Getter for the `manufacturerData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/manufacturerData)"] @@ -96,7 +143,13 @@ extern "C" { pub fn manufacturer_data(this: &BluetoothAdvertisingEvent) -> BluetoothManufacturerDataMap; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothServiceDataMap")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = serviceData)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothAdvertisingEvent", + js_name = "serviceData" + )] #[doc = "Getter for the `serviceData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/serviceData)"] diff --git a/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs b/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs index cee141adc21..3f913dff3a5 100644 --- a/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs +++ b/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothAdvertisingEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothAdvertisingEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothAdvertisingEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothCharacteristicProperties.rs b/crates/web-sys/src/features/gen_BluetoothCharacteristicProperties.rs index 0c301b0309a..fd20f4b1b08 100644 --- a/crates/web-sys/src/features/gen_BluetoothCharacteristicProperties.rs +++ b/crates/web-sys/src/features/gen_BluetoothCharacteristicProperties.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothCharacteristicProperties , typescript_type = "BluetoothCharacteristicProperties")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothCharacteristicProperties", + typescript_type = "BluetoothCharacteristicProperties" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothCharacteristicProperties` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothCharacteristicProperties; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = broadcast)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "broadcast" + )] #[doc = "Getter for the `broadcast` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/broadcast)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn broadcast(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = read)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "read" + )] #[doc = "Getter for the `read` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/read)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = writeWithoutResponse)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "writeWithoutResponse" + )] #[doc = "Getter for the `writeWithoutResponse` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/writeWithoutResponse)"] @@ -49,7 +71,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_without_response(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = write)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "write" + )] #[doc = "Getter for the `write` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/write)"] @@ -60,7 +88,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = notify)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "notify" + )] #[doc = "Getter for the `notify` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/notify)"] @@ -71,7 +105,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn notify(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = indicate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "indicate" + )] #[doc = "Getter for the `indicate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/indicate)"] @@ -82,7 +122,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn indicate(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = authenticatedSignedWrites)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "authenticatedSignedWrites" + )] #[doc = "Getter for the `authenticatedSignedWrites` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/authenticatedSignedWrites)"] @@ -93,7 +139,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn authenticated_signed_writes(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = reliableWrite)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "reliableWrite" + )] #[doc = "Getter for the `reliableWrite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/reliableWrite)"] @@ -104,7 +156,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reliable_write(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = writableAuxiliaries)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothCharacteristicProperties", + js_name = "writableAuxiliaries" + )] #[doc = "Getter for the `writableAuxiliaries` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/writableAuxiliaries)"] diff --git a/crates/web-sys/src/features/gen_BluetoothDataFilterInit.rs b/crates/web-sys/src/features/gen_BluetoothDataFilterInit.rs index e8908b1c6aa..93aab028535 100644 --- a/crates/web-sys/src/features/gen_BluetoothDataFilterInit.rs +++ b/crates/web-sys/src/features/gen_BluetoothDataFilterInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothDataFilterInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BluetoothDataFilterInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothDataFilterInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothDevice.rs b/crates/web-sys/src/features/gen_BluetoothDevice.rs index 95dfae1a0e9..8e408df1e6b 100644 --- a/crates/web-sys/src/features/gen_BluetoothDevice.rs +++ b/crates/web-sys/src/features/gen_BluetoothDevice.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BluetoothDevice , typescript_type = "BluetoothDevice")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BluetoothDevice", + typescript_type = "BluetoothDevice" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothDevice` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothDevice; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = id)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + 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/BluetoothDevice/id)"] @@ -27,7 +38,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + 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/BluetoothDevice/name)"] @@ -39,7 +56,13 @@ extern "C" { pub fn name(this: &BluetoothDevice) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothRemoteGattServer")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = gatt)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "gatt" + )] #[doc = "Getter for the `gatt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/gatt)"] @@ -50,7 +73,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gatt(this: &BluetoothDevice) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = watchingAdvertisements)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "watchingAdvertisements" + )] #[doc = "Getter for the `watchingAdvertisements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/watchingAdvertisements)"] @@ -61,7 +90,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn watching_advertisements(this: &BluetoothDevice) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onadvertisementreceived)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "onadvertisementreceived" + )] #[doc = "Getter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onadvertisementreceived)"] @@ -72,7 +107,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onadvertisementreceived(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onadvertisementreceived)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothDevice", + js_name = "onadvertisementreceived" + )] #[doc = "Setter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onadvertisementreceived)"] @@ -83,7 +124,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onadvertisementreceived(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = ongattserverdisconnected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "ongattserverdisconnected" + )] #[doc = "Getter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/ongattserverdisconnected)"] @@ -94,7 +141,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongattserverdisconnected(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = ongattserverdisconnected)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothDevice", + js_name = "ongattserverdisconnected" + )] #[doc = "Setter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/ongattserverdisconnected)"] @@ -105,7 +158,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongattserverdisconnected(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/oncharacteristicvaluechanged)"] @@ -116,7 +175,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oncharacteristicvaluechanged(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothDevice", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/oncharacteristicvaluechanged)"] @@ -130,7 +195,13 @@ extern "C" { value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onserviceadded)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "onserviceadded" + )] #[doc = "Getter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceadded)"] @@ -141,7 +212,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceadded(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onserviceadded)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothDevice", + js_name = "onserviceadded" + )] #[doc = "Setter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceadded)"] @@ -152,7 +229,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceadded(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onservicechanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "onservicechanged" + )] #[doc = "Getter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onservicechanged)"] @@ -163,7 +246,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onservicechanged(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onservicechanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothDevice", + js_name = "onservicechanged" + )] #[doc = "Setter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onservicechanged)"] @@ -174,7 +263,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onservicechanged(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onserviceremoved)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothDevice", + js_name = "onserviceremoved" + )] #[doc = "Getter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceremoved)"] @@ -185,7 +280,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceremoved(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onserviceremoved)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothDevice", + js_name = "onserviceremoved" + )] #[doc = "Setter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceremoved)"] @@ -196,7 +297,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceremoved(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothDevice" , js_name = watchAdvertisements)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothDevice", + js_name = "watchAdvertisements" + )] #[doc = "The `watchAdvertisements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/watchAdvertisements)"] @@ -208,7 +314,12 @@ extern "C" { pub fn watch_advertisements(this: &BluetoothDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WatchAdvertisementsOptions")] - # [wasm_bindgen (method , structural , js_class = "BluetoothDevice" , js_name = watchAdvertisements)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothDevice", + js_name = "watchAdvertisements" + )] #[doc = "The `watchAdvertisements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/watchAdvertisements)"] diff --git a/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs b/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs index 4e8a4cb2617..9caf565ebc7 100644 --- a/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs +++ b/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothLEScanFilterInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BluetoothLEScanFilterInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothLeScanFilterInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothManufacturerDataMap.rs b/crates/web-sys/src/features/gen_BluetoothManufacturerDataMap.rs index db317c7dc75..f6fd461927c 100644 --- a/crates/web-sys/src/features/gen_BluetoothManufacturerDataMap.rs +++ b/crates/web-sys/src/features/gen_BluetoothManufacturerDataMap.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothManufacturerDataMap , typescript_type = "BluetoothManufacturerDataMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothManufacturerDataMap", + typescript_type = "BluetoothManufacturerDataMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothManufacturerDataMap` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs b/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs index 9f5f22af99c..a6680d36855 100644 --- a/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs +++ b/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothPermissionDescriptor)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothPermissionDescriptor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothPermissionDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothPermissionResult.rs b/crates/web-sys/src/features/gen_BluetoothPermissionResult.rs index 68bc1a244ae..3d022cf9f1c 100644 --- a/crates/web-sys/src/features/gen_BluetoothPermissionResult.rs +++ b/crates/web-sys/src/features/gen_BluetoothPermissionResult.rs @@ -4,7 +4,13 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PermissionStatus , extends = EventTarget , extends = :: js_sys :: Object , js_name = BluetoothPermissionResult , typescript_type = "BluetoothPermissionResult")] + #[wasm_bindgen( + extends = "PermissionStatus", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BluetoothPermissionResult", + typescript_type = "BluetoothPermissionResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothPermissionResult` class."] #[doc = ""] @@ -16,7 +22,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothPermissionResult; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothPermissionResult" , js_name = devices)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothPermissionResult", + js_name = "devices" + )] #[doc = "Getter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult/devices)"] @@ -27,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn devices(this: &BluetoothPermissionResult) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothPermissionResult" , js_name = devices)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothPermissionResult", + js_name = "devices" + )] #[doc = "Setter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult/devices)"] diff --git a/crates/web-sys/src/features/gen_BluetoothPermissionStorage.rs b/crates/web-sys/src/features/gen_BluetoothPermissionStorage.rs index 28aab60d28a..40a53bc8eec 100644 --- a/crates/web-sys/src/features/gen_BluetoothPermissionStorage.rs +++ b/crates/web-sys/src/features/gen_BluetoothPermissionStorage.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothPermissionStorage)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BluetoothPermissionStorage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothPermissionStorage` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs b/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs index 7858ac35a37..0809e2e6134 100644 --- a/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs +++ b/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTCharacteristic , typescript_type = "BluetoothRemoteGATTCharacteristic")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BluetoothRemoteGATTCharacteristic", + typescript_type = "BluetoothRemoteGATTCharacteristic" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattCharacteristic` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type BluetoothRemoteGattCharacteristic; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothRemoteGattService")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = service)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "service" + )] #[doc = "Getter for the `service` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/service)"] @@ -28,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn service(this: &BluetoothRemoteGattCharacteristic) -> BluetoothRemoteGattService; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = uuid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "uuid" + )] #[doc = "Getter for the `uuid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/uuid)"] @@ -40,7 +57,13 @@ extern "C" { pub fn uuid(this: &BluetoothRemoteGattCharacteristic) -> String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothCharacteristicProperties")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = properties)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "properties" + )] #[doc = "Getter for the `properties` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/properties)"] @@ -53,7 +76,13 @@ extern "C" { this: &BluetoothRemoteGattCharacteristic, ) -> BluetoothCharacteristicProperties; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTCharacteristic", + 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/BluetoothRemoteGATTCharacteristic/value)"] @@ -64,7 +93,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(this: &BluetoothRemoteGattCharacteristic) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"] @@ -77,7 +112,13 @@ extern "C" { this: &BluetoothRemoteGattCharacteristic, ) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"] @@ -91,7 +132,12 @@ extern "C" { value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptor)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "getDescriptor" + )] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"] @@ -105,7 +151,12 @@ extern "C" { descriptor: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptor)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "getDescriptor" + )] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"] @@ -119,7 +170,12 @@ extern "C" { descriptor: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "getDescriptors" + )] #[doc = "The `getDescriptors()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"] @@ -130,7 +186,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptors(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "getDescriptors" + )] #[doc = "The `getDescriptors()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"] @@ -144,7 +205,12 @@ extern "C" { descriptor: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "getDescriptors" + )] #[doc = "The `getDescriptors()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"] @@ -158,7 +224,12 @@ extern "C" { descriptor: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = readValue)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "readValue" + )] #[doc = "The `readValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/readValue)"] @@ -169,7 +240,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_value(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = startNotifications)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "startNotifications" + )] #[doc = "The `startNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/startNotifications)"] @@ -180,7 +256,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn start_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = stopNotifications)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "stopNotifications" + )] #[doc = "The `stopNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/stopNotifications)"] @@ -191,7 +272,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stop_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValue)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "writeValue" + )] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"] @@ -205,7 +291,12 @@ extern "C" { value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValue)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "writeValue" + )] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"] @@ -219,7 +310,12 @@ extern "C" { value: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithResponse)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "writeValueWithResponse" + )] #[doc = "The `writeValueWithResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"] @@ -233,7 +329,12 @@ extern "C" { value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithResponse)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "writeValueWithResponse" + )] #[doc = "The `writeValueWithResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"] @@ -247,7 +348,12 @@ extern "C" { value: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithoutResponse)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "writeValueWithoutResponse" + )] #[doc = "The `writeValueWithoutResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"] @@ -261,7 +367,12 @@ extern "C" { value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithoutResponse)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTCharacteristic", + js_name = "writeValueWithoutResponse" + )] #[doc = "The `writeValueWithoutResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"] diff --git a/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs b/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs index 14375523a85..657cb3fc61d 100644 --- a/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs +++ b/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTDescriptor , typescript_type = "BluetoothRemoteGATTDescriptor")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothRemoteGATTDescriptor", + typescript_type = "BluetoothRemoteGATTDescriptor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattDescriptor` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type BluetoothRemoteGattDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothRemoteGattCharacteristic")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = characteristic)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTDescriptor", + js_name = "characteristic" + )] #[doc = "Getter for the `characteristic` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/characteristic)"] @@ -30,7 +40,13 @@ extern "C" { this: &BluetoothRemoteGattDescriptor, ) -> BluetoothRemoteGattCharacteristic; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = uuid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTDescriptor", + js_name = "uuid" + )] #[doc = "Getter for the `uuid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/uuid)"] @@ -41,7 +57,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTDescriptor", + 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/BluetoothRemoteGATTDescriptor/value)"] @@ -52,7 +74,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(this: &BluetoothRemoteGattDescriptor) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = readValue)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTDescriptor", + js_name = "readValue" + )] #[doc = "The `readValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/readValue)"] @@ -63,7 +90,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_value(this: &BluetoothRemoteGattDescriptor) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTDescriptor", + js_name = "writeValue" + )] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"] @@ -77,7 +109,12 @@ extern "C" { value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTDescriptor", + js_name = "writeValue" + )] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"] diff --git a/crates/web-sys/src/features/gen_BluetoothRemoteGattServer.rs b/crates/web-sys/src/features/gen_BluetoothRemoteGattServer.rs index 76e8d833d61..f83d44d7a2e 100644 --- a/crates/web-sys/src/features/gen_BluetoothRemoteGattServer.rs +++ b/crates/web-sys/src/features/gen_BluetoothRemoteGattServer.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTServer , typescript_type = "BluetoothRemoteGATTServer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothRemoteGATTServer", + typescript_type = "BluetoothRemoteGATTServer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattServer` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type BluetoothRemoteGattServer; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , js_name = device)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTServer", + js_name = "device" + )] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/device)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &BluetoothRemoteGattServer) -> BluetoothDevice; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , js_name = connected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTServer", + js_name = "connected" + )] #[doc = "Getter for the `connected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/connected)"] @@ -39,7 +55,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn connected(this: &BluetoothRemoteGattServer) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = connect)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTServer", + js_name = "connect" + )] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/connect)"] @@ -50,7 +71,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn connect(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = disconnect)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTServer", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/disconnect)"] @@ -61,7 +87,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn disconnect(this: &BluetoothRemoteGattServer); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTServer", + js_name = "getPrimaryService" + )] #[doc = "The `getPrimaryService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"] @@ -75,7 +106,12 @@ extern "C" { service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTServer", + js_name = "getPrimaryService" + )] #[doc = "The `getPrimaryService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"] @@ -89,7 +125,12 @@ extern "C" { service: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTServer", + js_name = "getPrimaryServices" + )] #[doc = "The `getPrimaryServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] @@ -100,7 +141,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_primary_services(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTServer", + js_name = "getPrimaryServices" + )] #[doc = "The `getPrimaryServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] @@ -114,7 +160,12 @@ extern "C" { service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTServer", + js_name = "getPrimaryServices" + )] #[doc = "The `getPrimaryServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] diff --git a/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs b/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs index 852c88b1c9e..7c9f119d629 100644 --- a/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs +++ b/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTService , typescript_type = "BluetoothRemoteGATTService")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BluetoothRemoteGATTService", + typescript_type = "BluetoothRemoteGATTService" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattService` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type BluetoothRemoteGattService; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = device)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTService", + js_name = "device" + )] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/device)"] @@ -28,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &BluetoothRemoteGattService) -> BluetoothDevice; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = uuid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTService", + js_name = "uuid" + )] #[doc = "Getter for the `uuid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/uuid)"] @@ -39,7 +56,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = isPrimary)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTService", + js_name = "isPrimary" + )] #[doc = "Getter for the `isPrimary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/isPrimary)"] @@ -50,7 +73,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_primary(this: &BluetoothRemoteGattService) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTService", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/oncharacteristicvaluechanged)"] @@ -63,7 +92,13 @@ extern "C" { this: &BluetoothRemoteGattService, ) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = oncharacteristicvaluechanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothRemoteGATTService", + js_name = "oncharacteristicvaluechanged" + )] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/oncharacteristicvaluechanged)"] @@ -77,7 +112,13 @@ extern "C" { value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceadded)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTService", + js_name = "onserviceadded" + )] #[doc = "Getter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceadded)"] @@ -88,7 +129,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceadded(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceadded)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothRemoteGATTService", + js_name = "onserviceadded" + )] #[doc = "Setter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceadded)"] @@ -102,7 +149,13 @@ extern "C" { value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onservicechanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTService", + js_name = "onservicechanged" + )] #[doc = "Getter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onservicechanged)"] @@ -113,7 +166,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onservicechanged(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onservicechanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothRemoteGATTService", + js_name = "onservicechanged" + )] #[doc = "Setter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onservicechanged)"] @@ -127,7 +186,13 @@ extern "C" { value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceremoved)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BluetoothRemoteGATTService", + js_name = "onserviceremoved" + )] #[doc = "Getter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceremoved)"] @@ -138,7 +203,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceremoved(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceremoved)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BluetoothRemoteGATTService", + js_name = "onserviceremoved" + )] #[doc = "Setter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceremoved)"] @@ -152,7 +223,12 @@ extern "C" { value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristic)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getCharacteristic" + )] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristic)"] @@ -166,7 +242,12 @@ extern "C" { characteristic: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristic)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getCharacteristic" + )] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristic)"] @@ -180,7 +261,12 @@ extern "C" { characteristic: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getCharacteristics" + )] #[doc = "The `getCharacteristics()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"] @@ -191,7 +277,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristics(this: &BluetoothRemoteGattService) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getCharacteristics" + )] #[doc = "The `getCharacteristics()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"] @@ -205,7 +296,12 @@ extern "C" { characteristic: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getCharacteristics" + )] #[doc = "The `getCharacteristics()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"] @@ -219,7 +315,12 @@ extern "C" { characteristic: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedService)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getIncludedService" + )] #[doc = "The `getIncludedService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedService)"] @@ -233,7 +334,12 @@ extern "C" { service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedService)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getIncludedService" + )] #[doc = "The `getIncludedService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedService)"] @@ -247,7 +353,12 @@ extern "C" { service: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getIncludedServices" + )] #[doc = "The `getIncludedServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"] @@ -258,7 +369,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_included_services(this: &BluetoothRemoteGattService) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getIncludedServices" + )] #[doc = "The `getIncludedServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"] @@ -272,7 +388,12 @@ extern "C" { service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)] + #[wasm_bindgen( + method, + structural, + js_class = "BluetoothRemoteGATTService", + js_name = "getIncludedServices" + )] #[doc = "The `getIncludedServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"] diff --git a/crates/web-sys/src/features/gen_BluetoothServiceDataMap.rs b/crates/web-sys/src/features/gen_BluetoothServiceDataMap.rs index cb089efcc6a..ab37dbb1c19 100644 --- a/crates/web-sys/src/features/gen_BluetoothServiceDataMap.rs +++ b/crates/web-sys/src/features/gen_BluetoothServiceDataMap.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothServiceDataMap , typescript_type = "BluetoothServiceDataMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothServiceDataMap", + typescript_type = "BluetoothServiceDataMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothServiceDataMap` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothUuid.rs b/crates/web-sys/src/features/gen_BluetoothUuid.rs index 65e1505356d..74cd1f141c8 100644 --- a/crates/web-sys/src/features/gen_BluetoothUuid.rs +++ b/crates/web-sys/src/features/gen_BluetoothUuid.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothUUID , typescript_type = "BluetoothUUID")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BluetoothUUID", + typescript_type = "BluetoothUUID" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothUuid` class."] #[doc = ""] @@ -16,7 +20,11 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothUuid; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = canonicalUUID)] + #[wasm_bindgen( + static_method_of = "BluetoothUuid", + js_class = "BluetoothUUID", + js_name = "canonicalUUID" + )] #[doc = "The `canonicalUUID()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/canonicalUUID)"] @@ -27,7 +35,11 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getCharacteristic)] + #[wasm_bindgen( + static_method_of = "BluetoothUuid", + js_class = "BluetoothUUID", + js_name = "getCharacteristic" + )] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getCharacteristic)"] @@ -38,7 +50,11 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getCharacteristic)] + #[wasm_bindgen( + static_method_of = "BluetoothUuid", + js_class = "BluetoothUUID", + js_name = "getCharacteristic" + )] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getCharacteristic)"] @@ -49,7 +65,11 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getDescriptor)] + #[wasm_bindgen( + static_method_of = "BluetoothUuid", + js_class = "BluetoothUUID", + js_name = "getDescriptor" + )] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getDescriptor)"] @@ -60,7 +80,11 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getDescriptor)] + #[wasm_bindgen( + static_method_of = "BluetoothUuid", + js_class = "BluetoothUUID", + js_name = "getDescriptor" + )] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getDescriptor)"] @@ -71,7 +95,11 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getService)] + #[wasm_bindgen( + static_method_of = "BluetoothUuid", + js_class = "BluetoothUUID", + js_name = "getService" + )] #[doc = "The `getService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getService)"] @@ -82,7 +110,11 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getService)] + #[wasm_bindgen( + static_method_of = "BluetoothUuid", + js_class = "BluetoothUUID", + js_name = "getService" + )] #[doc = "The `getService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getService)"] diff --git a/crates/web-sys/src/features/gen_BoxQuadOptions.rs b/crates/web-sys/src/features/gen_BoxQuadOptions.rs index ce23e22fb75..f10e07f3222 100644 --- a/crates/web-sys/src/features/gen_BoxQuadOptions.rs +++ b/crates/web-sys/src/features/gen_BoxQuadOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BoxQuadOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "BoxQuadOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BoxQuadOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BroadcastChannel.rs b/crates/web-sys/src/features/gen_BroadcastChannel.rs index 1706b659e40..57ca6b1fb79 100644 --- a/crates/web-sys/src/features/gen_BroadcastChannel.rs +++ b/crates/web-sys/src/features/gen_BroadcastChannel.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BroadcastChannel , typescript_type = "BroadcastChannel")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "BroadcastChannel", + typescript_type = "BroadcastChannel" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BroadcastChannel` class."] #[doc = ""] @@ -11,35 +16,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub type BroadcastChannel; - # [wasm_bindgen (structural , method , getter , js_class = "BroadcastChannel" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BroadcastChannel", + 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/BroadcastChannel/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn name(this: &BroadcastChannel) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "BroadcastChannel" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BroadcastChannel", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn onmessage(this: &BroadcastChannel) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "BroadcastChannel" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BroadcastChannel", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn set_onmessage(this: &BroadcastChannel, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "BroadcastChannel" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "BroadcastChannel", + js_name = "onmessageerror" + )] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn onmessageerror(this: &BroadcastChannel) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "BroadcastChannel" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "BroadcastChannel", + js_name = "onmessageerror" + )] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessageerror)"] @@ -53,14 +88,20 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn new(channel: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "BroadcastChannel" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "BroadcastChannel", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn close(this: &BroadcastChannel); - # [wasm_bindgen (catch , method , structural , js_class = "BroadcastChannel" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "BroadcastChannel", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/postMessage)"] diff --git a/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs b/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs index 73882917b5b..4a3199c4632 100644 --- a/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs +++ b/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BrowserElementDownloadOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BrowserElementDownloadOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BrowserElementDownloadOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs b/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs index 358360ca492..9c2a80d1d12 100644 --- a/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs +++ b/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BrowserElementExecuteScriptOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BrowserElementExecuteScriptOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BrowserElementExecuteScriptOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BrowserFeedWriter.rs b/crates/web-sys/src/features/gen_BrowserFeedWriter.rs index 8e0ad3646b1..26570cf657d 100644 --- a/crates/web-sys/src/features/gen_BrowserFeedWriter.rs +++ b/crates/web-sys/src/features/gen_BrowserFeedWriter.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BrowserFeedWriter , typescript_type = "BrowserFeedWriter")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "BrowserFeedWriter", + typescript_type = "BrowserFeedWriter" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BrowserFeedWriter` class."] #[doc = ""] @@ -18,14 +22,19 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] pub fn new() -> Result; - # [wasm_bindgen (method , structural , js_class = "BrowserFeedWriter" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "BrowserFeedWriter", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] pub fn close(this: &BrowserFeedWriter); - # [wasm_bindgen (method , structural , js_class = "BrowserFeedWriter" , js_name = writeContent)] + #[wasm_bindgen( + method, + structural, + js_class = "BrowserFeedWriter", + js_name = "writeContent" + )] #[doc = "The `writeContent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/writeContent)"] diff --git a/crates/web-sys/src/features/gen_Cache.rs b/crates/web-sys/src/features/gen_Cache.rs index 3526097c0f8..773f4f7bc7b 100644 --- a/crates/web-sys/src/features/gen_Cache.rs +++ b/crates/web-sys/src/features/gen_Cache.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Cache , typescript_type = "Cache")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Cache", + typescript_type = "Cache" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Cache` class."] #[doc = ""] @@ -12,21 +16,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub type Cache; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = add)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn add_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = add)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn add_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = addAll)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "addAll")] #[doc = "The `addAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"] @@ -36,7 +40,7 @@ extern "C" { this: &Cache, requests: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = addAll)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "addAll")] #[doc = "The `addAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"] @@ -47,14 +51,14 @@ extern "C" { requests: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn delete_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] @@ -62,7 +66,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn delete_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] @@ -74,7 +78,7 @@ extern "C" { options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] @@ -85,7 +89,7 @@ extern "C" { request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "keys")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] @@ -93,14 +97,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn keys(this: &Cache) -> ::js_sys::Promise; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "keys")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn keys_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "keys")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] @@ -108,7 +112,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn keys_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "keys")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] @@ -120,7 +124,7 @@ extern "C" { options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "keys")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] @@ -132,14 +136,14 @@ extern "C" { options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn match_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] @@ -147,7 +151,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn match_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] @@ -159,7 +163,7 @@ extern "C" { options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] @@ -170,7 +174,7 @@ extern "C" { request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "matchAll")] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] @@ -178,14 +182,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn match_all(this: &Cache) -> ::js_sys::Promise; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "matchAll")] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn match_all_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "matchAll")] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] @@ -193,7 +197,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn match_all_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "matchAll")] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] @@ -205,7 +209,7 @@ extern "C" { options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "matchAll")] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] @@ -217,7 +221,7 @@ extern "C" { options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(all(feature = "Request", feature = "Response",))] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = put)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "put")] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"] @@ -229,7 +233,7 @@ extern "C" { response: &Response, ) -> ::js_sys::Promise; #[cfg(feature = "Response")] - # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = put)] + #[wasm_bindgen(method, structural, js_class = "Cache", js_name = "put")] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"] diff --git a/crates/web-sys/src/features/gen_CacheBatchOperation.rs b/crates/web-sys/src/features/gen_CacheBatchOperation.rs index 8caf881124b..a11d742516b 100644 --- a/crates/web-sys/src/features/gen_CacheBatchOperation.rs +++ b/crates/web-sys/src/features/gen_CacheBatchOperation.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CacheBatchOperation)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CacheBatchOperation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CacheBatchOperation` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CacheQueryOptions.rs b/crates/web-sys/src/features/gen_CacheQueryOptions.rs index 061fc496438..eb16a3802d8 100644 --- a/crates/web-sys/src/features/gen_CacheQueryOptions.rs +++ b/crates/web-sys/src/features/gen_CacheQueryOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CacheQueryOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CacheQueryOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CacheQueryOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CacheStorage.rs b/crates/web-sys/src/features/gen_CacheStorage.rs index 46e9a8b572b..8875c382c7f 100644 --- a/crates/web-sys/src/features/gen_CacheStorage.rs +++ b/crates/web-sys/src/features/gen_CacheStorage.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CacheStorage , typescript_type = "CacheStorage")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CacheStorage", + typescript_type = "CacheStorage" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CacheStorage` class."] #[doc = ""] @@ -11,21 +15,21 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub type CacheStorage; - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn delete(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = has)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "has")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn has(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = keys)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "keys")] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/keys)"] @@ -33,14 +37,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn keys(this: &CacheStorage) -> ::js_sys::Promise; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Request`*"] pub fn match_with_request(this: &CacheStorage, request: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] @@ -48,7 +52,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn match_with_str(this: &CacheStorage, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] @@ -60,7 +64,7 @@ extern "C" { options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "match")] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] @@ -71,7 +75,7 @@ extern "C" { request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = open)] + #[wasm_bindgen(method, structural, js_class = "CacheStorage", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open)"] diff --git a/crates/web-sys/src/features/gen_CanvasCaptureMediaStream.rs b/crates/web-sys/src/features/gen_CanvasCaptureMediaStream.rs index 050555cdafd..a94fa6128f4 100644 --- a/crates/web-sys/src/features/gen_CanvasCaptureMediaStream.rs +++ b/crates/web-sys/src/features/gen_CanvasCaptureMediaStream.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MediaStream , extends = EventTarget , extends = :: js_sys :: Object , js_name = CanvasCaptureMediaStream , typescript_type = "CanvasCaptureMediaStream")] + #[wasm_bindgen( + extends = "MediaStream", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "CanvasCaptureMediaStream", + typescript_type = "CanvasCaptureMediaStream" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasCaptureMediaStream` class."] #[doc = ""] @@ -12,14 +18,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`*"] pub type CanvasCaptureMediaStream; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (structural , method , getter , js_class = "CanvasCaptureMediaStream" , js_name = canvas)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasCaptureMediaStream", + js_name = "canvas" + )] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`, `HtmlCanvasElement`*"] pub fn canvas(this: &CanvasCaptureMediaStream) -> HtmlCanvasElement; - # [wasm_bindgen (method , structural , js_class = "CanvasCaptureMediaStream" , js_name = requestFrame)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasCaptureMediaStream", + js_name = "requestFrame" + )] #[doc = "The `requestFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream/requestFrame)"] diff --git a/crates/web-sys/src/features/gen_CanvasGradient.rs b/crates/web-sys/src/features/gen_CanvasGradient.rs index 007a39b71e4..46e626a6130 100644 --- a/crates/web-sys/src/features/gen_CanvasGradient.rs +++ b/crates/web-sys/src/features/gen_CanvasGradient.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CanvasGradient , typescript_type = "CanvasGradient")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CanvasGradient", + typescript_type = "CanvasGradient" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasGradient` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`*"] pub type CanvasGradient; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasGradient" , js_name = addColorStop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasGradient", + js_name = "addColorStop" + )] #[doc = "The `addColorStop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop)"] diff --git a/crates/web-sys/src/features/gen_CanvasPattern.rs b/crates/web-sys/src/features/gen_CanvasPattern.rs index 5ff06e26051..d11906b5bc6 100644 --- a/crates/web-sys/src/features/gen_CanvasPattern.rs +++ b/crates/web-sys/src/features/gen_CanvasPattern.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CanvasPattern , typescript_type = "CanvasPattern")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CanvasPattern", + typescript_type = "CanvasPattern" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasPattern` class."] #[doc = ""] @@ -12,7 +16,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`*"] pub type CanvasPattern; #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (method , structural , js_class = "CanvasPattern" , js_name = setTransform)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasPattern", + js_name = "setTransform" + )] #[doc = "The `setTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern/setTransform)"] diff --git a/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs b/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs index 3f353b91177..6362f488106 100644 --- a/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs +++ b/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CanvasRenderingContext2D , typescript_type = "CanvasRenderingContext2D")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CanvasRenderingContext2D", + typescript_type = "CanvasRenderingContext2D" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasRenderingContext2d` class."] #[doc = ""] @@ -12,35 +16,67 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub type CanvasRenderingContext2d; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = canvas)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "canvas" + )] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] pub fn canvas(this: &CanvasRenderingContext2d) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = globalAlpha)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "globalAlpha" + )] #[doc = "Getter for the `globalAlpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn global_alpha(this: &CanvasRenderingContext2d) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = globalAlpha)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "globalAlpha" + )] #[doc = "Setter for the `globalAlpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_global_alpha(this: &CanvasRenderingContext2d, value: f64); - # [wasm_bindgen (structural , catch , method , getter , js_class = "CanvasRenderingContext2D" , js_name = globalCompositeOperation)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "globalCompositeOperation" + )] #[doc = "Getter for the `globalCompositeOperation` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "CanvasRenderingContext2D" , js_name = globalCompositeOperation)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "globalCompositeOperation" + )] #[doc = "Setter for the `globalCompositeOperation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation)"] @@ -50,224 +86,416 @@ extern "C" { this: &CanvasRenderingContext2d, value: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = strokeStyle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "strokeStyle" + )] #[doc = "Getter for the `strokeStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke_style(this: &CanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = strokeStyle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "strokeStyle" + )] #[doc = "Setter for the `strokeStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_stroke_style(this: &CanvasRenderingContext2d, value: &::wasm_bindgen::JsValue); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = fillStyle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "fillStyle" + )] #[doc = "Getter for the `fillStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill_style(this: &CanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = fillStyle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "fillStyle" + )] #[doc = "Setter for the `fillStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_fill_style(this: &CanvasRenderingContext2d, value: &::wasm_bindgen::JsValue); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = filter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "filter" + )] #[doc = "Getter for the `filter` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = filter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "filter" + )] #[doc = "Setter for the `filter` field of this object."] #[doc = ""] #[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 set_filter(this: &CanvasRenderingContext2d, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = imageSmoothingEnabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "imageSmoothingEnabled" + )] #[doc = "Getter for the `imageSmoothingEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn image_smoothing_enabled(this: &CanvasRenderingContext2d) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = imageSmoothingEnabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "imageSmoothingEnabled" + )] #[doc = "Setter for the `imageSmoothingEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_image_smoothing_enabled(this: &CanvasRenderingContext2d, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "lineWidth" + )] #[doc = "Getter for the `lineWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_width(this: &CanvasRenderingContext2d) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineWidth)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "lineWidth" + )] #[doc = "Setter for the `lineWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_line_width(this: &CanvasRenderingContext2d, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineCap)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "lineCap" + )] #[doc = "Getter for the `lineCap` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineCap)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "lineCap" + )] #[doc = "Setter for the `lineCap` field of this object."] #[doc = ""] #[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 set_line_cap(this: &CanvasRenderingContext2d, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineJoin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "lineJoin" + )] #[doc = "Getter for the `lineJoin` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineJoin)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "lineJoin" + )] #[doc = "Setter for the `lineJoin` field of this object."] #[doc = ""] #[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 set_line_join(this: &CanvasRenderingContext2d, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = miterLimit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "miterLimit" + )] #[doc = "Getter for the `miterLimit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn miter_limit(this: &CanvasRenderingContext2d) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = miterLimit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "miterLimit" + )] #[doc = "Setter for the `miterLimit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_miter_limit(this: &CanvasRenderingContext2d, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineDashOffset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "lineDashOffset" + )] #[doc = "Getter for the `lineDashOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_dash_offset(this: &CanvasRenderingContext2d) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineDashOffset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "lineDashOffset" + )] #[doc = "Setter for the `lineDashOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_line_dash_offset(this: &CanvasRenderingContext2d, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowOffsetX" + )] #[doc = "Getter for the `shadowOffsetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn shadow_offset_x(this: &CanvasRenderingContext2d) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetX)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowOffsetX" + )] #[doc = "Setter for the `shadowOffsetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_shadow_offset_x(this: &CanvasRenderingContext2d, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowOffsetY" + )] #[doc = "Getter for the `shadowOffsetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn shadow_offset_y(this: &CanvasRenderingContext2d) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetY)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowOffsetY" + )] #[doc = "Setter for the `shadowOffsetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_shadow_offset_y(this: &CanvasRenderingContext2d, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowBlur)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowBlur" + )] #[doc = "Getter for the `shadowBlur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn shadow_blur(this: &CanvasRenderingContext2d) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowBlur)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowBlur" + )] #[doc = "Setter for the `shadowBlur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_shadow_blur(this: &CanvasRenderingContext2d, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowColor" + )] #[doc = "Getter for the `shadowColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "shadowColor" + )] #[doc = "Setter for the `shadowColor` field of this object."] #[doc = ""] #[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 set_shadow_color(this: &CanvasRenderingContext2d, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = font)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "font" + )] #[doc = "Getter for the `font` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = font)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "font" + )] #[doc = "Setter for the `font` field of this object."] #[doc = ""] #[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 set_font(this: &CanvasRenderingContext2d, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = textAlign)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "textAlign" + )] #[doc = "Getter for the `textAlign` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textAlign)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "textAlign" + )] #[doc = "Setter for the `textAlign` field of this object."] #[doc = ""] #[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 set_text_align(this: &CanvasRenderingContext2d, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = textBaseline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CanvasRenderingContext2D", + js_name = "textBaseline" + )] #[doc = "Getter for the `textBaseline` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textBaseline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CanvasRenderingContext2D", + js_name = "textBaseline" + )] #[doc = "Setter for the `textBaseline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline)"] @@ -275,7 +503,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_text_baseline(this: &CanvasRenderingContext2d, value: &str); #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawWindow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawWindow" + )] #[doc = "The `drawWindow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow)"] @@ -291,7 +525,13 @@ extern "C" { bg_color: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawWindow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawWindow" + )] #[doc = "The `drawWindow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow)"] @@ -308,7 +548,13 @@ extern "C" { flags: u32, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -321,7 +567,13 @@ extern "C" { dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -334,7 +586,13 @@ extern "C" { dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -347,7 +605,13 @@ extern "C" { dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -360,7 +624,13 @@ extern "C" { dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -373,7 +643,13 @@ extern "C" { dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -388,7 +664,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -403,7 +685,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -418,7 +706,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -433,7 +727,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -448,7 +748,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -467,7 +773,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -486,7 +798,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -505,7 +823,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -524,7 +848,13 @@ extern "C" { dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawImage" + )] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] @@ -542,14 +872,24 @@ extern "C" { dw: f64, dh: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = beginPath)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "beginPath" + )] #[doc = "The `beginPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/beginPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn begin_path(this: &CanvasRenderingContext2d); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "clip" + )] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] @@ -557,7 +897,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn clip(this: &CanvasRenderingContext2d); #[cfg(feature = "CanvasWindingRule")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "clip" + )] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] @@ -568,7 +913,12 @@ extern "C" { winding: CanvasWindingRule, ); #[cfg(feature = "Path2d")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "clip" + )] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] @@ -576,7 +926,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn clip_with_path_2d(this: &CanvasRenderingContext2d, path: &Path2d); #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "clip" + )] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] @@ -587,7 +942,12 @@ extern "C" { path: &Path2d, winding: CanvasWindingRule, ); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "fill" + )] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] @@ -595,7 +955,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill(this: &CanvasRenderingContext2d); #[cfg(feature = "CanvasWindingRule")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "fill" + )] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] @@ -606,7 +971,12 @@ extern "C" { winding: CanvasWindingRule, ); #[cfg(feature = "Path2d")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "fill" + )] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] @@ -614,7 +984,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn fill_with_path_2d(this: &CanvasRenderingContext2d, path: &Path2d); #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "fill" + )] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] @@ -625,7 +1000,12 @@ extern "C" { path: &Path2d, winding: CanvasWindingRule, ); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "isPointInPath" + )] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] @@ -633,7 +1013,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn is_point_in_path_with_f64(this: &CanvasRenderingContext2d, x: f64, y: f64) -> bool; #[cfg(feature = "CanvasWindingRule")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "isPointInPath" + )] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] @@ -646,7 +1031,12 @@ extern "C" { winding: CanvasWindingRule, ) -> bool; #[cfg(feature = "Path2d")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "isPointInPath" + )] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] @@ -659,7 +1049,12 @@ extern "C" { y: f64, ) -> bool; #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "isPointInPath" + )] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] @@ -672,7 +1067,12 @@ extern "C" { y: f64, winding: CanvasWindingRule, ) -> bool; - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInStroke)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "isPointInStroke" + )] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke)"] @@ -681,7 +1081,12 @@ extern "C" { pub fn is_point_in_stroke_with_x_and_y(this: &CanvasRenderingContext2d, x: f64, y: f64) -> bool; #[cfg(feature = "Path2d")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInStroke)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "isPointInStroke" + )] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke)"] @@ -693,7 +1098,12 @@ extern "C" { x: f64, y: f64, ) -> bool; - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = stroke)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "stroke" + )] #[doc = "The `stroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke)"] @@ -701,7 +1111,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke(this: &CanvasRenderingContext2d); #[cfg(feature = "Path2d")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = stroke)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "stroke" + )] #[doc = "The `stroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke)"] @@ -709,7 +1124,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn stroke_with_path(this: &CanvasRenderingContext2d, path: &Path2d); #[cfg(feature = "CanvasGradient")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = createLinearGradient)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createLinearGradient" + )] #[doc = "The `createLinearGradient()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient)"] @@ -723,7 +1143,13 @@ extern "C" { y1: f64, ) -> CanvasGradient; #[cfg(all(feature = "CanvasPattern", feature = "HtmlImageElement",))] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createPattern" + )] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] @@ -735,7 +1161,13 @@ extern "C" { repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "SvgImageElement",))] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createPattern" + )] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] @@ -747,7 +1179,13 @@ extern "C" { repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "HtmlCanvasElement",))] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createPattern" + )] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] @@ -759,7 +1197,13 @@ extern "C" { repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "HtmlVideoElement",))] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createPattern" + )] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] @@ -771,7 +1215,13 @@ extern "C" { repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "ImageBitmap",))] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createPattern" + )] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] @@ -783,7 +1233,13 @@ extern "C" { repetition: &str, ) -> Result, JsValue>; #[cfg(feature = "CanvasGradient")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createRadialGradient)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createRadialGradient" + )] #[doc = "The `createRadialGradient()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createRadialGradient)"] @@ -798,7 +1254,13 @@ extern "C" { y1: f64, r1: f64, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = addHitRegion)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "addHitRegion" + )] #[doc = "The `addHitRegion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion)"] @@ -806,7 +1268,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn add_hit_region(this: &CanvasRenderingContext2d) -> Result<(), JsValue>; #[cfg(feature = "HitRegionOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = addHitRegion)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "addHitRegion" + )] #[doc = "The `addHitRegion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion)"] @@ -816,14 +1284,24 @@ extern "C" { this: &CanvasRenderingContext2d, options: &HitRegionOptions, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clearHitRegions)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "clearHitRegions" + )] #[doc = "The `clearHitRegions()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearHitRegions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn clear_hit_regions(this: &CanvasRenderingContext2d); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = removeHitRegion)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "removeHitRegion" + )] #[doc = "The `removeHitRegion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/removeHitRegion)"] @@ -831,7 +1309,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn remove_hit_region(this: &CanvasRenderingContext2d, id: &str); #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createImageData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createImageData" + )] #[doc = "The `createImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData)"] @@ -843,7 +1327,13 @@ extern "C" { sh: f64, ) -> Result; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createImageData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "createImageData" + )] #[doc = "The `createImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData)"] @@ -854,7 +1344,13 @@ extern "C" { imagedata: &ImageData, ) -> Result; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = getImageData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "getImageData" + )] #[doc = "The `getImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData)"] @@ -868,7 +1364,13 @@ extern "C" { sh: f64, ) -> Result; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = putImageData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "putImageData" + )] #[doc = "The `putImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)"] @@ -881,7 +1383,13 @@ extern "C" { dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = putImageData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "putImageData" + )] #[doc = "The `putImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)"] @@ -897,14 +1405,25 @@ extern "C" { dirty_width: f64, dirty_height: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = getLineDash)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "getLineDash" + )] #[doc = "The `getLineDash()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getLineDash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn get_line_dash(this: &CanvasRenderingContext2d) -> ::js_sys::Array; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setLineDash)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "setLineDash" + )] #[doc = "The `setLineDash()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)"] @@ -914,7 +1433,13 @@ extern "C" { this: &CanvasRenderingContext2d, segments: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arc)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "arc" + )] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc)"] @@ -928,7 +1453,13 @@ extern "C" { start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arc)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "arc" + )] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc)"] @@ -943,7 +1474,13 @@ extern "C" { end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arcTo)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "arcTo" + )] #[doc = "The `arcTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arcTo)"] @@ -957,7 +1494,12 @@ extern "C" { y2: f64, radius: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = bezierCurveTo)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "bezierCurveTo" + )] #[doc = "The `bezierCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo)"] @@ -972,14 +1514,25 @@ extern "C" { x: f64, y: f64, ); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = closePath)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "closePath" + )] #[doc = "The `closePath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/closePath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn close_path(this: &CanvasRenderingContext2d); - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = ellipse)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "ellipse" + )] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse)"] @@ -995,7 +1548,13 @@ extern "C" { start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = ellipse)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "ellipse" + )] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse)"] @@ -1012,70 +1571,121 @@ extern "C" { end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = lineTo)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "lineTo" + )] #[doc = "The `lineTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_to(this: &CanvasRenderingContext2d, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = moveTo)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "moveTo" + )] #[doc = "The `moveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/moveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn move_to(this: &CanvasRenderingContext2d, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = quadraticCurveTo)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "quadraticCurveTo" + )] #[doc = "The `quadraticCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn quadratic_curve_to(this: &CanvasRenderingContext2d, cpx: f64, cpy: f64, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = rect)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "rect" + )] #[doc = "The `rect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clearRect)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "clearRect" + )] #[doc = "The `clearRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn clear_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillRect)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "fillRect" + )] #[doc = "The `fillRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeRect)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "strokeRect" + )] #[doc = "The `strokeRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = restore)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "restore" + )] #[doc = "The `restore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/restore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn restore(this: &CanvasRenderingContext2d); - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = save)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "save" + )] #[doc = "The `save()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/save)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn save(this: &CanvasRenderingContext2d); - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "fillText" + )] #[doc = "The `fillText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText)"] @@ -1087,7 +1697,13 @@ extern "C" { x: f64, y: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "fillText" + )] #[doc = "The `fillText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText)"] @@ -1101,7 +1717,13 @@ extern "C" { max_width: f64, ) -> Result<(), JsValue>; #[cfg(feature = "TextMetrics")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = measureText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "measureText" + )] #[doc = "The `measureText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/measureText)"] @@ -1111,7 +1733,13 @@ extern "C" { this: &CanvasRenderingContext2d, text: &str, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "strokeText" + )] #[doc = "The `strokeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText)"] @@ -1123,7 +1751,13 @@ extern "C" { x: f64, y: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "strokeText" + )] #[doc = "The `strokeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText)"] @@ -1137,35 +1771,65 @@ extern "C" { max_width: f64, ) -> Result<(), JsValue>; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = getTransform)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "getTransform" + )] #[doc = "The `getTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `DomMatrix`*"] pub fn get_transform(this: &CanvasRenderingContext2d) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = resetTransform)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "resetTransform" + )] #[doc = "The `resetTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/resetTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn reset_transform(this: &CanvasRenderingContext2d) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = rotate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "rotate" + )] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn rotate(this: &CanvasRenderingContext2d, angle: f64) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = scale)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "scale" + )] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn scale(this: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setTransform)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "setTransform" + )] #[doc = "The `setTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setTransform)"] @@ -1180,7 +1844,13 @@ extern "C" { e: f64, f: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = transform)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "transform" + )] #[doc = "The `transform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/transform)"] @@ -1195,7 +1865,13 @@ extern "C" { e: f64, f: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = translate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "translate" + )] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/translate)"] @@ -1203,7 +1879,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn translate(this: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawCustomFocusRing)] + #[wasm_bindgen( + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawCustomFocusRing" + )] #[doc = "The `drawCustomFocusRing()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawCustomFocusRing)"] @@ -1211,7 +1892,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Element`*"] pub fn draw_custom_focus_ring(this: &CanvasRenderingContext2d, element: &Element) -> bool; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawFocusIfNeeded)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CanvasRenderingContext2D", + js_name = "drawFocusIfNeeded" + )] #[doc = "The `drawFocusIfNeeded()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded)"] diff --git a/crates/web-sys/src/features/gen_CaretPosition.rs b/crates/web-sys/src/features/gen_CaretPosition.rs index c6cfba2b4b3..6e9e1acc005 100644 --- a/crates/web-sys/src/features/gen_CaretPosition.rs +++ b/crates/web-sys/src/features/gen_CaretPosition.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CaretPosition , typescript_type = "CaretPosition")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CaretPosition", + typescript_type = "CaretPosition" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CaretPosition` class."] #[doc = ""] @@ -12,14 +16,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CaretPosition`*"] pub type CaretPosition; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "CaretPosition" , js_name = offsetNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CaretPosition", + js_name = "offsetNode" + )] #[doc = "Getter for the `offsetNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/offsetNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `Node`*"] pub fn offset_node(this: &CaretPosition) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "CaretPosition" , js_name = offset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CaretPosition", + js_name = "offset" + )] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/offset)"] @@ -27,7 +43,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CaretPosition`*"] pub fn offset(this: &CaretPosition) -> u32; #[cfg(feature = "DomRect")] - # [wasm_bindgen (method , structural , js_class = "CaretPosition" , js_name = getClientRect)] + #[wasm_bindgen( + method, + structural, + js_class = "CaretPosition", + js_name = "getClientRect" + )] #[doc = "The `getClientRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/getClientRect)"] diff --git a/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs b/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs index 7a8015b586e..0318098f1d2 100644 --- a/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs +++ b/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CaretStateChangedEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CaretStateChangedEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CaretStateChangedEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CdataSection.rs b/crates/web-sys/src/features/gen_CdataSection.rs index c4727466832..aee151c5c5e 100644 --- a/crates/web-sys/src/features/gen_CdataSection.rs +++ b/crates/web-sys/src/features/gen_CdataSection.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Text , extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = CDATASection , typescript_type = "CDATASection")] + #[wasm_bindgen( + extends = "Text", + extends = "CharacterData", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "CDATASection", + typescript_type = "CDATASection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CdataSection` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ChannelMergerNode.rs b/crates/web-sys/src/features/gen_ChannelMergerNode.rs index 0ce61ce18b4..4d35698881f 100644 --- a/crates/web-sys/src/features/gen_ChannelMergerNode.rs +++ b/crates/web-sys/src/features/gen_ChannelMergerNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChannelMergerNode , typescript_type = "ChannelMergerNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ChannelMergerNode", + typescript_type = "ChannelMergerNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelMergerNode` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ChannelMergerOptions.rs b/crates/web-sys/src/features/gen_ChannelMergerOptions.rs index c259c8a6602..b35d4374510 100644 --- a/crates/web-sys/src/features/gen_ChannelMergerOptions.rs +++ b/crates/web-sys/src/features/gen_ChannelMergerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChannelMergerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ChannelMergerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelMergerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ChannelPixelLayout.rs b/crates/web-sys/src/features/gen_ChannelPixelLayout.rs index ac5623667bb..48be4ddfa65 100644 --- a/crates/web-sys/src/features/gen_ChannelPixelLayout.rs +++ b/crates/web-sys/src/features/gen_ChannelPixelLayout.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChannelPixelLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ChannelPixelLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelPixelLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ChannelSplitterNode.rs b/crates/web-sys/src/features/gen_ChannelSplitterNode.rs index c094aac417b..bdc153da2f3 100644 --- a/crates/web-sys/src/features/gen_ChannelSplitterNode.rs +++ b/crates/web-sys/src/features/gen_ChannelSplitterNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChannelSplitterNode , typescript_type = "ChannelSplitterNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ChannelSplitterNode", + typescript_type = "ChannelSplitterNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelSplitterNode` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ChannelSplitterOptions.rs b/crates/web-sys/src/features/gen_ChannelSplitterOptions.rs index 2c045ef4d0e..164624ddd3f 100644 --- a/crates/web-sys/src/features/gen_ChannelSplitterOptions.rs +++ b/crates/web-sys/src/features/gen_ChannelSplitterOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChannelSplitterOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ChannelSplitterOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelSplitterOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CharacterData.rs b/crates/web-sys/src/features/gen_CharacterData.rs index 133163013ef..7cd40f1f7b9 100644 --- a/crates/web-sys/src/features/gen_CharacterData.rs +++ b/crates/web-sys/src/features/gen_CharacterData.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = CharacterData , typescript_type = "CharacterData")] + #[wasm_bindgen( + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "CharacterData", + typescript_type = "CharacterData" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CharacterData` class."] #[doc = ""] @@ -11,21 +17,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub type CharacterData; - # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CharacterData", + 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/CharacterData/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn data(this: &CharacterData) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "CharacterData" , js_name = data)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CharacterData", + js_name = "data" + )] #[doc = "Setter for the `data` field of this object."] #[doc = ""] #[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 set_data(this: &CharacterData, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CharacterData", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/length)"] @@ -33,7 +57,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn length(this: &CharacterData) -> u32; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = previousElementSibling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CharacterData", + js_name = "previousElementSibling" + )] #[doc = "Getter for the `previousElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/previousElementSibling)"] @@ -41,35 +71,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CharacterData`, `Element`*"] pub fn previous_element_sibling(this: &CharacterData) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = nextElementSibling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CharacterData", + js_name = "nextElementSibling" + )] #[doc = "Getter for the `nextElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/nextElementSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`, `Element`*"] pub fn next_element_sibling(this: &CharacterData) -> Option; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = appendData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "appendData" + )] #[doc = "The `appendData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/appendData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn append_data(this: &CharacterData, data: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = deleteData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "deleteData" + )] #[doc = "The `deleteData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/deleteData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn delete_data(this: &CharacterData, offset: u32, count: u32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = insertData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "insertData" + )] #[doc = "The `insertData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/insertData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn insert_data(this: &CharacterData, offset: u32, data: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceData" + )] #[doc = "The `replaceData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceData)"] @@ -81,7 +141,13 @@ extern "C" { count: u32, data: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = substringData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "substringData" + )] #[doc = "The `substringData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/substringData)"] @@ -89,28 +155,53 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn substring_data(this: &CharacterData, offset: u32, count: u32) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_0(this: &CharacterData) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -121,7 +212,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -133,7 +230,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -146,7 +249,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -160,7 +269,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -175,7 +290,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -191,28 +312,53 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_0(this: &CharacterData) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -223,7 +369,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -235,7 +387,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -248,7 +406,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -262,7 +426,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -277,7 +447,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] @@ -293,28 +469,53 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_0(this: &CharacterData) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -325,7 +526,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -337,7 +544,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -350,7 +563,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -364,7 +583,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -379,7 +604,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -395,28 +626,53 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_0(this: &CharacterData) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -427,7 +683,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -439,7 +701,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -452,7 +720,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -466,7 +740,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -481,7 +761,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] @@ -497,14 +783,21 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "CharacterData" , js_name = remove)] + #[wasm_bindgen(method, structural, js_class = "CharacterData", js_name = "remove")] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn remove(this: &CharacterData); - # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -514,21 +807,39 @@ extern "C" { this: &CharacterData, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_0(this: &CharacterData) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -539,7 +850,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -551,7 +868,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -564,7 +887,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -578,7 +907,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -593,7 +928,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -609,7 +950,14 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -619,21 +967,39 @@ extern "C" { this: &CharacterData, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_0(this: &CharacterData) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -644,7 +1010,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -656,7 +1028,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -669,7 +1047,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -683,7 +1067,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] @@ -698,7 +1088,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CharacterData", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] diff --git a/crates/web-sys/src/features/gen_CheckerboardReport.rs b/crates/web-sys/src/features/gen_CheckerboardReport.rs index a79c8d18bb9..657a56054b3 100644 --- a/crates/web-sys/src/features/gen_CheckerboardReport.rs +++ b/crates/web-sys/src/features/gen_CheckerboardReport.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CheckerboardReport)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CheckerboardReport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CheckerboardReport` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CheckerboardReportService.rs b/crates/web-sys/src/features/gen_CheckerboardReportService.rs index d5abcf81c25..f24538aae5c 100644 --- a/crates/web-sys/src/features/gen_CheckerboardReportService.rs +++ b/crates/web-sys/src/features/gen_CheckerboardReportService.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CheckerboardReportService , typescript_type = "CheckerboardReportService")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CheckerboardReportService", + typescript_type = "CheckerboardReportService" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CheckerboardReportService` class."] #[doc = ""] @@ -18,28 +22,48 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn new() -> Result; - # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = flushActiveReports)] + #[wasm_bindgen( + method, + structural, + js_class = "CheckerboardReportService", + js_name = "flushActiveReports" + )] #[doc = "The `flushActiveReports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/flushActiveReports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn flush_active_reports(this: &CheckerboardReportService); - # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = getReports)] + #[wasm_bindgen( + method, + structural, + js_class = "CheckerboardReportService", + js_name = "getReports" + )] #[doc = "The `getReports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/getReports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn get_reports(this: &CheckerboardReportService) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = isRecordingEnabled)] + #[wasm_bindgen( + method, + structural, + js_class = "CheckerboardReportService", + js_name = "isRecordingEnabled" + )] #[doc = "The `isRecordingEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/isRecordingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn is_recording_enabled(this: &CheckerboardReportService) -> bool; - # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = setRecordingEnabled)] + #[wasm_bindgen( + method, + structural, + js_class = "CheckerboardReportService", + js_name = "setRecordingEnabled" + )] #[doc = "The `setRecordingEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/setRecordingEnabled)"] diff --git a/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs b/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs index 0461954ca07..22514b94891 100644 --- a/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs +++ b/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChromeFilePropertyBag)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ChromeFilePropertyBag")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChromeFilePropertyBag` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ChromeWorker.rs b/crates/web-sys/src/features/gen_ChromeWorker.rs index 736f22561c9..25855f04730 100644 --- a/crates/web-sys/src/features/gen_ChromeWorker.rs +++ b/crates/web-sys/src/features/gen_ChromeWorker.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Worker , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChromeWorker , typescript_type = "ChromeWorker")] + #[wasm_bindgen( + extends = "Worker", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ChromeWorker", + typescript_type = "ChromeWorker" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChromeWorker` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Client.rs b/crates/web-sys/src/features/gen_Client.rs index ecf6a2aba3b..f283d756d01 100644 --- a/crates/web-sys/src/features/gen_Client.rs +++ b/crates/web-sys/src/features/gen_Client.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Client , typescript_type = "Client")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Client", + typescript_type = "Client" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Client` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub type Client; - # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = url)] + #[wasm_bindgen(structural, method, getter, js_class = "Client", 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/Client/url)"] @@ -19,7 +23,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub fn url(this: &Client) -> String; #[cfg(feature = "FrameType")] - # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = frameType)] + #[wasm_bindgen(structural, method, getter, js_class = "Client", js_name = "frameType")] #[doc = "Getter for the `frameType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType)"] @@ -27,28 +31,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Client`, `FrameType`*"] pub fn frame_type(this: &Client) -> FrameType; #[cfg(feature = "ClientType")] - # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "Client", 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/Client/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`, `ClientType`*"] pub fn type_(this: &Client) -> ClientType; - # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "Client", 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/Client/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub fn id(this: &Client) -> String; - # [wasm_bindgen (catch , method , structural , js_class = "Client" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Client", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub fn post_message(this: &Client, message: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Client" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Client", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"] diff --git a/crates/web-sys/src/features/gen_ClientQueryOptions.rs b/crates/web-sys/src/features/gen_ClientQueryOptions.rs index 84dbc077fdd..64eb204d99c 100644 --- a/crates/web-sys/src/features/gen_ClientQueryOptions.rs +++ b/crates/web-sys/src/features/gen_ClientQueryOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClientQueryOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ClientQueryOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClientQueryOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ClientRectsAndTexts.rs b/crates/web-sys/src/features/gen_ClientRectsAndTexts.rs index e8a8fec00b4..bffa7eec921 100644 --- a/crates/web-sys/src/features/gen_ClientRectsAndTexts.rs +++ b/crates/web-sys/src/features/gen_ClientRectsAndTexts.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClientRectsAndTexts)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ClientRectsAndTexts")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClientRectsAndTexts` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Clients.rs b/crates/web-sys/src/features/gen_Clients.rs index a33c001e4f0..b81efe5c153 100644 --- a/crates/web-sys/src/features/gen_Clients.rs +++ b/crates/web-sys/src/features/gen_Clients.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Clients , typescript_type = "Clients")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Clients", + typescript_type = "Clients" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Clients` class."] #[doc = ""] @@ -11,21 +15,21 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub type Clients; - # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = claim)] + #[wasm_bindgen(method, structural, js_class = "Clients", js_name = "claim")] #[doc = "The `claim()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub fn claim(this: &Clients) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = get)] + #[wasm_bindgen(method, structural, js_class = "Clients", js_name = "get")] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub fn get(this: &Clients, id: &str) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = matchAll)] + #[wasm_bindgen(method, structural, js_class = "Clients", js_name = "matchAll")] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"] @@ -33,7 +37,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub fn match_all(this: &Clients) -> ::js_sys::Promise; #[cfg(feature = "ClientQueryOptions")] - # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = matchAll)] + #[wasm_bindgen(method, structural, js_class = "Clients", js_name = "matchAll")] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"] @@ -43,7 +47,7 @@ extern "C" { this: &Clients, options: &ClientQueryOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = openWindow)] + #[wasm_bindgen(method, structural, js_class = "Clients", js_name = "openWindow")] #[doc = "The `openWindow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/openWindow)"] diff --git a/crates/web-sys/src/features/gen_Clipboard.rs b/crates/web-sys/src/features/gen_Clipboard.rs index b9029e3ad4e..8699e1b4f41 100644 --- a/crates/web-sys/src/features/gen_Clipboard.rs +++ b/crates/web-sys/src/features/gen_Clipboard.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Clipboard , typescript_type = "Clipboard")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Clipboard", + typescript_type = "Clipboard" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Clipboard` class."] #[doc = ""] @@ -16,7 +21,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Clipboard; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = read)] + #[wasm_bindgen(method, structural, js_class = "Clipboard", js_name = "read")] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read)"] @@ -27,7 +32,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read(this: &Clipboard) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = readText)] + #[wasm_bindgen(method, structural, js_class = "Clipboard", js_name = "readText")] #[doc = "The `readText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText)"] @@ -38,7 +43,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_text(this: &Clipboard) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = write)] + #[wasm_bindgen(method, structural, js_class = "Clipboard", js_name = "write")] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write)"] @@ -49,7 +54,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write(this: &Clipboard, data: &::wasm_bindgen::JsValue) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = writeText)] + #[wasm_bindgen(method, structural, js_class = "Clipboard", js_name = "writeText")] #[doc = "The `writeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText)"] diff --git a/crates/web-sys/src/features/gen_ClipboardEvent.rs b/crates/web-sys/src/features/gen_ClipboardEvent.rs index 38410d88d1f..8f3a74f82f4 100644 --- a/crates/web-sys/src/features/gen_ClipboardEvent.rs +++ b/crates/web-sys/src/features/gen_ClipboardEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ClipboardEvent , typescript_type = "ClipboardEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "ClipboardEvent", + typescript_type = "ClipboardEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type ClipboardEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DataTransfer")] - # [wasm_bindgen (structural , method , getter , js_class = "ClipboardEvent" , js_name = clipboardData)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ClipboardEvent", + js_name = "clipboardData" + )] #[doc = "Getter for the `clipboardData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/clipboardData)"] diff --git a/crates/web-sys/src/features/gen_ClipboardEventInit.rs b/crates/web-sys/src/features/gen_ClipboardEventInit.rs index 74290a80f73..c0080cf08af 100644 --- a/crates/web-sys/src/features/gen_ClipboardEventInit.rs +++ b/crates/web-sys/src/features/gen_ClipboardEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ClipboardEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ClipboardItem.rs b/crates/web-sys/src/features/gen_ClipboardItem.rs index ba376129676..5864d9f6501 100644 --- a/crates/web-sys/src/features/gen_ClipboardItem.rs +++ b/crates/web-sys/src/features/gen_ClipboardItem.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardItem , typescript_type = "ClipboardItem")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ClipboardItem", + typescript_type = "ClipboardItem" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardItem` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type ClipboardItem; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PresentationStyle")] - # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , js_name = presentationStyle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ClipboardItem", + js_name = "presentationStyle" + )] #[doc = "Getter for the `presentationStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/presentationStyle)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn presentation_style(this: &ClipboardItem) -> PresentationStyle; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , js_name = lastModified)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ClipboardItem", + 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/ClipboardItem/lastModified)"] @@ -39,7 +55,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn last_modified(this: &ClipboardItem) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , js_name = delayed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ClipboardItem", + js_name = "delayed" + )] #[doc = "Getter for the `delayed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/delayed)"] @@ -50,7 +72,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn delayed(this: &ClipboardItem) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , js_name = types)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ClipboardItem", + js_name = "types" + )] #[doc = "Getter for the `types` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/types)"] @@ -61,7 +89,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn types(this: &ClipboardItem) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ClipboardItem" , js_name = getType)] + #[wasm_bindgen(method, structural, js_class = "ClipboardItem", js_name = "getType")] #[doc = "The `getType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/getType)"] diff --git a/crates/web-sys/src/features/gen_ClipboardItemOptions.rs b/crates/web-sys/src/features/gen_ClipboardItemOptions.rs index 00056db0300..f2317fcef55 100644 --- a/crates/web-sys/src/features/gen_ClipboardItemOptions.rs +++ b/crates/web-sys/src/features/gen_ClipboardItemOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardItemOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ClipboardItemOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardItemOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ClipboardPermissionDescriptor.rs b/crates/web-sys/src/features/gen_ClipboardPermissionDescriptor.rs index 32568bb889b..cbf7b59159a 100644 --- a/crates/web-sys/src/features/gen_ClipboardPermissionDescriptor.rs +++ b/crates/web-sys/src/features/gen_ClipboardPermissionDescriptor.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardPermissionDescriptor)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ClipboardPermissionDescriptor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardPermissionDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CloseEvent.rs b/crates/web-sys/src/features/gen_CloseEvent.rs index 0af95b5fb88..95682b5f8ce 100644 --- a/crates/web-sys/src/features/gen_CloseEvent.rs +++ b/crates/web-sys/src/features/gen_CloseEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = CloseEvent , typescript_type = "CloseEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "CloseEvent", + typescript_type = "CloseEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CloseEvent` class."] #[doc = ""] @@ -11,21 +16,33 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub type CloseEvent; - # [wasm_bindgen (structural , method , getter , js_class = "CloseEvent" , js_name = wasClean)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CloseEvent", + js_name = "wasClean" + )] #[doc = "Getter for the `wasClean` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/wasClean)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub fn was_clean(this: &CloseEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "CloseEvent" , js_name = code)] + #[wasm_bindgen(structural, method, getter, js_class = "CloseEvent", 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/CloseEvent/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub fn code(this: &CloseEvent) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "CloseEvent" , js_name = reason)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CloseEvent", + js_name = "reason" + )] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/reason)"] diff --git a/crates/web-sys/src/features/gen_CloseEventInit.rs b/crates/web-sys/src/features/gen_CloseEventInit.rs index c9125973fac..7ccee4a46f6 100644 --- a/crates/web-sys/src/features/gen_CloseEventInit.rs +++ b/crates/web-sys/src/features/gen_CloseEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CloseEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CloseEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CloseEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CollectedClientData.rs b/crates/web-sys/src/features/gen_CollectedClientData.rs index 6c06dfa76fc..036fcab3382 100644 --- a/crates/web-sys/src/features/gen_CollectedClientData.rs +++ b/crates/web-sys/src/features/gen_CollectedClientData.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CollectedClientData)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CollectedClientData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CollectedClientData` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Comment.rs b/crates/web-sys/src/features/gen_Comment.rs index d061d996763..51551a4c823 100644 --- a/crates/web-sys/src/features/gen_Comment.rs +++ b/crates/web-sys/src/features/gen_Comment.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Comment , typescript_type = "Comment")] + #[wasm_bindgen( + extends = "CharacterData", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Comment", + typescript_type = "Comment" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Comment` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CompositionEvent.rs b/crates/web-sys/src/features/gen_CompositionEvent.rs index 550211e0317..9614e7c267b 100644 --- a/crates/web-sys/src/features/gen_CompositionEvent.rs +++ b/crates/web-sys/src/features/gen_CompositionEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = CompositionEvent , typescript_type = "CompositionEvent")] + #[wasm_bindgen( + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "CompositionEvent", + typescript_type = "CompositionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CompositionEvent` class."] #[doc = ""] @@ -11,14 +17,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub type CompositionEvent; - # [wasm_bindgen (structural , method , getter , js_class = "CompositionEvent" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CompositionEvent", + 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/CompositionEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn data(this: &CompositionEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "CompositionEvent" , js_name = locale)] + #[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)"] @@ -43,14 +61,24 @@ extern "C" { type_: &str, event_init_dict: &CompositionEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CompositionEvent", + js_name = "initCompositionEvent" + )] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn init_composition_event(this: &CompositionEvent, type_arg: &str); - # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CompositionEvent", + js_name = "initCompositionEvent" + )] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] @@ -61,7 +89,12 @@ extern "C" { type_arg: &str, can_bubble_arg: bool, ); - # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CompositionEvent", + js_name = "initCompositionEvent" + )] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] @@ -74,7 +107,12 @@ extern "C" { cancelable_arg: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CompositionEvent", + js_name = "initCompositionEvent" + )] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] @@ -88,7 +126,12 @@ extern "C" { view_arg: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CompositionEvent", + js_name = "initCompositionEvent" + )] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] @@ -103,7 +146,12 @@ extern "C" { data_arg: Option<&str>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CompositionEvent", + js_name = "initCompositionEvent" + )] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] diff --git a/crates/web-sys/src/features/gen_CompositionEventInit.rs b/crates/web-sys/src/features/gen_CompositionEventInit.rs index 2c45e5fb5f7..c0c779f09b0 100644 --- a/crates/web-sys/src/features/gen_CompositionEventInit.rs +++ b/crates/web-sys/src/features/gen_CompositionEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CompositionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CompositionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CompositionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ComputedEffectTiming.rs b/crates/web-sys/src/features/gen_ComputedEffectTiming.rs index 41354056738..b1ef60b1154 100644 --- a/crates/web-sys/src/features/gen_ComputedEffectTiming.rs +++ b/crates/web-sys/src/features/gen_ComputedEffectTiming.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ComputedEffectTiming)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ComputedEffectTiming")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ComputedEffectTiming` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConnStatusDict.rs b/crates/web-sys/src/features/gen_ConnStatusDict.rs index 64f8522f30f..280e6710d8e 100644 --- a/crates/web-sys/src/features/gen_ConnStatusDict.rs +++ b/crates/web-sys/src/features/gen_ConnStatusDict.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConnStatusDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConnStatusDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConnStatusDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleCounter.rs b/crates/web-sys/src/features/gen_ConsoleCounter.rs index 84afd5df0c4..c079dc8689d 100644 --- a/crates/web-sys/src/features/gen_ConsoleCounter.rs +++ b/crates/web-sys/src/features/gen_ConsoleCounter.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleCounter)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleCounter")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleCounter` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleCounterError.rs b/crates/web-sys/src/features/gen_ConsoleCounterError.rs index bfa25ad3db0..2c3b43009b3 100644 --- a/crates/web-sys/src/features/gen_ConsoleCounterError.rs +++ b/crates/web-sys/src/features/gen_ConsoleCounterError.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleCounterError)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleCounterError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleCounterError` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleEvent.rs b/crates/web-sys/src/features/gen_ConsoleEvent.rs index a30cd37941a..a5f6a8eb793 100644 --- a/crates/web-sys/src/features/gen_ConsoleEvent.rs +++ b/crates/web-sys/src/features/gen_ConsoleEvent.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleEvent)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleEvent` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleInstance.rs b/crates/web-sys/src/features/gen_ConsoleInstance.rs index c27a311d820..77e01c31d2a 100644 --- a/crates/web-sys/src/features/gen_ConsoleInstance.rs +++ b/crates/web-sys/src/features/gen_ConsoleInstance.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ConsoleInstance , typescript_type = "ConsoleInstance")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "ConsoleInstance" , typescript_type = "ConsoleInstance")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleInstance` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs b/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs index 6a4f129d860..2d6397ab19f 100644 --- a/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs +++ b/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleInstanceOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleInstanceOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleInstanceOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs b/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs index d1e2674169a..0f90d510536 100644 --- a/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs +++ b/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleProfileEvent)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleProfileEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleProfileEvent` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleStackEntry.rs b/crates/web-sys/src/features/gen_ConsoleStackEntry.rs index b63d60b3c44..5b28d628c50 100644 --- a/crates/web-sys/src/features/gen_ConsoleStackEntry.rs +++ b/crates/web-sys/src/features/gen_ConsoleStackEntry.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleStackEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleStackEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleStackEntry` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleTimerError.rs b/crates/web-sys/src/features/gen_ConsoleTimerError.rs index dacab00b712..9bb4b7fd066 100644 --- a/crates/web-sys/src/features/gen_ConsoleTimerError.rs +++ b/crates/web-sys/src/features/gen_ConsoleTimerError.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleTimerError)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleTimerError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleTimerError` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs b/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs index 3784b676f2d..7dedd532adb 100644 --- a/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs +++ b/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleTimerLogOrEnd)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleTimerLogOrEnd")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleTimerLogOrEnd` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConsoleTimerStart.rs b/crates/web-sys/src/features/gen_ConsoleTimerStart.rs index 4e500e41047..8ed53975aed 100644 --- a/crates/web-sys/src/features/gen_ConsoleTimerStart.rs +++ b/crates/web-sys/src/features/gen_ConsoleTimerStart.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleTimerStart)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConsoleTimerStart")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleTimerStart` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConstantSourceNode.rs b/crates/web-sys/src/features/gen_ConstantSourceNode.rs index 5649d044d9f..7fa9d78fa00 100644 --- a/crates/web-sys/src/features/gen_ConstantSourceNode.rs +++ b/crates/web-sys/src/features/gen_ConstantSourceNode.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ConstantSourceNode , typescript_type = "ConstantSourceNode")] + #[wasm_bindgen( + extends = "AudioScheduledSourceNode", + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ConstantSourceNode", + typescript_type = "ConstantSourceNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstantSourceNode` class."] #[doc = ""] @@ -12,21 +19,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub type ConstantSourceNode; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "ConstantSourceNode" , js_name = offset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ConstantSourceNode", + js_name = "offset" + )] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/offset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `ConstantSourceNode`*"] pub fn offset(this: &ConstantSourceNode) -> AudioParam; - # [wasm_bindgen (structural , method , getter , js_class = "ConstantSourceNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ConstantSourceNode", + js_name = "onended" + )] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn onended(this: &ConstantSourceNode) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ConstantSourceNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ConstantSourceNode", + js_name = "onended" + )] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/onended)"] @@ -52,28 +77,52 @@ extern "C" { context: &BaseAudioContext, options: &ConstantSourceOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ConstantSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn start(this: &ConstantSourceNode) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ConstantSourceNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn start_with_when(this: &ConstantSourceNode, when: f64) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ConstantSourceNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn stop(this: &ConstantSourceNode) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ConstantSourceNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/stop)"] diff --git a/crates/web-sys/src/features/gen_ConstantSourceOptions.rs b/crates/web-sys/src/features/gen_ConstantSourceOptions.rs index f93dcb84aa1..be82c617552 100644 --- a/crates/web-sys/src/features/gen_ConstantSourceOptions.rs +++ b/crates/web-sys/src/features/gen_ConstantSourceOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstantSourceOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConstantSourceOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstantSourceOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConstrainBooleanParameters.rs b/crates/web-sys/src/features/gen_ConstrainBooleanParameters.rs index 17901cfa900..bfc33bfa595 100644 --- a/crates/web-sys/src/features/gen_ConstrainBooleanParameters.rs +++ b/crates/web-sys/src/features/gen_ConstrainBooleanParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainBooleanParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConstrainBooleanParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainBooleanParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConstrainDomStringParameters.rs b/crates/web-sys/src/features/gen_ConstrainDomStringParameters.rs index 13b7a173c6a..996b726d550 100644 --- a/crates/web-sys/src/features/gen_ConstrainDomStringParameters.rs +++ b/crates/web-sys/src/features/gen_ConstrainDomStringParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainDOMStringParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConstrainDOMStringParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainDomStringParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConstrainDoubleRange.rs b/crates/web-sys/src/features/gen_ConstrainDoubleRange.rs index 446be61e785..61a5f510b49 100644 --- a/crates/web-sys/src/features/gen_ConstrainDoubleRange.rs +++ b/crates/web-sys/src/features/gen_ConstrainDoubleRange.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainDoubleRange)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConstrainDoubleRange")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainDoubleRange` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConstrainLongRange.rs b/crates/web-sys/src/features/gen_ConstrainLongRange.rs index 668dbe338bb..705e3957807 100644 --- a/crates/web-sys/src/features/gen_ConstrainLongRange.rs +++ b/crates/web-sys/src/features/gen_ConstrainLongRange.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainLongRange)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConstrainLongRange")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainLongRange` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ContextAttributes2d.rs b/crates/web-sys/src/features/gen_ContextAttributes2d.rs index fd322265ab4..3ce9e50a824 100644 --- a/crates/web-sys/src/features/gen_ContextAttributes2d.rs +++ b/crates/web-sys/src/features/gen_ContextAttributes2d.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ContextAttributes2D)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ContextAttributes2D")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ContextAttributes2d` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConvertCoordinateOptions.rs b/crates/web-sys/src/features/gen_ConvertCoordinateOptions.rs index 9578f2b6b27..69c124a0325 100644 --- a/crates/web-sys/src/features/gen_ConvertCoordinateOptions.rs +++ b/crates/web-sys/src/features/gen_ConvertCoordinateOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConvertCoordinateOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConvertCoordinateOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConvertCoordinateOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ConvolverNode.rs b/crates/web-sys/src/features/gen_ConvolverNode.rs index 0974b8a6e5d..7bdd0ce480c 100644 --- a/crates/web-sys/src/features/gen_ConvolverNode.rs +++ b/crates/web-sys/src/features/gen_ConvolverNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ConvolverNode , typescript_type = "ConvolverNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ConvolverNode", + typescript_type = "ConvolverNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConvolverNode` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] pub type ConvolverNode; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (structural , method , getter , js_class = "ConvolverNode" , js_name = buffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ConvolverNode", + js_name = "buffer" + )] #[doc = "Getter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"] @@ -20,21 +32,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"] pub fn buffer(this: &ConvolverNode) -> Option; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (structural , method , setter , js_class = "ConvolverNode" , js_name = buffer)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ConvolverNode", + js_name = "buffer" + )] #[doc = "Setter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"] pub fn set_buffer(this: &ConvolverNode, value: Option<&AudioBuffer>); - # [wasm_bindgen (structural , method , getter , js_class = "ConvolverNode" , js_name = normalize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ConvolverNode", + js_name = "normalize" + )] #[doc = "Getter for the `normalize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] pub fn normalize(this: &ConvolverNode) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "ConvolverNode" , js_name = normalize)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ConvolverNode", + js_name = "normalize" + )] #[doc = "Setter for the `normalize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"] diff --git a/crates/web-sys/src/features/gen_ConvolverOptions.rs b/crates/web-sys/src/features/gen_ConvolverOptions.rs index dc895baf53b..317274a66bd 100644 --- a/crates/web-sys/src/features/gen_ConvolverOptions.rs +++ b/crates/web-sys/src/features/gen_ConvolverOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConvolverOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ConvolverOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConvolverOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Coordinates.rs b/crates/web-sys/src/features/gen_Coordinates.rs index 10850a2d3ef..f10c71e4d41 100644 --- a/crates/web-sys/src/features/gen_Coordinates.rs +++ b/crates/web-sys/src/features/gen_Coordinates.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Coordinates , typescript_type = "Coordinates")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "Coordinates" , typescript_type = "Coordinates")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Coordinates` class."] #[doc = ""] @@ -11,49 +11,91 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub type Coordinates; - # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = latitude)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Coordinates", + js_name = "latitude" + )] #[doc = "Getter for the `latitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/latitude)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn latitude(this: &Coordinates) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = longitude)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Coordinates", + js_name = "longitude" + )] #[doc = "Getter for the `longitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/longitude)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn longitude(this: &Coordinates) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = altitude)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Coordinates", + js_name = "altitude" + )] #[doc = "Getter for the `altitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitude)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn altitude(this: &Coordinates) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = accuracy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Coordinates", + js_name = "accuracy" + )] #[doc = "Getter for the `accuracy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/accuracy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn accuracy(this: &Coordinates) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = altitudeAccuracy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Coordinates", + js_name = "altitudeAccuracy" + )] #[doc = "Getter for the `altitudeAccuracy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitudeAccuracy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn altitude_accuracy(this: &Coordinates) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = heading)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Coordinates", + js_name = "heading" + )] #[doc = "Getter for the `heading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/heading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn heading(this: &Coordinates) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = speed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Coordinates", + js_name = "speed" + )] #[doc = "Getter for the `speed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/speed)"] diff --git a/crates/web-sys/src/features/gen_Credential.rs b/crates/web-sys/src/features/gen_Credential.rs index 699f5eeb301..9f8ed3f3a8b 100644 --- a/crates/web-sys/src/features/gen_Credential.rs +++ b/crates/web-sys/src/features/gen_Credential.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Credential , typescript_type = "Credential")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Credential", + typescript_type = "Credential" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Credential` class."] #[doc = ""] @@ -11,14 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`*"] pub type Credential; - # [wasm_bindgen (structural , method , getter , js_class = "Credential" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "Credential", 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/Credential/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`*"] pub fn id(this: &Credential) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Credential" , js_name = type)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_CredentialCreationOptions.rs b/crates/web-sys/src/features/gen_CredentialCreationOptions.rs index 8c9958c144b..1be23917442 100644 --- a/crates/web-sys/src/features/gen_CredentialCreationOptions.rs +++ b/crates/web-sys/src/features/gen_CredentialCreationOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialCreationOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CredentialCreationOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CredentialCreationOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CredentialRequestOptions.rs b/crates/web-sys/src/features/gen_CredentialRequestOptions.rs index 61537f7b8f7..0db274098f8 100644 --- a/crates/web-sys/src/features/gen_CredentialRequestOptions.rs +++ b/crates/web-sys/src/features/gen_CredentialRequestOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialRequestOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CredentialRequestOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CredentialRequestOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CredentialsContainer.rs b/crates/web-sys/src/features/gen_CredentialsContainer.rs index fb008e96823..70a1457e1a2 100644 --- a/crates/web-sys/src/features/gen_CredentialsContainer.rs +++ b/crates/web-sys/src/features/gen_CredentialsContainer.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialsContainer , typescript_type = "CredentialsContainer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CredentialsContainer", + typescript_type = "CredentialsContainer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CredentialsContainer` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] pub type CredentialsContainer; - # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = create)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CredentialsContainer", + js_name = "create" + )] #[doc = "The `create()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] pub fn create(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CredentialCreationOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = create)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CredentialsContainer", + js_name = "create" + )] #[doc = "The `create()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"] @@ -29,7 +45,13 @@ extern "C" { this: &CredentialsContainer, options: &CredentialCreationOptions, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = get)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CredentialsContainer", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"] @@ -37,7 +59,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] pub fn get(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CredentialRequestOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = get)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CredentialsContainer", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"] @@ -47,7 +75,13 @@ extern "C" { this: &CredentialsContainer, options: &CredentialRequestOptions, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = preventSilentAccess)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CredentialsContainer", + js_name = "preventSilentAccess" + )] #[doc = "The `preventSilentAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/preventSilentAccess)"] @@ -56,7 +90,13 @@ extern "C" { pub fn prevent_silent_access(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Credential")] - # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = store)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CredentialsContainer", + js_name = "store" + )] #[doc = "The `store()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/store)"] diff --git a/crates/web-sys/src/features/gen_Crypto.rs b/crates/web-sys/src/features/gen_Crypto.rs index 4c46bfd15d2..24c2008d23e 100644 --- a/crates/web-sys/src/features/gen_Crypto.rs +++ b/crates/web-sys/src/features/gen_Crypto.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Crypto , typescript_type = "Crypto")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Crypto", + typescript_type = "Crypto" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Crypto` class."] #[doc = ""] @@ -12,14 +16,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] pub type Crypto; #[cfg(feature = "SubtleCrypto")] - # [wasm_bindgen (structural , method , getter , js_class = "Crypto" , js_name = subtle)] + #[wasm_bindgen(structural, method, getter, js_class = "Crypto", js_name = "subtle")] #[doc = "Getter for the `subtle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`, `SubtleCrypto`*"] pub fn subtle(this: &Crypto) -> SubtleCrypto; - # [wasm_bindgen (catch , method , structural , js_class = "Crypto" , js_name = getRandomValues)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Crypto", + js_name = "getRandomValues" + )] #[doc = "The `getRandomValues()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues)"] @@ -29,7 +39,13 @@ extern "C" { this: &Crypto, array: &::js_sys::Object, ) -> Result<::js_sys::Object, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Crypto" , js_name = getRandomValues)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Crypto", + js_name = "getRandomValues" + )] #[doc = "The `getRandomValues()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues)"] @@ -39,7 +55,7 @@ extern "C" { this: &Crypto, array: &mut [u8], ) -> Result<::js_sys::Object, JsValue>; - # [wasm_bindgen (method , structural , js_class = "Crypto" , js_name = randomUUID)] + #[wasm_bindgen(method, structural, js_class = "Crypto", js_name = "randomUUID")] #[doc = "The `randomUUID()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID)"] diff --git a/crates/web-sys/src/features/gen_CryptoKey.rs b/crates/web-sys/src/features/gen_CryptoKey.rs index 7e8773eb127..3513fe20d19 100644 --- a/crates/web-sys/src/features/gen_CryptoKey.rs +++ b/crates/web-sys/src/features/gen_CryptoKey.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CryptoKey , typescript_type = "CryptoKey")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CryptoKey", + typescript_type = "CryptoKey" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CryptoKey` class."] #[doc = ""] @@ -11,28 +15,41 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub type CryptoKey; - # [wasm_bindgen (structural , method , getter , js_class = "CryptoKey" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "CryptoKey", 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/CryptoKey/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub fn type_(this: &CryptoKey) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "CryptoKey" , js_name = extractable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CryptoKey", + js_name = "extractable" + )] #[doc = "Getter for the `extractable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/extractable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub fn extractable(this: &CryptoKey) -> bool; - # [wasm_bindgen (structural , catch , method , getter , js_class = "CryptoKey" , js_name = algorithm)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "CryptoKey", + js_name = "algorithm" + )] #[doc = "Getter for the `algorithm` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/algorithm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub fn algorithm(this: &CryptoKey) -> Result<::js_sys::Object, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "CryptoKey" , js_name = usages)] + #[wasm_bindgen(structural, method, getter, js_class = "CryptoKey", js_name = "usages")] #[doc = "Getter for the `usages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/usages)"] diff --git a/crates/web-sys/src/features/gen_CryptoKeyPair.rs b/crates/web-sys/src/features/gen_CryptoKeyPair.rs index 5026e6398c6..9c7dd869327 100644 --- a/crates/web-sys/src/features/gen_CryptoKeyPair.rs +++ b/crates/web-sys/src/features/gen_CryptoKeyPair.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CryptoKeyPair)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CryptoKeyPair")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CryptoKeyPair` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Csp.rs b/crates/web-sys/src/features/gen_Csp.rs index 0fbea97c99d..be1f9ecd04a 100644 --- a/crates/web-sys/src/features/gen_Csp.rs +++ b/crates/web-sys/src/features/gen_Csp.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSP)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CSP")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Csp` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CspPolicies.rs b/crates/web-sys/src/features/gen_CspPolicies.rs index 96d4ad5337b..3e561e97b2e 100644 --- a/crates/web-sys/src/features/gen_CspPolicies.rs +++ b/crates/web-sys/src/features/gen_CspPolicies.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPPolicies)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CSPPolicies")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CspPolicies` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CspReport.rs b/crates/web-sys/src/features/gen_CspReport.rs index 6938a2d32fd..5abb103666c 100644 --- a/crates/web-sys/src/features/gen_CspReport.rs +++ b/crates/web-sys/src/features/gen_CspReport.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPReport)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CSPReport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CspReport` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CspReportProperties.rs b/crates/web-sys/src/features/gen_CspReportProperties.rs index c20edf21280..b0525efd1db 100644 --- a/crates/web-sys/src/features/gen_CspReportProperties.rs +++ b/crates/web-sys/src/features/gen_CspReportProperties.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPReportProperties)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CSPReportProperties")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CspReportProperties` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssAnimation.rs b/crates/web-sys/src/features/gen_CssAnimation.rs index ea0df7c6296..a6d060cad91 100644 --- a/crates/web-sys/src/features/gen_CssAnimation.rs +++ b/crates/web-sys/src/features/gen_CssAnimation.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Animation , extends = EventTarget , extends = :: js_sys :: Object , js_name = CSSAnimation , typescript_type = "CSSAnimation")] + #[wasm_bindgen( + extends = "Animation", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "CSSAnimation", + typescript_type = "CSSAnimation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssAnimation` class."] #[doc = ""] @@ -11,7 +17,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssAnimation`*"] pub type CssAnimation; - # [wasm_bindgen (structural , method , getter , js_class = "CSSAnimation" , js_name = animationName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSAnimation", + js_name = "animationName" + )] #[doc = "Getter for the `animationName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSAnimation/animationName)"] diff --git a/crates/web-sys/src/features/gen_CssConditionRule.rs b/crates/web-sys/src/features/gen_CssConditionRule.rs index a08a051d6a0..8844f77e791 100644 --- a/crates/web-sys/src/features/gen_CssConditionRule.rs +++ b/crates/web-sys/src/features/gen_CssConditionRule.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSConditionRule , typescript_type = "CSSConditionRule")] + #[wasm_bindgen( + extends = "CssGroupingRule", + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSConditionRule", + typescript_type = "CSSConditionRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssConditionRule` class."] #[doc = ""] @@ -11,14 +17,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] pub type CssConditionRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSConditionRule" , js_name = conditionText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSConditionRule", + js_name = "conditionText" + )] #[doc = "Getter for the `conditionText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSConditionRule" , js_name = conditionText)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSConditionRule", + js_name = "conditionText" + )] #[doc = "Setter for the `conditionText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"] diff --git a/crates/web-sys/src/features/gen_CssCounterStyleRule.rs b/crates/web-sys/src/features/gen_CssCounterStyleRule.rs index 99a4e127c6d..230d543274a 100644 --- a/crates/web-sys/src/features/gen_CssCounterStyleRule.rs +++ b/crates/web-sys/src/features/gen_CssCounterStyleRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSCounterStyleRule , typescript_type = "CSSCounterStyleRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSCounterStyleRule", + typescript_type = "CSSCounterStyleRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssCounterStyleRule` class."] #[doc = ""] @@ -11,154 +16,286 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub type CssCounterStyleRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + 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/CSSCounterStyleRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn name(this: &CssCounterStyleRule) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = system)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "system" + )] #[doc = "Getter for the `system` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = system)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "system" + )] #[doc = "Setter for the `system` field of this object."] #[doc = ""] #[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 set_system(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = symbols)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "symbols" + )] #[doc = "Getter for the `symbols` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = symbols)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "symbols" + )] #[doc = "Setter for the `symbols` field of this object."] #[doc = ""] #[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 set_symbols(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = additiveSymbols)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "additiveSymbols" + )] #[doc = "Getter for the `additiveSymbols` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = additiveSymbols)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "additiveSymbols" + )] #[doc = "Setter for the `additiveSymbols` field of this object."] #[doc = ""] #[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 set_additive_symbols(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = negative)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "negative" + )] #[doc = "Getter for the `negative` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = negative)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "negative" + )] #[doc = "Setter for the `negative` field of this object."] #[doc = ""] #[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 set_negative(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = prefix)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + 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/CSSCounterStyleRule/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn prefix(this: &CssCounterStyleRule) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = prefix)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "prefix" + )] #[doc = "Setter for the `prefix` field of this object."] #[doc = ""] #[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 set_prefix(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = suffix)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "suffix" + )] #[doc = "Getter for the `suffix` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = suffix)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "suffix" + )] #[doc = "Setter for the `suffix` field of this object."] #[doc = ""] #[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 set_suffix(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = range)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "range" + )] #[doc = "Getter for the `range` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = range)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "range" + )] #[doc = "Setter for the `range` field of this object."] #[doc = ""] #[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 set_range(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = pad)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "pad" + )] #[doc = "Getter for the `pad` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = pad)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "pad" + )] #[doc = "Setter for the `pad` field of this object."] #[doc = ""] #[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 set_pad(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = speakAs)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "speakAs" + )] #[doc = "Getter for the `speakAs` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = speakAs)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "speakAs" + )] #[doc = "Setter for the `speakAs` field of this object."] #[doc = ""] #[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 set_speak_as(this: &CssCounterStyleRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = fallback)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSCounterStyleRule", + js_name = "fallback" + )] #[doc = "Getter for the `fallback` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = fallback)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSCounterStyleRule", + js_name = "fallback" + )] #[doc = "Setter for the `fallback` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/fallback)"] diff --git a/crates/web-sys/src/features/gen_CssFontFaceRule.rs b/crates/web-sys/src/features/gen_CssFontFaceRule.rs index b92001157e4..3e72141f000 100644 --- a/crates/web-sys/src/features/gen_CssFontFaceRule.rs +++ b/crates/web-sys/src/features/gen_CssFontFaceRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSFontFaceRule , typescript_type = "CSSFontFaceRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSFontFaceRule", + typescript_type = "CSSFontFaceRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssFontFaceRule` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssFontFaceRule`*"] pub type CssFontFaceRule; #[cfg(feature = "CssStyleDeclaration")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSFontFaceRule" , js_name = style)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSFontFaceRule", + js_name = "style" + )] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule/style)"] diff --git a/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs b/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs index 976e1479bb3..a6bf08cdb61 100644 --- a/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs +++ b/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSFontFeatureValuesRule , typescript_type = "CSSFontFeatureValuesRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSFontFeatureValuesRule", + typescript_type = "CSSFontFeatureValuesRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssFontFeatureValuesRule` class."] #[doc = ""] @@ -11,28 +16,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] pub type CssFontFeatureValuesRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSFontFeatureValuesRule" , js_name = fontFamily)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSFontFeatureValuesRule", + js_name = "fontFamily" + )] #[doc = "Getter for the `fontFamily` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = fontFamily)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSFontFeatureValuesRule", + js_name = "fontFamily" + )] #[doc = "Setter for the `fontFamily` field of this object."] #[doc = ""] #[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 set_font_family(this: &CssFontFeatureValuesRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSFontFeatureValuesRule" , js_name = valueText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSFontFeatureValuesRule", + js_name = "valueText" + )] #[doc = "Getter for the `valueText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = valueText)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSFontFeatureValuesRule", + js_name = "valueText" + )] #[doc = "Setter for the `valueText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"] diff --git a/crates/web-sys/src/features/gen_CssGroupingRule.rs b/crates/web-sys/src/features/gen_CssGroupingRule.rs index 9c0fe854d51..3200501aa49 100644 --- a/crates/web-sys/src/features/gen_CssGroupingRule.rs +++ b/crates/web-sys/src/features/gen_CssGroupingRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSGroupingRule , typescript_type = "CSSGroupingRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSGroupingRule", + typescript_type = "CSSGroupingRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssGroupingRule` class."] #[doc = ""] @@ -12,28 +17,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] pub type CssGroupingRule; #[cfg(feature = "CssRuleList")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSGroupingRule" , js_name = cssRules)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSGroupingRule", + js_name = "cssRules" + )] #[doc = "Getter for the `cssRules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/cssRules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`, `CssRuleList`*"] pub fn css_rules(this: &CssGroupingRule) -> CssRuleList; - # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = deleteRule)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSGroupingRule", + js_name = "deleteRule" + )] #[doc = "The `deleteRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/deleteRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] pub fn delete_rule(this: &CssGroupingRule, index: u32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSGroupingRule", + js_name = "insertRule" + )] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] pub fn insert_rule(this: &CssGroupingRule, rule: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSGroupingRule", + js_name = "insertRule" + )] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] diff --git a/crates/web-sys/src/features/gen_CssImportRule.rs b/crates/web-sys/src/features/gen_CssImportRule.rs index 11ad6011d5f..6592aacd169 100644 --- a/crates/web-sys/src/features/gen_CssImportRule.rs +++ b/crates/web-sys/src/features/gen_CssImportRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSImportRule , typescript_type = "CSSImportRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSImportRule", + typescript_type = "CSSImportRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssImportRule` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"] pub type CssImportRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSImportRule" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSImportRule", + 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/CSSImportRule/href)"] @@ -19,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"] pub fn href(this: &CssImportRule) -> String; #[cfg(feature = "MediaList")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSImportRule" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSImportRule", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/media)"] @@ -27,7 +44,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssImportRule`, `MediaList`*"] pub fn media(this: &CssImportRule) -> Option; #[cfg(feature = "CssStyleSheet")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSImportRule" , js_name = styleSheet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSImportRule", + js_name = "styleSheet" + )] #[doc = "Getter for the `styleSheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/styleSheet)"] diff --git a/crates/web-sys/src/features/gen_CssKeyframeRule.rs b/crates/web-sys/src/features/gen_CssKeyframeRule.rs index 547d97b90f6..89b4ac59e6b 100644 --- a/crates/web-sys/src/features/gen_CssKeyframeRule.rs +++ b/crates/web-sys/src/features/gen_CssKeyframeRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSKeyframeRule , typescript_type = "CSSKeyframeRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSKeyframeRule", + typescript_type = "CSSKeyframeRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssKeyframeRule` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] pub type CssKeyframeRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframeRule" , js_name = keyText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSKeyframeRule", + js_name = "keyText" + )] #[doc = "Getter for the `keyText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSKeyframeRule" , js_name = keyText)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSKeyframeRule", + js_name = "keyText" + )] #[doc = "Setter for the `keyText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"] @@ -26,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] pub fn set_key_text(this: &CssKeyframeRule, value: &str); #[cfg(feature = "CssStyleDeclaration")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframeRule" , js_name = style)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSKeyframeRule", + js_name = "style" + )] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/style)"] diff --git a/crates/web-sys/src/features/gen_CssKeyframesRule.rs b/crates/web-sys/src/features/gen_CssKeyframesRule.rs index 27c636c8eac..e6a9ead3f8f 100644 --- a/crates/web-sys/src/features/gen_CssKeyframesRule.rs +++ b/crates/web-sys/src/features/gen_CssKeyframesRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSKeyframesRule , typescript_type = "CSSKeyframesRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSKeyframesRule", + typescript_type = "CSSKeyframesRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssKeyframesRule` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub type CssKeyframesRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframesRule" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSKeyframesRule", + 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/CSSKeyframesRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn name(this: &CssKeyframesRule) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "CSSKeyframesRule" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSKeyframesRule", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/name)"] @@ -26,21 +43,37 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn set_name(this: &CssKeyframesRule, value: &str); #[cfg(feature = "CssRuleList")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframesRule" , js_name = cssRules)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSKeyframesRule", + js_name = "cssRules" + )] #[doc = "Getter for the `cssRules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/cssRules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`, `CssRuleList`*"] pub fn css_rules(this: &CssKeyframesRule) -> CssRuleList; - # [wasm_bindgen (method , structural , js_class = "CSSKeyframesRule" , js_name = appendRule)] + #[wasm_bindgen( + method, + structural, + js_class = "CSSKeyframesRule", + js_name = "appendRule" + )] #[doc = "The `appendRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/appendRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn append_rule(this: &CssKeyframesRule, rule: &str); - # [wasm_bindgen (method , structural , js_class = "CSSKeyframesRule" , js_name = deleteRule)] + #[wasm_bindgen( + method, + structural, + js_class = "CSSKeyframesRule", + js_name = "deleteRule" + )] #[doc = "The `deleteRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/deleteRule)"] @@ -48,7 +81,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn delete_rule(this: &CssKeyframesRule, select: &str); #[cfg(feature = "CssKeyframeRule")] - # [wasm_bindgen (method , structural , js_class = "CSSKeyframesRule" , js_name = findRule)] + #[wasm_bindgen( + method, + structural, + js_class = "CSSKeyframesRule", + js_name = "findRule" + )] #[doc = "The `findRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/findRule)"] diff --git a/crates/web-sys/src/features/gen_CssMediaRule.rs b/crates/web-sys/src/features/gen_CssMediaRule.rs index fa3b215f7cc..32c7b83c9c1 100644 --- a/crates/web-sys/src/features/gen_CssMediaRule.rs +++ b/crates/web-sys/src/features/gen_CssMediaRule.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssConditionRule , extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSMediaRule , typescript_type = "CSSMediaRule")] + #[wasm_bindgen( + extends = "CssConditionRule", + extends = "CssGroupingRule", + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSMediaRule", + typescript_type = "CSSMediaRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssMediaRule` class."] #[doc = ""] @@ -12,7 +19,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssMediaRule`*"] pub type CssMediaRule; #[cfg(feature = "MediaList")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSMediaRule" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSMediaRule", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule/media)"] diff --git a/crates/web-sys/src/features/gen_CssNamespaceRule.rs b/crates/web-sys/src/features/gen_CssNamespaceRule.rs index 3fce67660a3..d140bedf760 100644 --- a/crates/web-sys/src/features/gen_CssNamespaceRule.rs +++ b/crates/web-sys/src/features/gen_CssNamespaceRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSNamespaceRule , typescript_type = "CSSNamespaceRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSNamespaceRule", + typescript_type = "CSSNamespaceRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssNamespaceRule` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] pub type CssNamespaceRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSNamespaceRule" , js_name = namespaceURI)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSNamespaceRule", + 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/CSSNamespaceRule/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] pub fn namespace_uri(this: &CssNamespaceRule) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "CSSNamespaceRule" , js_name = prefix)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_CssPageRule.rs b/crates/web-sys/src/features/gen_CssPageRule.rs index d9441f51292..81378056318 100644 --- a/crates/web-sys/src/features/gen_CssPageRule.rs +++ b/crates/web-sys/src/features/gen_CssPageRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSPageRule , typescript_type = "CSSPageRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSPageRule", + typescript_type = "CSSPageRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssPageRule` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssPageRule`*"] pub type CssPageRule; #[cfg(feature = "CssStyleDeclaration")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSPageRule" , js_name = style)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSPageRule", + js_name = "style" + )] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule/style)"] diff --git a/crates/web-sys/src/features/gen_CssPseudoElement.rs b/crates/web-sys/src/features/gen_CssPseudoElement.rs index 63b3f543e6a..059d9b0c84d 100644 --- a/crates/web-sys/src/features/gen_CssPseudoElement.rs +++ b/crates/web-sys/src/features/gen_CssPseudoElement.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSPseudoElement , typescript_type = "CSSPseudoElement")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CSSPseudoElement", + typescript_type = "CSSPseudoElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssPseudoElement` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] pub type CssPseudoElement; - # [wasm_bindgen (structural , method , getter , js_class = "CSSPseudoElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSPseudoElement", + 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/CSSPseudoElement/type)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] pub fn type_(this: &CssPseudoElement) -> String; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSPseudoElement" , js_name = parentElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSPseudoElement", + js_name = "parentElement" + )] #[doc = "Getter for the `parentElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/parentElement)"] diff --git a/crates/web-sys/src/features/gen_CssRule.rs b/crates/web-sys/src/features/gen_CssRule.rs index 801667eb15e..b03d10fbe0b 100644 --- a/crates/web-sys/src/features/gen_CssRule.rs +++ b/crates/web-sys/src/features/gen_CssRule.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSRule , typescript_type = "CSSRule")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CSSRule", + typescript_type = "CSSRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssRule` class."] #[doc = ""] @@ -11,28 +15,34 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub type CssRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "CSSRule", 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/CSSRule/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub fn type_(this: &CssRule) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = cssText)] + #[wasm_bindgen(structural, method, getter, js_class = "CSSRule", js_name = "cssText")] #[doc = "Getter for the `cssText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSRule" , js_name = cssText)] + #[wasm_bindgen(structural, method, setter, js_class = "CSSRule", js_name = "cssText")] #[doc = "Setter for the `cssText` field of this object."] #[doc = ""] #[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 set_css_text(this: &CssRule, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = parentRule)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSRule", + js_name = "parentRule" + )] #[doc = "Getter for the `parentRule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/parentRule)"] @@ -40,7 +50,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub fn parent_rule(this: &CssRule) -> Option; #[cfg(feature = "CssStyleSheet")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = parentStyleSheet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSRule", + js_name = "parentStyleSheet" + )] #[doc = "Getter for the `parentStyleSheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/parentStyleSheet)"] diff --git a/crates/web-sys/src/features/gen_CssRuleList.rs b/crates/web-sys/src/features/gen_CssRuleList.rs index 1dd778fa085..423e4fecefd 100644 --- a/crates/web-sys/src/features/gen_CssRuleList.rs +++ b/crates/web-sys/src/features/gen_CssRuleList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSRuleList , typescript_type = "CSSRuleList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CSSRuleList", + typescript_type = "CSSRuleList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssRuleList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"] pub type CssRuleList; - # [wasm_bindgen (structural , method , getter , js_class = "CSSRuleList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSRuleList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/length)"] @@ -19,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"] pub fn length(this: &CssRuleList) -> u32; #[cfg(feature = "CssRule")] - # [wasm_bindgen (method , structural , js_class = "CSSRuleList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "CSSRuleList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/item)"] diff --git a/crates/web-sys/src/features/gen_CssStyleDeclaration.rs b/crates/web-sys/src/features/gen_CssStyleDeclaration.rs index c22016a031e..03cdfbef103 100644 --- a/crates/web-sys/src/features/gen_CssStyleDeclaration.rs +++ b/crates/web-sys/src/features/gen_CssStyleDeclaration.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSStyleDeclaration , typescript_type = "CSSStyleDeclaration")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CSSStyleDeclaration", + typescript_type = "CSSStyleDeclaration" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssStyleDeclaration` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub type CssStyleDeclaration; - # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = cssText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSStyleDeclaration", + js_name = "cssText" + )] #[doc = "Getter for the `cssText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSStyleDeclaration" , js_name = cssText)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSStyleDeclaration", + js_name = "cssText" + )] #[doc = "Setter for the `cssText` field of this object."] #[doc = ""] #[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 set_css_text(this: &CssStyleDeclaration, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSStyleDeclaration", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/length)"] @@ -33,21 +55,38 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn length(this: &CssStyleDeclaration) -> u32; #[cfg(feature = "CssRule")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = parentRule)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSStyleDeclaration", + js_name = "parentRule" + )] #[doc = "Getter for the `parentRule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/parentRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleDeclaration`*"] pub fn parent_rule(this: &CssStyleDeclaration) -> Option; - # [wasm_bindgen (method , structural , js_class = "CSSStyleDeclaration" , js_name = getPropertyPriority)] + #[wasm_bindgen( + method, + structural, + js_class = "CSSStyleDeclaration", + js_name = "getPropertyPriority" + )] #[doc = "The `getPropertyPriority()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = getPropertyValue)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSStyleDeclaration", + js_name = "getPropertyValue" + )] #[doc = "The `getPropertyValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyValue)"] @@ -57,21 +96,33 @@ extern "C" { this: &CssStyleDeclaration, property: &str, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "CSSStyleDeclaration" , js_name = item)] + #[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; - # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = removeProperty)] + #[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; - # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = setProperty)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSStyleDeclaration", + js_name = "setProperty" + )] #[doc = "The `setProperty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty)"] @@ -82,7 +133,13 @@ extern "C" { property: &str, value: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = setProperty)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSStyleDeclaration", + js_name = "setProperty" + )] #[doc = "The `setProperty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty)"] diff --git a/crates/web-sys/src/features/gen_CssStyleRule.rs b/crates/web-sys/src/features/gen_CssStyleRule.rs index c244a2af79d..9f2f4abf047 100644 --- a/crates/web-sys/src/features/gen_CssStyleRule.rs +++ b/crates/web-sys/src/features/gen_CssStyleRule.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSStyleRule , typescript_type = "CSSStyleRule")] + #[wasm_bindgen( + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSStyleRule", + typescript_type = "CSSStyleRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssStyleRule` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] pub type CssStyleRule; - # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleRule" , js_name = selectorText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSStyleRule", + js_name = "selectorText" + )] #[doc = "Getter for the `selectorText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "CSSStyleRule" , js_name = selectorText)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "CSSStyleRule", + js_name = "selectorText" + )] #[doc = "Setter for the `selectorText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"] @@ -26,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] pub fn set_selector_text(this: &CssStyleRule, value: &str); #[cfg(feature = "CssStyleDeclaration")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleRule" , js_name = style)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSStyleRule", + js_name = "style" + )] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/style)"] diff --git a/crates/web-sys/src/features/gen_CssStyleSheet.rs b/crates/web-sys/src/features/gen_CssStyleSheet.rs index 9ffbb61bd45..4256b94434b 100644 --- a/crates/web-sys/src/features/gen_CssStyleSheet.rs +++ b/crates/web-sys/src/features/gen_CssStyleSheet.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = StyleSheet , extends = :: js_sys :: Object , js_name = CSSStyleSheet , typescript_type = "CSSStyleSheet")] + #[wasm_bindgen( + extends = "StyleSheet", + extends = "::js_sys::Object", + js_name = "CSSStyleSheet", + typescript_type = "CSSStyleSheet" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssStyleSheet` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub type CssStyleSheet; #[cfg(feature = "CssRule")] - # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleSheet" , js_name = ownerRule)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSStyleSheet", + js_name = "ownerRule" + )] #[doc = "Getter for the `ownerRule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/ownerRule)"] @@ -20,28 +31,53 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleSheet`*"] pub fn owner_rule(this: &CssStyleSheet) -> Option; #[cfg(feature = "CssRuleList")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "CSSStyleSheet" , js_name = cssRules)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "CSSStyleSheet", + js_name = "cssRules" + )] #[doc = "Getter for the `cssRules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/cssRules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRuleList`, `CssStyleSheet`*"] pub fn css_rules(this: &CssStyleSheet) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = deleteRule)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSStyleSheet", + js_name = "deleteRule" + )] #[doc = "The `deleteRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/deleteRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn delete_rule(this: &CssStyleSheet, index: u32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSStyleSheet", + js_name = "insertRule" + )] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn insert_rule(this: &CssStyleSheet, rule: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CSSStyleSheet", + js_name = "insertRule" + )] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"] diff --git a/crates/web-sys/src/features/gen_CssSupportsRule.rs b/crates/web-sys/src/features/gen_CssSupportsRule.rs index 13c879bf965..47720826f2c 100644 --- a/crates/web-sys/src/features/gen_CssSupportsRule.rs +++ b/crates/web-sys/src/features/gen_CssSupportsRule.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CssConditionRule , extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSSupportsRule , typescript_type = "CSSSupportsRule")] + #[wasm_bindgen( + extends = "CssConditionRule", + extends = "CssGroupingRule", + extends = "CssRule", + extends = "::js_sys::Object", + js_name = "CSSSupportsRule", + typescript_type = "CSSSupportsRule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssSupportsRule` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssTransition.rs b/crates/web-sys/src/features/gen_CssTransition.rs index 6a222ecded8..451af5e9df8 100644 --- a/crates/web-sys/src/features/gen_CssTransition.rs +++ b/crates/web-sys/src/features/gen_CssTransition.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Animation , extends = EventTarget , extends = :: js_sys :: Object , js_name = CSSTransition , typescript_type = "CSSTransition")] + #[wasm_bindgen( + extends = "Animation", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "CSSTransition", + typescript_type = "CSSTransition" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssTransition` class."] #[doc = ""] @@ -11,7 +17,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssTransition`*"] pub type CssTransition; - # [wasm_bindgen (structural , method , getter , js_class = "CSSTransition" , js_name = transitionProperty)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CSSTransition", + js_name = "transitionProperty" + )] #[doc = "Getter for the `transitionProperty` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSTransition/transitionProperty)"] diff --git a/crates/web-sys/src/features/gen_CustomElementRegistry.rs b/crates/web-sys/src/features/gen_CustomElementRegistry.rs index 651968f7fe1..c5440584208 100644 --- a/crates/web-sys/src/features/gen_CustomElementRegistry.rs +++ b/crates/web-sys/src/features/gen_CustomElementRegistry.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CustomElementRegistry , typescript_type = "CustomElementRegistry")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "CustomElementRegistry", + typescript_type = "CustomElementRegistry" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CustomElementRegistry` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] pub type CustomElementRegistry; - # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = define)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CustomElementRegistry", + js_name = "define" + )] #[doc = "The `define()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"] @@ -23,7 +33,13 @@ extern "C" { function_constructor: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "ElementDefinitionOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = define)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CustomElementRegistry", + js_name = "define" + )] #[doc = "The `define()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"] @@ -35,7 +51,12 @@ extern "C" { function_constructor: &::js_sys::Function, options: &ElementDefinitionOptions, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "CustomElementRegistry" , js_name = get)] + #[wasm_bindgen( + method, + structural, + js_class = "CustomElementRegistry", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get)"] @@ -43,14 +64,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] pub fn get(this: &CustomElementRegistry, name: &str) -> ::wasm_bindgen::JsValue; #[cfg(feature = "Node")] - # [wasm_bindgen (method , structural , js_class = "CustomElementRegistry" , js_name = upgrade)] + #[wasm_bindgen( + method, + structural, + js_class = "CustomElementRegistry", + js_name = "upgrade" + )] #[doc = "The `upgrade()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/upgrade)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `Node`*"] pub fn upgrade(this: &CustomElementRegistry, root: &Node); - # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = whenDefined)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "CustomElementRegistry", + js_name = "whenDefined" + )] #[doc = "The `whenDefined()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined)"] diff --git a/crates/web-sys/src/features/gen_CustomEvent.rs b/crates/web-sys/src/features/gen_CustomEvent.rs index 4c0c671cde2..b9c02be3c06 100644 --- a/crates/web-sys/src/features/gen_CustomEvent.rs +++ b/crates/web-sys/src/features/gen_CustomEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = CustomEvent , typescript_type = "CustomEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "CustomEvent", + typescript_type = "CustomEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CustomEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub type CustomEvent; - # [wasm_bindgen (structural , method , getter , js_class = "CustomEvent" , js_name = detail)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "CustomEvent", + js_name = "detail" + )] #[doc = "Getter for the `detail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)"] @@ -36,21 +47,36 @@ extern "C" { type_: &str, event_init_dict: &CustomEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CustomEvent", + js_name = "initCustomEvent" + )] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn init_custom_event(this: &CustomEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CustomEvent", + js_name = "initCustomEvent" + )] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn init_custom_event_with_can_bubble(this: &CustomEvent, type_: &str, can_bubble: bool); - # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CustomEvent", + js_name = "initCustomEvent" + )] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] @@ -62,7 +88,12 @@ extern "C" { can_bubble: bool, cancelable: bool, ); - # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "CustomEvent", + js_name = "initCustomEvent" + )] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] diff --git a/crates/web-sys/src/features/gen_CustomEventInit.rs b/crates/web-sys/src/features/gen_CustomEventInit.rs index b0bbf763268..aaec33eaa0d 100644 --- a/crates/web-sys/src/features/gen_CustomEventInit.rs +++ b/crates/web-sys/src/features/gen_CustomEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CustomEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "CustomEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CustomEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DataTransfer.rs b/crates/web-sys/src/features/gen_DataTransfer.rs index 9b6b7942852..8cfca09ffad 100644 --- a/crates/web-sys/src/features/gen_DataTransfer.rs +++ b/crates/web-sys/src/features/gen_DataTransfer.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DataTransfer , typescript_type = "DataTransfer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DataTransfer", + typescript_type = "DataTransfer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DataTransfer` class."] #[doc = ""] @@ -11,28 +15,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub type DataTransfer; - # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = dropEffect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DataTransfer", + js_name = "dropEffect" + )] #[doc = "Getter for the `dropEffect` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = dropEffect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "DataTransfer", + js_name = "dropEffect" + )] #[doc = "Setter for the `dropEffect` field of this object."] #[doc = ""] #[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 set_drop_effect(this: &DataTransfer, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = effectAllowed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DataTransfer", + js_name = "effectAllowed" + )] #[doc = "Getter for the `effectAllowed` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = effectAllowed)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "DataTransfer", + js_name = "effectAllowed" + )] #[doc = "Setter for the `effectAllowed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] @@ -40,14 +68,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn set_effect_allowed(this: &DataTransfer, value: &str); #[cfg(feature = "DataTransferItemList")] - # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = items)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DataTransfer", + js_name = "items" + )] #[doc = "Getter for the `items` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DataTransferItemList`*"] pub fn items(this: &DataTransfer) -> DataTransferItemList; - # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = types)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DataTransfer", + js_name = "types" + )] #[doc = "Getter for the `types` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types)"] @@ -55,7 +95,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn types(this: &DataTransfer) -> ::js_sys::Array; #[cfg(feature = "FileList")] - # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = files)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DataTransfer", + js_name = "files" + )] #[doc = "Getter for the `files` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files)"] @@ -69,35 +115,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn new() -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = clearData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransfer", + js_name = "clearData" + )] #[doc = "The `clearData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn clear_data(this: &DataTransfer) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = clearData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransfer", + js_name = "clearData" + )] #[doc = "The `clearData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn clear_data_with_format(this: &DataTransfer, format: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransfer", + js_name = "getData" + )] #[doc = "The `getData()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFiles)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransfer", + js_name = "getFiles" + )] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn get_files(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFiles)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransfer", + js_name = "getFiles" + )] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] @@ -107,14 +183,26 @@ extern "C" { this: &DataTransfer, recursive_flag: bool, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFilesAndDirectories)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransfer", + js_name = "getFilesAndDirectories" + )] #[doc = "The `getFilesAndDirectories()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFilesAndDirectories)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn get_files_and_directories(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = setData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransfer", + js_name = "setData" + )] #[doc = "The `setData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setData)"] @@ -122,7 +210,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn set_data(this: &DataTransfer, format: &str, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "DataTransfer" , js_name = setDragImage)] + #[wasm_bindgen( + method, + structural, + js_class = "DataTransfer", + js_name = "setDragImage" + )] #[doc = "The `setDragImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setDragImage)"] diff --git a/crates/web-sys/src/features/gen_DataTransferItem.rs b/crates/web-sys/src/features/gen_DataTransferItem.rs index 0ea18263f06..a9f895294fd 100644 --- a/crates/web-sys/src/features/gen_DataTransferItem.rs +++ b/crates/web-sys/src/features/gen_DataTransferItem.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DataTransferItem , typescript_type = "DataTransferItem")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DataTransferItem", + typescript_type = "DataTransferItem" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DataTransferItem` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] pub type DataTransferItem; - # [wasm_bindgen (structural , method , getter , js_class = "DataTransferItem" , js_name = kind)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DataTransferItem", + 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/DataTransferItem/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] pub fn kind(this: &DataTransferItem) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "DataTransferItem" , js_name = type)] + #[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)"] @@ -26,14 +42,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] pub fn type_(this: &DataTransferItem) -> String; #[cfg(feature = "File")] - # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItem" , js_name = getAsFile)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransferItem", + js_name = "getAsFile" + )] #[doc = "The `getAsFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `File`*"] pub fn get_as_file(this: &DataTransferItem) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItem" , js_name = getAsString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransferItem", + js_name = "getAsString" + )] #[doc = "The `getAsString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsString)"] @@ -44,7 +72,13 @@ extern "C" { callback: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "FileSystemEntry")] - # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItem" , js_name = webkitGetAsEntry)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransferItem", + js_name = "webkitGetAsEntry" + )] #[doc = "The `webkitGetAsEntry()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/webkitGetAsEntry)"] diff --git a/crates/web-sys/src/features/gen_DataTransferItemList.rs b/crates/web-sys/src/features/gen_DataTransferItemList.rs index c2f2efc186b..d48dfcbd609 100644 --- a/crates/web-sys/src/features/gen_DataTransferItemList.rs +++ b/crates/web-sys/src/features/gen_DataTransferItemList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DataTransferItemList , typescript_type = "DataTransferItemList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DataTransferItemList", + typescript_type = "DataTransferItemList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DataTransferItemList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] pub type DataTransferItemList; - # [wasm_bindgen (structural , method , getter , js_class = "DataTransferItemList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DataTransferItemList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/length)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] pub fn length(this: &DataTransferItemList) -> u32; #[cfg(feature = "DataTransferItem")] - # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransferItemList", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/add)"] @@ -31,7 +47,13 @@ extern "C" { type_: &str, ) -> Result, JsValue>; #[cfg(all(feature = "DataTransferItem", feature = "File",))] - # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransferItemList", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/add)"] @@ -41,14 +63,26 @@ extern "C" { this: &DataTransferItemList, data: &File, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = clear)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransferItemList", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] pub fn clear(this: &DataTransferItemList) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DataTransferItemList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/remove)"] diff --git a/crates/web-sys/src/features/gen_DateTimeValue.rs b/crates/web-sys/src/features/gen_DateTimeValue.rs index 23a320850f6..1587c423956 100644 --- a/crates/web-sys/src/features/gen_DateTimeValue.rs +++ b/crates/web-sys/src/features/gen_DateTimeValue.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DateTimeValue)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DateTimeValue")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DateTimeValue` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs b/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs index 59f4340c49b..4e1a95a6292 100644 --- a/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs +++ b/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DecoderDoctorNotification)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DecoderDoctorNotification")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DecoderDoctorNotification` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs index c16c3690d28..07d0bdd638b 100644 --- a/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = DedicatedWorkerGlobalScope , typescript_type = "DedicatedWorkerGlobalScope")] + #[wasm_bindgen( + extends = "WorkerGlobalScope", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "DedicatedWorkerGlobalScope", + typescript_type = "DedicatedWorkerGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DedicatedWorkerGlobalScope` class."] #[doc = ""] @@ -11,35 +17,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub type DedicatedWorkerGlobalScope; - # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DedicatedWorkerGlobalScope", + 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/DedicatedWorkerGlobalScope/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn name(this: &DedicatedWorkerGlobalScope) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DedicatedWorkerGlobalScope", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn onmessage(this: &DedicatedWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "DedicatedWorkerGlobalScope", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn set_onmessage(this: &DedicatedWorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DedicatedWorkerGlobalScope", + js_name = "onmessageerror" + )] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn onmessageerror(this: &DedicatedWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "DedicatedWorkerGlobalScope", + js_name = "onmessageerror" + )] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror)"] @@ -49,14 +85,25 @@ extern "C" { this: &DedicatedWorkerGlobalScope, value: Option<&::js_sys::Function>, ); - # [wasm_bindgen (method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = close)] + #[wasm_bindgen( + method, + structural, + js_class = "DedicatedWorkerGlobalScope", + js_name = "close" + )] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn close(this: &DedicatedWorkerGlobalScope); - # [wasm_bindgen (catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DedicatedWorkerGlobalScope", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)"] @@ -66,7 +113,13 @@ extern "C" { this: &DedicatedWorkerGlobalScope, message: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DedicatedWorkerGlobalScope", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)"] diff --git a/crates/web-sys/src/features/gen_DelayNode.rs b/crates/web-sys/src/features/gen_DelayNode.rs index 4518ed3a2c2..d31d45ba511 100644 --- a/crates/web-sys/src/features/gen_DelayNode.rs +++ b/crates/web-sys/src/features/gen_DelayNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = DelayNode , typescript_type = "DelayNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "DelayNode", + typescript_type = "DelayNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DelayNode` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DelayNode`*"] pub type DelayNode; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "DelayNode" , js_name = delayTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DelayNode", + js_name = "delayTime" + )] #[doc = "Getter for the `delayTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/delayTime)"] diff --git a/crates/web-sys/src/features/gen_DelayOptions.rs b/crates/web-sys/src/features/gen_DelayOptions.rs index 8422b161489..20514c38206 100644 --- a/crates/web-sys/src/features/gen_DelayOptions.rs +++ b/crates/web-sys/src/features/gen_DelayOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DelayOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DelayOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DelayOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DeviceAcceleration.rs b/crates/web-sys/src/features/gen_DeviceAcceleration.rs index 8fbfb8b67f0..7575943dcbc 100644 --- a/crates/web-sys/src/features/gen_DeviceAcceleration.rs +++ b/crates/web-sys/src/features/gen_DeviceAcceleration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceAcceleration , typescript_type = "DeviceAcceleration")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "DeviceAcceleration" , typescript_type = "DeviceAcceleration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceAcceleration` class."] #[doc = ""] @@ -11,21 +11,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] pub type DeviceAcceleration; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceAcceleration", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] pub fn x(this: &DeviceAcceleration) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceAcceleration", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] pub fn y(this: &DeviceAcceleration) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = z)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceAcceleration", + js_name = "z" + )] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/z)"] diff --git a/crates/web-sys/src/features/gen_DeviceAccelerationInit.rs b/crates/web-sys/src/features/gen_DeviceAccelerationInit.rs index 95c7aa20801..21eeb923247 100644 --- a/crates/web-sys/src/features/gen_DeviceAccelerationInit.rs +++ b/crates/web-sys/src/features/gen_DeviceAccelerationInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceAccelerationInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DeviceAccelerationInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceAccelerationInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DeviceLightEvent.rs b/crates/web-sys/src/features/gen_DeviceLightEvent.rs index 39087647839..61375a80e02 100644 --- a/crates/web-sys/src/features/gen_DeviceLightEvent.rs +++ b/crates/web-sys/src/features/gen_DeviceLightEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceLightEvent , typescript_type = "DeviceLightEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "DeviceLightEvent", + typescript_type = "DeviceLightEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceLightEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"] pub type DeviceLightEvent; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceLightEvent" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceLightEvent", + 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/DeviceLightEvent/value)"] diff --git a/crates/web-sys/src/features/gen_DeviceLightEventInit.rs b/crates/web-sys/src/features/gen_DeviceLightEventInit.rs index ddb30f603fc..d3dec957d09 100644 --- a/crates/web-sys/src/features/gen_DeviceLightEventInit.rs +++ b/crates/web-sys/src/features/gen_DeviceLightEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceLightEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DeviceLightEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceLightEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DeviceMotionEvent.rs b/crates/web-sys/src/features/gen_DeviceMotionEvent.rs index 5993f726f03..76a17a6c641 100644 --- a/crates/web-sys/src/features/gen_DeviceMotionEvent.rs +++ b/crates/web-sys/src/features/gen_DeviceMotionEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceMotionEvent , typescript_type = "DeviceMotionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "DeviceMotionEvent", + typescript_type = "DeviceMotionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceMotionEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`*"] pub type DeviceMotionEvent; #[cfg(feature = "DeviceAcceleration")] - # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = acceleration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceMotionEvent", + js_name = "acceleration" + )] #[doc = "Getter for the `acceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/acceleration)"] @@ -20,7 +31,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`, `DeviceMotionEvent`*"] pub fn acceleration(this: &DeviceMotionEvent) -> Option; #[cfg(feature = "DeviceAcceleration")] - # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = accelerationIncludingGravity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceMotionEvent", + js_name = "accelerationIncludingGravity" + )] #[doc = "Getter for the `accelerationIncludingGravity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity)"] @@ -28,14 +45,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`, `DeviceMotionEvent`*"] pub fn acceleration_including_gravity(this: &DeviceMotionEvent) -> Option; #[cfg(feature = "DeviceRotationRate")] - # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = rotationRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceMotionEvent", + js_name = "rotationRate" + )] #[doc = "Getter for the `rotationRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/rotationRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`, `DeviceRotationRate`*"] pub fn rotation_rate(this: &DeviceMotionEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = interval)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceMotionEvent", + js_name = "interval" + )] #[doc = "Getter for the `interval` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/interval)"] diff --git a/crates/web-sys/src/features/gen_DeviceMotionEventInit.rs b/crates/web-sys/src/features/gen_DeviceMotionEventInit.rs index bec31205212..e7356e98d47 100644 --- a/crates/web-sys/src/features/gen_DeviceMotionEventInit.rs +++ b/crates/web-sys/src/features/gen_DeviceMotionEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceMotionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DeviceMotionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceMotionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DeviceOrientationEvent.rs b/crates/web-sys/src/features/gen_DeviceOrientationEvent.rs index d7ec8c767cd..2e2b9eae223 100644 --- a/crates/web-sys/src/features/gen_DeviceOrientationEvent.rs +++ b/crates/web-sys/src/features/gen_DeviceOrientationEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceOrientationEvent , typescript_type = "DeviceOrientationEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "DeviceOrientationEvent", + typescript_type = "DeviceOrientationEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceOrientationEvent` class."] #[doc = ""] @@ -11,28 +16,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub type DeviceOrientationEvent; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = alpha)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceOrientationEvent", + js_name = "alpha" + )] #[doc = "Getter for the `alpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/alpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn alpha(this: &DeviceOrientationEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = beta)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceOrientationEvent", + js_name = "beta" + )] #[doc = "Getter for the `beta` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/beta)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn beta(this: &DeviceOrientationEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = gamma)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceOrientationEvent", + js_name = "gamma" + )] #[doc = "Getter for the `gamma` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/gamma)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn gamma(this: &DeviceOrientationEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = absolute)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceOrientationEvent", + js_name = "absolute" + )] #[doc = "Getter for the `absolute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/absolute)"] @@ -57,14 +86,24 @@ extern "C" { type_: &str, event_init_dict: &DeviceOrientationEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "DeviceOrientationEvent", + js_name = "initDeviceOrientationEvent" + )] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event(this: &DeviceOrientationEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "DeviceOrientationEvent", + js_name = "initDeviceOrientationEvent" + )] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] @@ -75,7 +114,12 @@ extern "C" { type_: &str, can_bubble: bool, ); - # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "DeviceOrientationEvent", + js_name = "initDeviceOrientationEvent" + )] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] @@ -87,7 +131,12 @@ extern "C" { can_bubble: bool, cancelable: bool, ); - # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "DeviceOrientationEvent", + js_name = "initDeviceOrientationEvent" + )] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] @@ -100,7 +149,12 @@ extern "C" { cancelable: bool, alpha: Option, ); - # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "DeviceOrientationEvent", + js_name = "initDeviceOrientationEvent" + )] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] @@ -114,7 +168,12 @@ extern "C" { alpha: Option, beta: Option, ); - # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "DeviceOrientationEvent", + js_name = "initDeviceOrientationEvent" + )] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] @@ -129,7 +188,12 @@ extern "C" { beta: Option, gamma: Option, ); - # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "DeviceOrientationEvent", + js_name = "initDeviceOrientationEvent" + )] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] diff --git a/crates/web-sys/src/features/gen_DeviceOrientationEventInit.rs b/crates/web-sys/src/features/gen_DeviceOrientationEventInit.rs index 70445bb19ed..aa6b108afbe 100644 --- a/crates/web-sys/src/features/gen_DeviceOrientationEventInit.rs +++ b/crates/web-sys/src/features/gen_DeviceOrientationEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceOrientationEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DeviceOrientationEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceOrientationEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DeviceProximityEvent.rs b/crates/web-sys/src/features/gen_DeviceProximityEvent.rs index c3c92ac8fc6..30c0c922d5b 100644 --- a/crates/web-sys/src/features/gen_DeviceProximityEvent.rs +++ b/crates/web-sys/src/features/gen_DeviceProximityEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceProximityEvent , typescript_type = "DeviceProximityEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "DeviceProximityEvent", + typescript_type = "DeviceProximityEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceProximityEvent` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub type DeviceProximityEvent; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceProximityEvent", + 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/DeviceProximityEvent/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub fn value(this: &DeviceProximityEvent) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = min)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceProximityEvent", + js_name = "min" + )] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub fn min(this: &DeviceProximityEvent) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = max)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceProximityEvent", + js_name = "max" + )] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/max)"] diff --git a/crates/web-sys/src/features/gen_DeviceProximityEventInit.rs b/crates/web-sys/src/features/gen_DeviceProximityEventInit.rs index 9ff310343fd..8d91dfc66c5 100644 --- a/crates/web-sys/src/features/gen_DeviceProximityEventInit.rs +++ b/crates/web-sys/src/features/gen_DeviceProximityEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceProximityEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DeviceProximityEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceProximityEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DeviceRotationRate.rs b/crates/web-sys/src/features/gen_DeviceRotationRate.rs index 73782abebc9..158c3d2163b 100644 --- a/crates/web-sys/src/features/gen_DeviceRotationRate.rs +++ b/crates/web-sys/src/features/gen_DeviceRotationRate.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceRotationRate , typescript_type = "DeviceRotationRate")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "DeviceRotationRate" , typescript_type = "DeviceRotationRate")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceRotationRate` class."] #[doc = ""] @@ -11,21 +11,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] pub type DeviceRotationRate; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceRotationRate" , js_name = alpha)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceRotationRate", + js_name = "alpha" + )] #[doc = "Getter for the `alpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate/alpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] pub fn alpha(this: &DeviceRotationRate) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceRotationRate" , js_name = beta)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceRotationRate", + js_name = "beta" + )] #[doc = "Getter for the `beta` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate/beta)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] pub fn beta(this: &DeviceRotationRate) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DeviceRotationRate" , js_name = gamma)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DeviceRotationRate", + js_name = "gamma" + )] #[doc = "Getter for the `gamma` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate/gamma)"] diff --git a/crates/web-sys/src/features/gen_DeviceRotationRateInit.rs b/crates/web-sys/src/features/gen_DeviceRotationRateInit.rs index fe6dcb0d2bc..e3264ad88dc 100644 --- a/crates/web-sys/src/features/gen_DeviceRotationRateInit.rs +++ b/crates/web-sys/src/features/gen_DeviceRotationRateInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceRotationRateInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DeviceRotationRateInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceRotationRateInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs b/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs index 3bb1bbc3c12..cbd34cf8d53 100644 --- a/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs +++ b/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DhKeyDeriveParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DhKeyDeriveParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DhKeyDeriveParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Directory.rs b/crates/web-sys/src/features/gen_Directory.rs index 6eed3203e74..6df70a9725d 100644 --- a/crates/web-sys/src/features/gen_Directory.rs +++ b/crates/web-sys/src/features/gen_Directory.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Directory , typescript_type = "Directory")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Directory", + typescript_type = "Directory" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Directory` class."] #[doc = ""] @@ -11,28 +15,54 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub type Directory; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = name)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Directory", + 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/Directory/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub fn name(this: &Directory) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = path)] + #[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; - # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Directory", + js_name = "getFiles" + )] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub fn get_files(this: &Directory) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Directory", + js_name = "getFiles" + )] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"] @@ -42,7 +72,13 @@ extern "C" { this: &Directory, recursive_flag: bool, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFilesAndDirectories)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Directory", + js_name = "getFilesAndDirectories" + )] #[doc = "The `getFilesAndDirectories()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFilesAndDirectories)"] diff --git a/crates/web-sys/src/features/gen_DisplayMediaStreamConstraints.rs b/crates/web-sys/src/features/gen_DisplayMediaStreamConstraints.rs index 16a5bf869be..599fb872dbe 100644 --- a/crates/web-sys/src/features/gen_DisplayMediaStreamConstraints.rs +++ b/crates/web-sys/src/features/gen_DisplayMediaStreamConstraints.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DisplayMediaStreamConstraints)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DisplayMediaStreamConstraints" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DisplayMediaStreamConstraints` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DisplayNameOptions.rs b/crates/web-sys/src/features/gen_DisplayNameOptions.rs index 97d843e79a7..6103a5e4133 100644 --- a/crates/web-sys/src/features/gen_DisplayNameOptions.rs +++ b/crates/web-sys/src/features/gen_DisplayNameOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DisplayNameOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DisplayNameOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DisplayNameOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DisplayNameResult.rs b/crates/web-sys/src/features/gen_DisplayNameResult.rs index 4160474d67a..86253d68ec8 100644 --- a/crates/web-sys/src/features/gen_DisplayNameResult.rs +++ b/crates/web-sys/src/features/gen_DisplayNameResult.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DisplayNameResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DisplayNameResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DisplayNameResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DnsCacheDict.rs b/crates/web-sys/src/features/gen_DnsCacheDict.rs index 1233264e707..e7f66529afb 100644 --- a/crates/web-sys/src/features/gen_DnsCacheDict.rs +++ b/crates/web-sys/src/features/gen_DnsCacheDict.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DNSCacheDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DNSCacheDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DnsCacheDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DnsCacheEntry.rs b/crates/web-sys/src/features/gen_DnsCacheEntry.rs index f6da07e95bd..e70ff460d4b 100644 --- a/crates/web-sys/src/features/gen_DnsCacheEntry.rs +++ b/crates/web-sys/src/features/gen_DnsCacheEntry.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DnsCacheEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DnsCacheEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DnsCacheEntry` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DnsLookupDict.rs b/crates/web-sys/src/features/gen_DnsLookupDict.rs index 590f2998725..b79d31a364f 100644 --- a/crates/web-sys/src/features/gen_DnsLookupDict.rs +++ b/crates/web-sys/src/features/gen_DnsLookupDict.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DNSLookupDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DNSLookupDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DnsLookupDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Document.rs b/crates/web-sys/src/features/gen_Document.rs index 6d8cd542cb6..4b99e55d5db 100644 --- a/crates/web-sys/src/features/gen_Document.rs +++ b/crates/web-sys/src/features/gen_Document.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Document , typescript_type = "Document")] + #[wasm_bindgen( + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Document", + typescript_type = "Document" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Document` class."] #[doc = ""] @@ -12,56 +18,101 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub type Document; #[cfg(feature = "DomImplementation")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Document" , js_name = implementation)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Document", + js_name = "implementation" + )] #[doc = "Getter for the `implementation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/implementation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] pub fn implementation(this: &Document) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Document" , js_name = URL)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Document", + 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/Document/URL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn url(this: &Document) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Document" , js_name = documentURI)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = compatMode)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = characterSet)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = charset)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = inputEncoding)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = contentType)] + #[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)"] @@ -69,7 +120,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn content_type(this: &Document) -> String; #[cfg(feature = "DocumentType")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = doctype)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "doctype")] #[doc = "Getter for the `doctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/doctype)"] @@ -77,7 +128,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentType`*"] pub fn doctype(this: &Document) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = documentElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "documentElement" + )] #[doc = "Getter for the `documentElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement)"] @@ -85,56 +142,80 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn document_element(this: &Document) -> Option; #[cfg(feature = "Location")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = location)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "location" + )] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Location`*"] pub fn location(this: &Document) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = referrer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + 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/Document/referrer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn referrer(this: &Document) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = lastModified)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = readyState)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = title)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = title)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "title")] #[doc = "Setter 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 set_title(this: &Document, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = dir)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "dir")] #[doc = "Getter for the `dir` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = dir)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "dir")] #[doc = "Setter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"] @@ -142,7 +223,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_dir(this: &Document, value: &str); #[cfg(feature = "HtmlElement")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = body)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", 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/Document/body)"] @@ -150,7 +231,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"] pub fn body(this: &Document) -> Option; #[cfg(feature = "HtmlElement")] - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = body)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "body")] #[doc = "Setter for the `body` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/body)"] @@ -158,7 +239,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"] pub fn set_body(this: &Document, value: Option<&HtmlElement>); #[cfg(feature = "HtmlHeadElement")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = head)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "head")] #[doc = "Getter for the `head` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/head)"] @@ -166,7 +247,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlHeadElement`*"] pub fn head(this: &Document) -> Option; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = images)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "images")] #[doc = "Getter for the `images` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/images)"] @@ -174,7 +255,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn images(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = embeds)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "embeds")] #[doc = "Getter for the `embeds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/embeds)"] @@ -182,7 +263,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn embeds(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = plugins)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "plugins")] #[doc = "Getter for the `plugins` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/plugins)"] @@ -190,7 +271,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn plugins(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = links)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "links")] #[doc = "Getter for the `links` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/links)"] @@ -198,7 +279,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn links(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = forms)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "forms")] #[doc = "Getter for the `forms` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/forms)"] @@ -206,7 +287,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn forms(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = scripts)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "scripts")] #[doc = "Getter for the `scripts` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scripts)"] @@ -214,63 +295,117 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn scripts(this: &Document) -> HtmlCollection; #[cfg(feature = "Window")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = defaultView)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "defaultView" + )] #[doc = "Getter for the `defaultView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/defaultView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Window`*"] pub fn default_view(this: &Document) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onreadystatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onreadystatechange" + )] #[doc = "Getter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onreadystatechange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onreadystatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onreadystatechange" + )] #[doc = "Setter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onreadystatechange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onbeforescriptexecute)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onbeforescriptexecute" + )] #[doc = "Getter for the `onbeforescriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onbeforescriptexecute(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onbeforescriptexecute)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onbeforescriptexecute" + )] #[doc = "Setter for the `onbeforescriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onbeforescriptexecute(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onafterscriptexecute)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onafterscriptexecute" + )] #[doc = "Getter for the `onafterscriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onafterscriptexecute(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onafterscriptexecute)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onafterscriptexecute" + )] #[doc = "Setter for the `onafterscriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onafterscriptexecute(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onselectionchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onselectionchange" + )] #[doc = "Getter for the `onselectionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onselectionchange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onselectionchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onselectionchange" + )] #[doc = "Setter for the `onselectionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"] @@ -278,7 +413,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onselectionchange(this: &Document, value: Option<&::js_sys::Function>); #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = currentScript)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "currentScript" + )] #[doc = "Getter for the `currentScript` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript)"] @@ -286,7 +427,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn current_script(this: &Document) -> Option; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = anchors)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "anchors")] #[doc = "Getter for the `anchors` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/anchors)"] @@ -294,84 +435,144 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn anchors(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = applets)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "applets")] #[doc = "Getter for the `applets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/applets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn applets(this: &Document) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fullscreen)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "fullscreen" + )] #[doc = "Getter for the `fullscreen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn fullscreen(this: &Document) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fullscreenEnabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "fullscreenEnabled" + )] #[doc = "Getter for the `fullscreenEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn fullscreen_enabled(this: &Document) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onfullscreenchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onfullscreenchange" + )] #[doc = "Getter for the `onfullscreenchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onfullscreenchange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onfullscreenchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onfullscreenchange" + )] #[doc = "Setter for the `onfullscreenchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onfullscreenchange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onfullscreenerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onfullscreenerror" + )] #[doc = "Getter for the `onfullscreenerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onfullscreenerror(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onfullscreenerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onfullscreenerror" + )] #[doc = "Setter for the `onfullscreenerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onfullscreenerror(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerlockchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerlockchange" + )] #[doc = "Getter for the `onpointerlockchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerlockchange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerlockchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerlockchange" + )] #[doc = "Setter for the `onpointerlockchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerlockchange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerlockerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerlockerror" + )] #[doc = "Getter for the `onpointerlockerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerlockerror(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerlockerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerlockerror" + )] #[doc = "Setter for the `onpointerlockerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerlockerror(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = hidden)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "hidden")] #[doc = "Getter for the `hidden` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hidden)"] @@ -379,49 +580,91 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn hidden(this: &Document) -> bool; #[cfg(feature = "VisibilityState")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = visibilityState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "visibilityState" + )] #[doc = "Getter for the `visibilityState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `VisibilityState`*"] pub fn visibility_state(this: &Document) -> VisibilityState; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onvisibilitychange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onvisibilitychange" + )] #[doc = "Getter for the `onvisibilitychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onvisibilitychange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onvisibilitychange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onvisibilitychange" + )] #[doc = "Setter for the `onvisibilitychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onvisibilitychange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = selectedStyleSheetSet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "selectedStyleSheetSet" + )] #[doc = "Getter for the `selectedStyleSheetSet` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = selectedStyleSheetSet)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "selectedStyleSheetSet" + )] #[doc = "Setter for the `selectedStyleSheetSet` field of this object."] #[doc = ""] #[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 set_selected_style_sheet_set(this: &Document, value: Option<&str>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = lastStyleSheetSet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "lastStyleSheetSet" + )] #[doc = "Getter for the `lastStyleSheetSet` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = preferredStyleSheetSet)] + #[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)"] @@ -429,7 +672,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn preferred_style_sheet_set(this: &Document) -> Option; #[cfg(feature = "DomStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = styleSheetSets)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "styleSheetSets" + )] #[doc = "Getter for the `styleSheetSets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheetSets)"] @@ -437,7 +686,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `DomStringList`*"] pub fn style_sheet_sets(this: &Document) -> DomStringList; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = scrollingElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "scrollingElement" + )] #[doc = "Getter for the `scrollingElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollingElement)"] @@ -445,7 +700,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn scrolling_element(this: &Document) -> Option; #[cfg(feature = "DocumentTimeline")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = timeline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "timeline" + )] #[doc = "Getter for the `timeline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/timeline)"] @@ -453,49 +714,55 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentTimeline`*"] pub fn timeline(this: &Document) -> DocumentTimeline; #[cfg(feature = "SvgsvgElement")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = rootElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "rootElement" + )] #[doc = "Getter for the `rootElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/rootElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `SvgsvgElement`*"] pub fn root_element(this: &Document) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncopy)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "oncopy")] #[doc = "Getter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncopy(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncopy)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "oncopy")] #[doc = "Setter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncopy(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncut)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "oncut")] #[doc = "Getter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncut(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncut)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "oncut")] #[doc = "Setter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncut(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpaste)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onpaste")] #[doc = "Getter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpaste(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpaste)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onpaste")] #[doc = "Setter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"] @@ -503,7 +770,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpaste(this: &Document, value: Option<&::js_sys::Function>); #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = activeElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "activeElement" + )] #[doc = "Getter for the `activeElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement)"] @@ -511,7 +784,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn active_element(this: &Document) -> Option; #[cfg(feature = "StyleSheetList")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = styleSheets)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "styleSheets" + )] #[doc = "Getter for the `styleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheets)"] @@ -519,7 +798,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `StyleSheetList`*"] pub fn style_sheets(this: &Document) -> StyleSheetList; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = pointerLockElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "pointerLockElement" + )] #[doc = "Getter for the `pointerLockElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement)"] @@ -527,7 +812,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn pointer_lock_element(this: &Document) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fullscreenElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "fullscreenElement" + )] #[doc = "Getter for the `fullscreenElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenElement)"] @@ -535,1169 +826,1961 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn fullscreen_element(this: &Document) -> Option; #[cfg(feature = "FontFaceSet")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fonts)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "fonts")] #[doc = "Getter for the `fonts` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fonts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `FontFaceSet`*"] pub fn fonts(this: &Document) -> FontFaceSet; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onabort)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onabort")] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onabort(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onabort)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onabort")] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onabort(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onblur)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onblur")] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onblur(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onblur)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onblur")] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onblur(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onfocus)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onfocus")] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onfocus(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onfocus)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onfocus")] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onfocus(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onauxclick" + )] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onauxclick(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onauxclick" + )] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onauxclick(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncanplay)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "oncanplay" + )] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncanplay(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncanplay)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "oncanplay" + )] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncanplay(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "oncanplaythrough" + )] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncanplaythrough(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "oncanplaythrough" + )] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncanplaythrough(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onchange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onchange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onclick)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onclick")] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onclick(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onclick)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onclick")] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onclick(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onclose)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onclose")] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onclose(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onclose)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onclose")] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onclose(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "oncontextmenu" + )] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncontextmenu(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "oncontextmenu" + )] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncontextmenu(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondblclick" + )] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondblclick(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondblclick" + )] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondblclick(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondrag)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "ondrag")] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondrag(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondrag)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "ondrag")] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondrag(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondragend" + )] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondragend" + )] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondragenter" + )] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragenter(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondragenter" + )] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragenter(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondragexit" + )] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragexit(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondragexit" + )] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragexit(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondragleave" + )] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragleave(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondragleave" + )] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragleave(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondragover" + )] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragover(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondragover" + )] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragover(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondragstart" + )] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragstart(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondragstart" + )] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragstart(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondrop)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "ondrop")] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondrop(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondrop)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "ondrop")] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondrop(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ondurationchange" + )] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondurationchange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ondurationchange" + )] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondurationchange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onemptied)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onemptied" + )] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onemptied(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onemptied)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onemptied" + )] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onemptied(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onended)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onended")] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onended(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onended)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onended")] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onended(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oninput)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "oninput")] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oninput(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oninput)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "oninput")] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oninput(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oninvalid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "oninvalid" + )] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oninvalid(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oninvalid)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "oninvalid" + )] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oninvalid(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onkeydown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onkeydown" + )] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onkeydown(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onkeydown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onkeydown" + )] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onkeydown(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onkeypress" + )] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onkeypress(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onkeypress" + )] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onkeypress(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onkeyup)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onkeyup")] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onkeyup(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onkeyup)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onkeyup")] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onkeyup(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onload)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onload")] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onload(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onload)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onload")] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onload(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onloadeddata" + )] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadeddata(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onloadeddata" + )] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadeddata(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onloadedmetadata" + )] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadedmetadata(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onloadedmetadata" + )] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadedmetadata(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onloadend" + )] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onloadend" + )] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onloadstart" + )] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadstart(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onloadstart" + )] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadstart(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onmousedown" + )] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmousedown(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onmousedown" + )] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmousedown(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onmouseenter" + )] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseenter(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onmouseenter" + )] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseenter(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onmouseleave" + )] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseleave(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onmouseleave" + )] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseleave(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onmousemove" + )] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmousemove(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onmousemove" + )] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmousemove(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onmouseout" + )] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseout(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onmouseout" + )] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseout(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onmouseover" + )] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseover(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onmouseover" + )] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseover(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onmouseup" + )] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseup(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onmouseup" + )] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseup(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwheel)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onwheel")] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwheel(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwheel)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onwheel")] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwheel(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpause)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onpause")] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpause(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpause)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onpause")] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpause(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onplay)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onplay")] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onplay(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onplay)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onplay")] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onplay(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onplaying)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onplaying" + )] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onplaying(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onplaying)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onplaying" + )] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onplaying(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onprogress(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onprogress(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onratechange" + )] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onratechange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onratechange" + )] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onratechange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onreset)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onreset")] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onreset(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onreset)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onreset")] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onreset(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onresize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onresize" + )] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onresize(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onresize)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onresize" + )] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onresize(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onscroll)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onscroll" + )] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onscroll(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onscroll)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onscroll" + )] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onscroll(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onseeked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onseeked" + )] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onseeked(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onseeked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onseeked" + )] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onseeked(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onseeking)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onseeking" + )] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onseeking(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onseeking)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onseeking" + )] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onseeking(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onselect" + )] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onselect(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onselect" + )] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onselect(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onshow)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onshow")] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onshow(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onshow)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onshow")] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onshow(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onstalled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onstalled" + )] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onstalled(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onstalled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onstalled" + )] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onstalled(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onsubmit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onsubmit" + )] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onsubmit(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onsubmit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onsubmit" + )] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onsubmit(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onsuspend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onsuspend" + )] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onsuspend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onsuspend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onsuspend" + )] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onsuspend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontimeupdate" + )] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontimeupdate(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontimeupdate" + )] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontimeupdate(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onvolumechange" + )] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onvolumechange(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onvolumechange" + )] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onvolumechange(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwaiting)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onwaiting" + )] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwaiting(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwaiting)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onwaiting" + )] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwaiting(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onselectstart" + )] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onselectstart(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onselectstart" + )] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onselectstart(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontoggle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontoggle" + )] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontoggle(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontoggle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontoggle" + )] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontoggle(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointercancel" + )] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointercancel(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointercancel" + )] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointercancel(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerdown" + )] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerdown(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerdown" + )] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerdown(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerup" + )] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerup(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerup" + )] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerup(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointermove" + )] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointermove(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointermove" + )] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointermove(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerout" + )] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerout(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerout" + )] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerout(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerover" + )] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerover(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerover" + )] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerover(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerenter" + )] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerenter(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerenter" + )] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerenter(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onpointerleave" + )] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerleave(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onpointerleave" + )] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerleave(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ongotpointercapture" + )] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ongotpointercapture(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ongotpointercapture" + )] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ongotpointercapture(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onlostpointercapture" + )] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onlostpointercapture(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onlostpointercapture" + )] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onlostpointercapture(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onanimationcancel" + )] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationcancel(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onanimationcancel" + )] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationcancel(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onanimationend" + )] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onanimationend" + )] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onanimationiteration" + )] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationiteration(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onanimationiteration" + )] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationiteration(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onanimationstart" + )] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationstart(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onanimationstart" + )] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationstart(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontransitioncancel" + )] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitioncancel(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontransitioncancel" + )] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitioncancel(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontransitionend" + )] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitionend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontransitionend" + )] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitionend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontransitionrun" + )] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitionrun(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontransitionrun" + )] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitionrun(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontransitionstart" + )] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitionstart(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontransitionstart" + )] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitionstart(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onwebkitanimationend" + )] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkitanimationend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onwebkitanimationend" + )] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkitanimationend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onwebkitanimationiteration" + )] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkitanimationiteration(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onwebkitanimationiteration" + )] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkitanimationiteration(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onwebkitanimationstart" + )] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkitanimationstart(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onwebkitanimationstart" + )] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkitanimationstart(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "onwebkittransitionend" + )] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkittransitionend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "onwebkittransitionend" + )] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkittransitionend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onerror)] + #[wasm_bindgen(structural, method, getter, js_class = "Document", js_name = "onerror")] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onerror(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onerror)] + #[wasm_bindgen(structural, method, setter, js_class = "Document", js_name = "onerror")] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"] @@ -1705,7 +2788,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onerror(this: &Document, value: Option<&::js_sys::Function>); #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = children)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "children" + )] #[doc = "Getter for the `children` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/children)"] @@ -1713,7 +2802,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn children(this: &Document) -> HtmlCollection; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = firstElementChild)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "firstElementChild" + )] #[doc = "Getter for the `firstElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/firstElementChild)"] @@ -1721,70 +2816,130 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn first_element_child(this: &Document) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = lastElementChild)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "lastElementChild" + )] #[doc = "Getter for the `lastElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn last_element_child(this: &Document) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = childElementCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "childElementCount" + )] #[doc = "Getter for the `childElementCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/childElementCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn child_element_count(this: &Document) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontouchstart" + )] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchstart(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontouchstart" + )] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontouchstart(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontouchend" + )] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchend(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontouchend" + )] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontouchend(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontouchmove" + )] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchmove(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontouchmove" + )] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontouchmove(this: &Document, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Document", + js_name = "ontouchcancel" + )] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchcancel(this: &Document) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Document", + js_name = "ontouchcancel" + )] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"] @@ -1798,7 +2953,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn new() -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = adoptNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "adoptNode" + )] #[doc = "The `adoptNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptNode)"] @@ -1806,7 +2967,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn adopt_node(this: &Document, node: &Node) -> Result; #[cfg(feature = "CaretPosition")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = caretPositionFromPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "caretPositionFromPoint" + )] #[doc = "The `caretPositionFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint)"] @@ -1814,7 +2980,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `Document`*"] pub fn caret_position_from_point(this: &Document, x: f32, y: f32) -> Option; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createAttribute)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createAttribute" + )] #[doc = "The `createAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttribute)"] @@ -1822,7 +2994,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Attr`, `Document`*"] pub fn create_attribute(this: &Document, name: &str) -> Result; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createAttributeNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createAttributeNS" + )] #[doc = "The `createAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttributeNS)"] @@ -1834,7 +3012,13 @@ extern "C" { name: &str, ) -> Result; #[cfg(feature = "CdataSection")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createCDATASection)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createCDATASection" + )] #[doc = "The `createCDATASection()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection)"] @@ -1842,7 +3026,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CdataSection`, `Document`*"] pub fn create_cdata_section(this: &Document, data: &str) -> Result; #[cfg(feature = "Comment")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createComment)] + #[wasm_bindgen(method, structural, js_class = "Document", js_name = "createComment")] #[doc = "The `createComment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createComment)"] @@ -1850,7 +3034,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Comment`, `Document`*"] pub fn create_comment(this: &Document, data: &str) -> Comment; #[cfg(feature = "DocumentFragment")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createDocumentFragment)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "createDocumentFragment" + )] #[doc = "The `createDocumentFragment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createDocumentFragment)"] @@ -1858,7 +3047,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentFragment`*"] pub fn create_document_fragment(this: &Document) -> DocumentFragment; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createElement" + )] #[doc = "The `createElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] @@ -1866,7 +3061,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn create_element(this: &Document, local_name: &str) -> Result; #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createElement" + )] #[doc = "The `createElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] @@ -1878,7 +3079,13 @@ extern "C" { options: &ElementCreationOptions, ) -> Result; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createElement" + )] #[doc = "The `createElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] @@ -1890,7 +3097,13 @@ extern "C" { options: &str, ) -> Result; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElementNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createElementNS" + )] #[doc = "The `createElementNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] @@ -1902,7 +3115,13 @@ extern "C" { qualified_name: &str, ) -> Result; #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElementNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createElementNS" + )] #[doc = "The `createElementNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] @@ -1915,7 +3134,13 @@ extern "C" { options: &ElementCreationOptions, ) -> Result; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElementNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createElementNS" + )] #[doc = "The `createElementNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] @@ -1928,7 +3153,13 @@ extern "C" { options: &str, ) -> Result; #[cfg(feature = "Event")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createEvent" + )] #[doc = "The `createEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createEvent)"] @@ -1936,7 +3167,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Event`*"] pub fn create_event(this: &Document, interface: &str) -> Result; #[cfg(feature = "NodeIterator")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createNodeIterator)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createNodeIterator" + )] #[doc = "The `createNodeIterator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] @@ -1944,7 +3181,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeIterator`*"] pub fn create_node_iterator(this: &Document, root: &Node) -> Result; #[cfg(feature = "NodeIterator")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createNodeIterator)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createNodeIterator" + )] #[doc = "The `createNodeIterator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] @@ -1956,7 +3199,13 @@ extern "C" { what_to_show: u32, ) -> Result; #[cfg(all(feature = "NodeFilter", feature = "NodeIterator",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createNodeIterator)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createNodeIterator" + )] #[doc = "The `createNodeIterator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] @@ -1969,7 +3218,13 @@ extern "C" { filter: Option<&NodeFilter>, ) -> Result; #[cfg(feature = "ProcessingInstruction")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createProcessingInstruction)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createProcessingInstruction" + )] #[doc = "The `createProcessingInstruction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createProcessingInstruction)"] @@ -1981,7 +3236,13 @@ extern "C" { data: &str, ) -> Result; #[cfg(feature = "Range")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createRange" + )] #[doc = "The `createRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createRange)"] @@ -1989,7 +3250,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Range`*"] pub fn create_range(this: &Document) -> Result; #[cfg(feature = "Text")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createTextNode)] + #[wasm_bindgen(method, structural, js_class = "Document", js_name = "createTextNode")] #[doc = "The `createTextNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTextNode)"] @@ -1997,7 +3258,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Text`*"] pub fn create_text_node(this: &Document, data: &str) -> Text; #[cfg(feature = "TreeWalker")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createTreeWalker)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createTreeWalker" + )] #[doc = "The `createTreeWalker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] @@ -2005,7 +3272,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `TreeWalker`*"] pub fn create_tree_walker(this: &Document, root: &Node) -> Result; #[cfg(feature = "TreeWalker")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createTreeWalker)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createTreeWalker" + )] #[doc = "The `createTreeWalker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] @@ -2017,7 +3290,13 @@ extern "C" { what_to_show: u32, ) -> Result; #[cfg(all(feature = "NodeFilter", feature = "TreeWalker",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createTreeWalker)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createTreeWalker" + )] #[doc = "The `createTreeWalker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] @@ -2029,28 +3308,33 @@ extern "C" { what_to_show: u32, filter: Option<&NodeFilter>, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = enableStyleSheetsForSet)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "enableStyleSheetsForSet" + )] #[doc = "The `enableStyleSheetsForSet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/enableStyleSheetsForSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn enable_style_sheets_for_set(this: &Document, name: Option<&str>); - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = exitFullscreen)] + #[wasm_bindgen(method, structural, js_class = "Document", js_name = "exitFullscreen")] #[doc = "The `exitFullscreen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn exit_fullscreen(this: &Document); - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = exitPointerLock)] + #[wasm_bindgen(method, structural, js_class = "Document", js_name = "exitPointerLock")] #[doc = "The `exitPointerLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitPointerLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn exit_pointer_lock(this: &Document); - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getAnimations)] + #[wasm_bindgen(method, structural, js_class = "Document", js_name = "getAnimations")] #[doc = "The `getAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getAnimations)"] @@ -2058,7 +3342,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn get_animations(this: &Document) -> ::js_sys::Array; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementById)] + #[wasm_bindgen(method, structural, js_class = "Document", js_name = "getElementById")] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById)"] @@ -2066,7 +3350,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn get_element_by_id(this: &Document, element_id: &str) -> Option; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementsByClassName)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "getElementsByClassName" + )] #[doc = "The `getElementsByClassName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName)"] @@ -2074,7 +3363,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn get_elements_by_class_name(this: &Document, class_names: &str) -> HtmlCollection; #[cfg(feature = "NodeList")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementsByName)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "getElementsByName" + )] #[doc = "The `getElementsByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByName)"] @@ -2082,7 +3376,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"] pub fn get_elements_by_name(this: &Document, element_name: &str) -> NodeList; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementsByTagName)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "getElementsByTagName" + )] #[doc = "The `getElementsByTagName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagName)"] @@ -2090,7 +3389,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn get_elements_by_tag_name(this: &Document, local_name: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getElementsByTagNameNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "getElementsByTagNameNS" + )] #[doc = "The `getElementsByTagNameNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagNameNS)"] @@ -2102,28 +3407,46 @@ extern "C" { local_name: &str, ) -> Result; #[cfg(feature = "Selection")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getSelection)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "getSelection" + )] #[doc = "The `getSelection()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getSelection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Selection`*"] pub fn get_selection(this: &Document) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = hasFocus)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "hasFocus")] #[doc = "The `hasFocus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn has_focus(this: &Document) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = importNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "importNode" + )] #[doc = "The `importNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn import_node(this: &Document, node: &Node) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = importNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "importNode" + )] #[doc = "The `importNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"] @@ -2132,7 +3455,13 @@ extern "C" { pub fn import_node_with_deep(this: &Document, node: &Node, deep: bool) -> Result; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = querySelector)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "querySelector" + )] #[doc = "The `querySelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector)"] @@ -2140,14 +3469,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn query_selector(this: &Document, selectors: &str) -> Result, JsValue>; #[cfg(feature = "NodeList")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = querySelectorAll)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "querySelectorAll" + )] #[doc = "The `querySelectorAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"] pub fn query_selector_all(this: &Document, selectors: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = releaseCapture)] + #[wasm_bindgen(method, structural, js_class = "Document", js_name = "releaseCapture")] #[doc = "The `releaseCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/releaseCapture)"] @@ -2155,14 +3490,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn release_capture(this: &Document); #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = elementFromPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "elementFromPoint" + )] #[doc = "The `elementFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn element_from_point(this: &Document, x: f32, y: f32) -> Option; - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = elementsFromPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "elementsFromPoint" + )] #[doc = "The `elementsFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementsFromPoint)"] @@ -2170,7 +3515,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn elements_from_point(this: &Document, x: f32, y: f32) -> ::js_sys::Array; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Text",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] @@ -2182,7 +3533,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] @@ -2194,7 +3551,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] @@ -2211,7 +3574,13 @@ extern "C" { feature = "DomPointInit", feature = "Text", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] @@ -2229,7 +3598,13 @@ extern "C" { feature = "DomPointInit", feature = "Element", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] @@ -2246,7 +3621,13 @@ extern "C" { feature = "DomPoint", feature = "DomPointInit", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] @@ -2259,7 +3640,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Text",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] @@ -2271,7 +3658,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] @@ -2283,7 +3676,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(feature = "DomQuad")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] @@ -2299,7 +3698,13 @@ extern "C" { feature = "DomQuad", feature = "Text", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] @@ -2316,7 +3721,13 @@ extern "C" { feature = "DomQuad", feature = "Element", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] @@ -2329,7 +3740,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] @@ -2342,7 +3759,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] @@ -2354,7 +3777,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] @@ -2366,7 +3795,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] @@ -2383,7 +3818,13 @@ extern "C" { feature = "DomRectReadOnly", feature = "Text", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] @@ -2401,7 +3842,13 @@ extern "C" { feature = "DomRectReadOnly", feature = "Element", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] @@ -2418,7 +3865,13 @@ extern "C" { feature = "DomQuad", feature = "DomRectReadOnly", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] @@ -2430,7 +3883,13 @@ extern "C" { from: &Document, options: &ConvertCoordinateOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getBoxQuads)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "getBoxQuads" + )] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"] @@ -2438,7 +3897,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn get_box_quads(this: &Document) -> Result<::js_sys::Array, JsValue>; #[cfg(feature = "BoxQuadOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getBoxQuads)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "getBoxQuads" + )] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"] @@ -2448,28 +3913,35 @@ extern "C" { this: &Document, options: &BoxQuadOptions, ) -> Result<::js_sys::Array, JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Document", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_0(this: &Document) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2480,7 +3952,7 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2492,7 +3964,7 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2505,7 +3977,7 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2519,7 +3991,7 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2534,7 +4006,7 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2550,35 +4022,42 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Document", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_0(this: &Document) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2590,7 +4069,7 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2603,7 +4082,7 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2617,7 +4096,7 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2632,7 +4111,7 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] @@ -2648,28 +4127,35 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Document", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_0(this: &Document) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2680,7 +4166,7 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2692,7 +4178,7 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2705,7 +4191,7 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2719,7 +4205,7 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2734,7 +4220,7 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2750,28 +4236,35 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Document", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_0(this: &Document) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2779,7 +4272,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2791,7 +4284,7 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2804,7 +4297,7 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2818,7 +4311,7 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2833,7 +4326,7 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] @@ -2850,7 +4343,13 @@ extern "C" { nodes_7: &str, ) -> Result<(), JsValue>; #[cfg(feature = "XPathExpression")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createExpression)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createExpression" + )] #[doc = "The `createExpression()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] @@ -2859,7 +4358,13 @@ extern "C" { pub fn create_expression(this: &Document, expression: &str) -> Result; #[cfg(feature = "XPathExpression")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createExpression)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createExpression" + )] #[doc = "The `createExpression()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] @@ -2871,7 +4376,13 @@ extern "C" { resolver: Option<&::js_sys::Function>, ) -> Result; #[cfg(all(feature = "XPathExpression", feature = "XPathNsResolver",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createExpression)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Document", + js_name = "createExpression" + )] #[doc = "The `createExpression()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] @@ -2882,7 +4393,12 @@ extern "C" { expression: &str, resolver: Option<&XPathNsResolver>, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createNSResolver)] + #[wasm_bindgen( + method, + structural, + js_class = "Document", + js_name = "createNSResolver" + )] #[doc = "The `createNSResolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNSResolver)"] @@ -2890,7 +4406,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn create_ns_resolver(this: &Document, node_resolver: &Node) -> Node; #[cfg(feature = "XPathResult")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "evaluate")] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] @@ -2902,7 +4418,7 @@ extern "C" { context_node: &Node, ) -> Result; #[cfg(feature = "XPathResult")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "evaluate")] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] @@ -2915,7 +4431,7 @@ extern "C" { resolver: Option<&::js_sys::Function>, ) -> Result; #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "evaluate")] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] @@ -2928,7 +4444,7 @@ extern "C" { resolver: Option<&XPathNsResolver>, ) -> Result; #[cfg(feature = "XPathResult")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "evaluate")] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] @@ -2942,7 +4458,7 @@ extern "C" { type_: u16, ) -> Result; #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "evaluate")] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] @@ -2956,7 +4472,7 @@ extern "C" { type_: u16, ) -> Result; #[cfg(feature = "XPathResult")] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "evaluate")] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] @@ -2971,7 +4487,7 @@ extern "C" { result: Option<&::js_sys::Object>, ) -> Result; #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] - # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] + #[wasm_bindgen(catch, method, structural, js_class = "Document", js_name = "evaluate")] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] diff --git a/crates/web-sys/src/features/gen_DocumentFragment.rs b/crates/web-sys/src/features/gen_DocumentFragment.rs index fa64d510a18..c643cc2f991 100644 --- a/crates/web-sys/src/features/gen_DocumentFragment.rs +++ b/crates/web-sys/src/features/gen_DocumentFragment.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = DocumentFragment , typescript_type = "DocumentFragment")] + #[wasm_bindgen( + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "DocumentFragment", + typescript_type = "DocumentFragment" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentFragment` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub type DocumentFragment; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = children)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DocumentFragment", + js_name = "children" + )] #[doc = "Getter for the `children` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/children)"] @@ -20,7 +32,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `HtmlCollection`*"] pub fn children(this: &DocumentFragment) -> HtmlCollection; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = firstElementChild)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DocumentFragment", + js_name = "firstElementChild" + )] #[doc = "Getter for the `firstElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/firstElementChild)"] @@ -28,14 +46,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] pub fn first_element_child(this: &DocumentFragment) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = lastElementChild)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DocumentFragment", + js_name = "lastElementChild" + )] #[doc = "Getter for the `lastElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/lastElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] pub fn last_element_child(this: &DocumentFragment) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = childElementCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DocumentFragment", + js_name = "childElementCount" + )] #[doc = "Getter for the `childElementCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/childElementCount)"] @@ -50,7 +80,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn new() -> Result; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = getElementById)] + #[wasm_bindgen( + method, + structural, + js_class = "DocumentFragment", + js_name = "getElementById" + )] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/getElementById)"] @@ -58,7 +93,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] pub fn get_element_by_id(this: &DocumentFragment, element_id: &str) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = querySelector)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "querySelector" + )] #[doc = "The `querySelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/querySelector)"] @@ -69,7 +110,13 @@ extern "C" { selectors: &str, ) -> Result, JsValue>; #[cfg(feature = "NodeList")] - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = querySelectorAll)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "querySelectorAll" + )] #[doc = "The `querySelectorAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/querySelectorAll)"] @@ -79,7 +126,14 @@ extern "C" { this: &DocumentFragment, selectors: &str, ) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -89,21 +143,39 @@ extern "C" { this: &DocumentFragment, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_0(this: &DocumentFragment) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_1(this: &DocumentFragment, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -114,7 +186,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -126,7 +204,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -139,7 +223,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -153,7 +243,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -168,7 +264,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -184,7 +286,14 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -192,21 +301,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str(this: &DocumentFragment, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_0(this: &DocumentFragment) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_1(this: &DocumentFragment, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -217,7 +344,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -229,7 +362,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -242,7 +381,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -256,7 +401,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -271,7 +422,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] @@ -287,7 +444,14 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -297,21 +461,39 @@ extern "C" { this: &DocumentFragment, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_0(this: &DocumentFragment) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_1(this: &DocumentFragment, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -322,7 +504,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -334,7 +522,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -347,7 +541,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -361,7 +561,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -376,7 +582,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -392,7 +604,14 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -402,21 +621,39 @@ extern "C" { this: &DocumentFragment, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_0(this: &DocumentFragment) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_1(this: &DocumentFragment, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -427,7 +664,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -439,7 +682,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -452,7 +701,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -466,7 +721,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] @@ -481,7 +742,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentFragment", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] diff --git a/crates/web-sys/src/features/gen_DocumentTimeline.rs b/crates/web-sys/src/features/gen_DocumentTimeline.rs index 57247e81940..f0df2752c13 100644 --- a/crates/web-sys/src/features/gen_DocumentTimeline.rs +++ b/crates/web-sys/src/features/gen_DocumentTimeline.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AnimationTimeline , extends = :: js_sys :: Object , js_name = DocumentTimeline , typescript_type = "DocumentTimeline")] + #[wasm_bindgen( + extends = "AnimationTimeline", + extends = "::js_sys::Object", + js_name = "DocumentTimeline", + typescript_type = "DocumentTimeline" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentTimeline` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DocumentTimelineOptions.rs b/crates/web-sys/src/features/gen_DocumentTimelineOptions.rs index 33ee6fa3c36..86ca614a611 100644 --- a/crates/web-sys/src/features/gen_DocumentTimelineOptions.rs +++ b/crates/web-sys/src/features/gen_DocumentTimelineOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DocumentTimelineOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DocumentTimelineOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentTimelineOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DocumentType.rs b/crates/web-sys/src/features/gen_DocumentType.rs index 2b6280c9b2b..a327377756d 100644 --- a/crates/web-sys/src/features/gen_DocumentType.rs +++ b/crates/web-sys/src/features/gen_DocumentType.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = DocumentType , typescript_type = "DocumentType")] + #[wasm_bindgen( + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "DocumentType", + typescript_type = "DocumentType" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentType` class."] #[doc = ""] @@ -11,49 +17,92 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub type DocumentType; - # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DocumentType", + 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/DocumentType/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn name(this: &DocumentType) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = publicId)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = systemId)] + #[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; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_0(this: &DocumentType) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -64,7 +113,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -76,7 +131,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -89,7 +150,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -103,7 +170,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -118,7 +191,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -134,28 +213,53 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_0(this: &DocumentType) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -166,7 +270,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -178,7 +288,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -191,7 +307,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -205,7 +327,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -220,7 +348,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] @@ -236,28 +370,53 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_0(this: &DocumentType) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -268,7 +427,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -280,7 +445,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -293,7 +464,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -307,7 +484,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -322,7 +505,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -338,28 +527,53 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_0(this: &DocumentType) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -370,7 +584,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -382,7 +602,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -395,7 +621,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -409,7 +641,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -424,7 +662,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] @@ -440,14 +684,21 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "DocumentType" , js_name = remove)] + #[wasm_bindgen(method, structural, js_class = "DocumentType", js_name = "remove")] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn remove(this: &DocumentType); - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -457,21 +708,39 @@ extern "C" { this: &DocumentType, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_0(this: &DocumentType) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -482,7 +751,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -494,7 +769,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -507,7 +788,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -521,7 +808,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -536,7 +829,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -552,7 +851,14 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -562,21 +868,39 @@ extern "C" { this: &DocumentType, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_0(this: &DocumentType) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -587,7 +911,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -599,7 +929,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -612,7 +948,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -626,7 +968,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] @@ -641,7 +989,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DocumentType", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] diff --git a/crates/web-sys/src/features/gen_DomError.rs b/crates/web-sys/src/features/gen_DomError.rs index 33e4f49195b..4f7c2c24d5a 100644 --- a/crates/web-sys/src/features/gen_DomError.rs +++ b/crates/web-sys/src/features/gen_DomError.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMError , typescript_type = "DOMError")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMError", + typescript_type = "DOMError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomError` class."] #[doc = ""] @@ -11,14 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] pub type DomError; - # [wasm_bindgen (structural , method , getter , js_class = "DOMError" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMError", 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/DOMError/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] pub fn name(this: &DomError) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "DOMError" , js_name = message)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_DomException.rs b/crates/web-sys/src/features/gen_DomException.rs index d7035a17069..a8e56c09c81 100644 --- a/crates/web-sys/src/features/gen_DomException.rs +++ b/crates/web-sys/src/features/gen_DomException.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMException , typescript_type = "DOMException")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMException", + typescript_type = "DOMException" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomException` class."] #[doc = ""] @@ -11,63 +15,117 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub type DomException; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + 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/DOMException/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn name(this: &DomException) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = message)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = code)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + 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/DOMException/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn code(this: &DomException) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn result(this: &DomException) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = filename)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + 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/DOMException/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn filename(this: &DomException) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = lineNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + js_name = "lineNumber" + )] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/lineNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn line_number(this: &DomException) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = columnNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + js_name = "columnNumber" + )] #[doc = "Getter for the `columnNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/columnNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn column_number(this: &DomException) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + 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/DOMException/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn data(this: &DomException) -> Option<::js_sys::Object>; - # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = stack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMException", + js_name = "stack" + )] #[doc = "Getter for the `stack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/stack)"] diff --git a/crates/web-sys/src/features/gen_DomImplementation.rs b/crates/web-sys/src/features/gen_DomImplementation.rs index 3f09acc2b6e..0f5e890fc23 100644 --- a/crates/web-sys/src/features/gen_DomImplementation.rs +++ b/crates/web-sys/src/features/gen_DomImplementation.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMImplementation , typescript_type = "DOMImplementation")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMImplementation", + typescript_type = "DOMImplementation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomImplementation` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomImplementation`*"] pub type DomImplementation; #[cfg(feature = "Document")] - # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMImplementation", + js_name = "createDocument" + )] #[doc = "The `createDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"] @@ -24,7 +34,13 @@ extern "C" { qualified_name: &str, ) -> Result; #[cfg(all(feature = "Document", feature = "DocumentType",))] - # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMImplementation", + js_name = "createDocument" + )] #[doc = "The `createDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"] @@ -37,7 +53,13 @@ extern "C" { doctype: Option<&DocumentType>, ) -> Result; #[cfg(feature = "DocumentType")] - # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocumentType)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMImplementation", + js_name = "createDocumentType" + )] #[doc = "The `createDocumentType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType)"] @@ -50,7 +72,13 @@ extern "C" { system_id: &str, ) -> Result; #[cfg(feature = "Document")] - # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMImplementation", + js_name = "createHTMLDocument" + )] #[doc = "The `createHTMLDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"] @@ -58,7 +86,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] pub fn create_html_document(this: &DomImplementation) -> Result; #[cfg(feature = "Document")] - # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMImplementation", + js_name = "createHTMLDocument" + )] #[doc = "The `createHTMLDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"] @@ -68,7 +102,12 @@ extern "C" { this: &DomImplementation, title: &str, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "DOMImplementation" , js_name = hasFeature)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMImplementation", + js_name = "hasFeature" + )] #[doc = "The `hasFeature()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature)"] diff --git a/crates/web-sys/src/features/gen_DomMatrix.rs b/crates/web-sys/src/features/gen_DomMatrix.rs index 3212e048f1b..f5471efd06d 100644 --- a/crates/web-sys/src/features/gen_DomMatrix.rs +++ b/crates/web-sys/src/features/gen_DomMatrix.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = DomMatrixReadOnly , extends = :: js_sys :: Object , js_name = DOMMatrix , typescript_type = "DOMMatrix")] + #[wasm_bindgen( + extends = "DomMatrixReadOnly", + extends = "::js_sys::Object", + js_name = "DOMMatrix", + typescript_type = "DOMMatrix" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomMatrix` class."] #[doc = ""] @@ -11,308 +16,308 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub type DomMatrix; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = a)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "a")] #[doc = "Getter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn a(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = a)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "a")] #[doc = "Setter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_a(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = b)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "b")] #[doc = "Getter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn b(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = b)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "b")] #[doc = "Setter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_b(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = c)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "c")] #[doc = "Getter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn c(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = c)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "c")] #[doc = "Setter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_c(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = d)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "d")] #[doc = "Getter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn d(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = d)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "d")] #[doc = "Setter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_d(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = e)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "e")] #[doc = "Getter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn e(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = e)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "e")] #[doc = "Setter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_e(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = f)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "f")] #[doc = "Getter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn f(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = f)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "f")] #[doc = "Setter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_f(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m11)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m11")] #[doc = "Getter for the `m11` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m11)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m11(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m11)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m11")] #[doc = "Setter for the `m11` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m11)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m11(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m12)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m12")] #[doc = "Getter for the `m12` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m12)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m12(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m12)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m12")] #[doc = "Setter for the `m12` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m12)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m12(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m13)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m13")] #[doc = "Getter for the `m13` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m13)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m13(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m13)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m13")] #[doc = "Setter for the `m13` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m13)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m13(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m14)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m14")] #[doc = "Getter for the `m14` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m14)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m14(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m14)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m14")] #[doc = "Setter for the `m14` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m14)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m14(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m21)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m21")] #[doc = "Getter for the `m21` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m21)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m21(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m21)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m21")] #[doc = "Setter for the `m21` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m21)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m21(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m22)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m22")] #[doc = "Getter for the `m22` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m22)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m22(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m22)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m22")] #[doc = "Setter for the `m22` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m22)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m22(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m23)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m23")] #[doc = "Getter for the `m23` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m23)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m23(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m23)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m23")] #[doc = "Setter for the `m23` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m23)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m23(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m24)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m24")] #[doc = "Getter for the `m24` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m24)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m24(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m24)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m24")] #[doc = "Setter for the `m24` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m24)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m24(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m31)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m31")] #[doc = "Getter for the `m31` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m31)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m31(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m31)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m31")] #[doc = "Setter for the `m31` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m31)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m31(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m32)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m32")] #[doc = "Getter for the `m32` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m32)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m32(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m32)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m32")] #[doc = "Setter for the `m32` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m32)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m32(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m33)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m33")] #[doc = "Getter for the `m33` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m33)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m33(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m33)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m33")] #[doc = "Setter for the `m33` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m33)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m33(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m34)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m34")] #[doc = "Getter for the `m34` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m34)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m34(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m34)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m34")] #[doc = "Setter for the `m34` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m34)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m34(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m41)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m41")] #[doc = "Getter for the `m41` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m41)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m41(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m41)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m41")] #[doc = "Setter for the `m41` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m41)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m41(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m42)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m42")] #[doc = "Getter for the `m42` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m42)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m42(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m42)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m42")] #[doc = "Setter for the `m42` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m42)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m42(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m43)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m43")] #[doc = "Getter for the `m43` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m43)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m43(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m43)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m43")] #[doc = "Setter for the `m43` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m43)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m43(this: &DomMatrix, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m44)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMMatrix", js_name = "m44")] #[doc = "Getter for the `m44` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m44)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m44(this: &DomMatrix) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m44)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMMatrix", js_name = "m44")] #[doc = "Setter for the `m44` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m44)"] @@ -363,28 +368,38 @@ extern "C" { pub fn new_with_number_sequence( number_sequence: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = invertSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "invertSelf")] #[doc = "The `invertSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/invertSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn invert_self(this: &DomMatrix) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = multiplySelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "multiplySelf")] #[doc = "The `multiplySelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/multiplySelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn multiply_self(this: &DomMatrix, other: &DomMatrix) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = preMultiplySelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "preMultiplySelf" + )] #[doc = "The `preMultiplySelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/preMultiplySelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn pre_multiply_self(this: &DomMatrix, other: &DomMatrix) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateAxisAngleSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "rotateAxisAngleSelf" + )] #[doc = "The `rotateAxisAngleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)"] @@ -397,28 +412,33 @@ extern "C" { z: f64, angle: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateFromVectorSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "rotateFromVectorSelf" + )] #[doc = "The `rotateFromVectorSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateFromVectorSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_from_vector_self(this: &DomMatrix, x: f64, y: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "rotateSelf")] #[doc = "The `rotateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_self(this: &DomMatrix, angle: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "rotateSelf")] #[doc = "The `rotateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_self_with_origin_x(this: &DomMatrix, angle: f64, origin_x: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "rotateSelf")] #[doc = "The `rotateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] @@ -430,21 +450,21 @@ extern "C" { origin_x: f64, origin_y: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "scale3dSelf")] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale3d_self(this: &DomMatrix, scale: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "scale3dSelf")] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale3d_self_with_origin_x(this: &DomMatrix, scale: f64, origin_x: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "scale3dSelf")] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] @@ -456,7 +476,7 @@ extern "C" { origin_x: f64, origin_y: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "scale3dSelf")] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] @@ -469,14 +489,24 @@ extern "C" { origin_y: f64, origin_z: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "scaleNonUniformSelf" + )] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_non_uniform_self(this: &DomMatrix, scale_x: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "scaleNonUniformSelf" + )] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] @@ -487,7 +517,12 @@ extern "C" { scale_x: f64, scale_y: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "scaleNonUniformSelf" + )] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] @@ -499,7 +534,12 @@ extern "C" { scale_y: f64, scale_z: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "scaleNonUniformSelf" + )] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] @@ -512,7 +552,12 @@ extern "C" { scale_z: f64, origin_x: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "scaleNonUniformSelf" + )] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] @@ -526,7 +571,12 @@ extern "C" { origin_x: f64, origin_y: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrix", + js_name = "scaleNonUniformSelf" + )] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] @@ -541,21 +591,21 @@ extern "C" { origin_y: f64, origin_z: f64, ) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "scaleSelf")] #[doc = "The `scaleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_self(this: &DomMatrix, scale: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "scaleSelf")] #[doc = "The `scaleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_self_with_origin_x(this: &DomMatrix, scale: f64, origin_x: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "scaleSelf")] #[doc = "The `scaleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] @@ -567,35 +617,41 @@ extern "C" { origin_x: f64, origin_y: f64, ) -> DomMatrix; - # [wasm_bindgen (catch , method , structural , js_class = "DOMMatrix" , js_name = setMatrixValue)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMMatrix", + js_name = "setMatrixValue" + )] #[doc = "The `setMatrixValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/setMatrixValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_matrix_value(this: &DomMatrix, transform_list: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = skewXSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "skewXSelf")] #[doc = "The `skewXSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/skewXSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn skew_x_self(this: &DomMatrix, sx: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = skewYSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "skewYSelf")] #[doc = "The `skewYSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/skewYSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn skew_y_self(this: &DomMatrix, sy: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = translateSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "translateSelf")] #[doc = "The `translateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/translateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn translate_self(this: &DomMatrix, tx: f64, ty: f64) -> DomMatrix; - # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = translateSelf)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrix", js_name = "translateSelf")] #[doc = "The `translateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/translateSelf)"] diff --git a/crates/web-sys/src/features/gen_DomMatrixReadOnly.rs b/crates/web-sys/src/features/gen_DomMatrixReadOnly.rs index a31e55465d2..8d5332ae85e 100644 --- a/crates/web-sys/src/features/gen_DomMatrixReadOnly.rs +++ b/crates/web-sys/src/features/gen_DomMatrixReadOnly.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMMatrixReadOnly , typescript_type = "DOMMatrixReadOnly")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMMatrixReadOnly", + typescript_type = "DOMMatrixReadOnly" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomMatrixReadOnly` class."] #[doc = ""] @@ -11,168 +15,312 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub type DomMatrixReadOnly; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = a)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "a" + )] #[doc = "Getter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn a(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = b)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "b" + )] #[doc = "Getter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn b(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = c)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "c" + )] #[doc = "Getter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn c(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = d)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "d" + )] #[doc = "Getter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn d(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = e)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "e" + )] #[doc = "Getter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn e(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = f)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "f" + )] #[doc = "Getter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn f(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m11)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m11" + )] #[doc = "Getter for the `m11` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m11)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m11(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m12)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m12" + )] #[doc = "Getter for the `m12` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m12)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m12(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m13)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m13" + )] #[doc = "Getter for the `m13` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m13)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m13(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m14)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m14" + )] #[doc = "Getter for the `m14` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m14)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m14(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m21)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m21" + )] #[doc = "Getter for the `m21` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m21)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m21(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m22)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m22" + )] #[doc = "Getter for the `m22` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m22)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m22(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m23)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m23" + )] #[doc = "Getter for the `m23` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m23)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m23(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m24)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m24" + )] #[doc = "Getter for the `m24` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m24)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m24(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m31)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m31" + )] #[doc = "Getter for the `m31` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m31)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m31(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m32)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m32" + )] #[doc = "Getter for the `m32` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m32)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m32(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m33)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m33" + )] #[doc = "Getter for the `m33` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m33)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m33(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m34)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m34" + )] #[doc = "Getter for the `m34` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m34)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m34(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m41)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m41" + )] #[doc = "Getter for the `m41` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m41)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m41(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m42)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m42" + )] #[doc = "Getter for the `m42` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m42)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m42(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m43)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m43" + )] #[doc = "Getter for the `m43` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m43)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m43(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m44)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "m44" + )] #[doc = "Getter for the `m44` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m44)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m44(this: &DomMatrixReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = is2D)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "is2D" + )] #[doc = "Getter for the `is2D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/is2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn is_2d(this: &DomMatrixReadOnly) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = isIdentity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMMatrixReadOnly", + js_name = "isIdentity" + )] #[doc = "Getter for the `isIdentity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/isIdentity)"] @@ -203,7 +351,7 @@ extern "C" { init: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = flipX)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "flipX")] #[doc = "The `flipX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/flipX)"] @@ -211,7 +359,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn flip_x(this: &DomMatrixReadOnly) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = flipY)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "flipY")] #[doc = "The `flipY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/flipY)"] @@ -219,7 +367,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn flip_y(this: &DomMatrixReadOnly) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = inverse)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "inverse" + )] #[doc = "The `inverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/inverse)"] @@ -227,7 +380,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn inverse(this: &DomMatrixReadOnly) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = multiply)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "multiply" + )] #[doc = "The `multiply()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/multiply)"] @@ -235,7 +393,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn multiply(this: &DomMatrixReadOnly, other: &DomMatrix) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] @@ -243,7 +401,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate(this: &DomMatrixReadOnly, angle: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] @@ -251,7 +409,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate_with_origin_x(this: &DomMatrixReadOnly, angle: f64, origin_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] @@ -264,7 +422,12 @@ extern "C" { origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotateAxisAngle)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "rotateAxisAngle" + )] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)"] @@ -278,7 +441,12 @@ extern "C" { angle: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotateFromVector)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "rotateFromVector" + )] #[doc = "The `rotateFromVector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)"] @@ -286,7 +454,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate_from_vector(this: &DomMatrixReadOnly, x: f64, y: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] @@ -294,7 +462,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale(this: &DomMatrixReadOnly, scale: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] @@ -302,7 +470,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_with_origin_x(this: &DomMatrixReadOnly, scale: f64, origin_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] @@ -315,7 +483,12 @@ extern "C" { origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scale3d" + )] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] @@ -323,7 +496,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale3d(this: &DomMatrixReadOnly, scale: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scale3d" + )] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] @@ -331,7 +509,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale3d_with_origin_x(this: &DomMatrixReadOnly, scale: f64, origin_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scale3d" + )] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] @@ -344,7 +527,12 @@ extern "C" { origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scale3d" + )] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] @@ -358,7 +546,12 @@ extern "C" { origin_z: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scaleNonUniform" + )] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] @@ -366,7 +559,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_non_uniform(this: &DomMatrixReadOnly, scale_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scaleNonUniform" + )] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] @@ -378,7 +576,12 @@ extern "C" { scale_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scaleNonUniform" + )] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] @@ -391,7 +594,12 @@ extern "C" { scale_z: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scaleNonUniform" + )] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] @@ -405,7 +613,12 @@ extern "C" { origin_x: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scaleNonUniform" + )] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] @@ -420,7 +633,12 @@ extern "C" { origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "scaleNonUniform" + )] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] @@ -436,7 +654,7 @@ extern "C" { origin_z: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = skewX)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "skewX")] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/skewX)"] @@ -444,28 +662,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn skew_x(this: &DomMatrixReadOnly, sx: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = skewY)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "skewY")] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn skew_y(this: &DomMatrixReadOnly, sy: f64) -> DomMatrix; - # [wasm_bindgen (catch , method , structural , js_class = "DOMMatrixReadOnly" , js_name = toFloat32Array)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "toFloat32Array" + )] #[doc = "The `toFloat32Array()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn to_float32_array(this: &DomMatrixReadOnly) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMMatrixReadOnly" , js_name = toFloat64Array)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "toFloat64Array" + )] #[doc = "The `toFloat64Array()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn to_float64_array(this: &DomMatrixReadOnly) -> Result, JsValue>; - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "DOMMatrixReadOnly", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toJSON)"] @@ -473,7 +703,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn to_json(this: &DomMatrixReadOnly) -> ::js_sys::Object; #[cfg(feature = "DomPoint")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = transformPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "transformPoint" + )] #[doc = "The `transformPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/transformPoint)"] @@ -481,7 +716,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`, `DomPoint`*"] pub fn transform_point(this: &DomMatrixReadOnly) -> DomPoint; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = transformPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "transformPoint" + )] #[doc = "The `transformPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/transformPoint)"] @@ -489,7 +729,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`, `DomPoint`, `DomPointInit`*"] pub fn transform_point_with_point(this: &DomMatrixReadOnly, point: &DomPointInit) -> DomPoint; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = translate)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "translate" + )] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/translate)"] @@ -497,7 +742,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn translate(this: &DomMatrixReadOnly, tx: f64, ty: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] - # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = translate)] + #[wasm_bindgen( + method, + structural, + js_class = "DOMMatrixReadOnly", + js_name = "translate" + )] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/translate)"] diff --git a/crates/web-sys/src/features/gen_DomParser.rs b/crates/web-sys/src/features/gen_DomParser.rs index 97385ccfef7..7f5354e545b 100644 --- a/crates/web-sys/src/features/gen_DomParser.rs +++ b/crates/web-sys/src/features/gen_DomParser.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMParser , typescript_type = "DOMParser")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMParser", + typescript_type = "DOMParser" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomParser` class."] #[doc = ""] @@ -19,7 +23,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomParser`*"] pub fn new() -> Result; #[cfg(all(feature = "Document", feature = "SupportedType",))] - # [wasm_bindgen (catch , method , structural , js_class = "DOMParser" , js_name = parseFromString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMParser", + js_name = "parseFromString" + )] #[doc = "The `parseFromString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString)"] diff --git a/crates/web-sys/src/features/gen_DomPoint.rs b/crates/web-sys/src/features/gen_DomPoint.rs index 5a563cde7d1..ec28598c139 100644 --- a/crates/web-sys/src/features/gen_DomPoint.rs +++ b/crates/web-sys/src/features/gen_DomPoint.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = DomPointReadOnly , extends = :: js_sys :: Object , js_name = DOMPoint , typescript_type = "DOMPoint")] + #[wasm_bindgen( + extends = "DomPointReadOnly", + extends = "::js_sys::Object", + js_name = "DOMPoint", + typescript_type = "DOMPoint" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomPoint` class."] #[doc = ""] @@ -11,56 +16,56 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub type DomPoint; - # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMPoint", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn x(this: &DomPoint) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = x)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMPoint", js_name = "x")] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn set_x(this: &DomPoint, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMPoint", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn y(this: &DomPoint) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = y)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMPoint", js_name = "y")] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn set_y(this: &DomPoint, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = z)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMPoint", js_name = "z")] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn z(this: &DomPoint) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = z)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMPoint", js_name = "z")] #[doc = "Setter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn set_z(this: &DomPoint, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = w)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMPoint", js_name = "w")] #[doc = "Getter for the `w` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn w(this: &DomPoint) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = w)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMPoint", js_name = "w")] #[doc = "Setter for the `w` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"] @@ -107,7 +112,11 @@ extern "C" { z: f64, w: f64, ) -> Result; - # [wasm_bindgen (static_method_of = DomPoint , js_class = "DOMPoint" , js_name = fromPoint)] + #[wasm_bindgen( + static_method_of = "DomPoint", + js_class = "DOMPoint", + js_name = "fromPoint" + )] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint)"] @@ -115,7 +124,11 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn from_point() -> DomPoint; #[cfg(feature = "DomPointInit")] - # [wasm_bindgen (static_method_of = DomPoint , js_class = "DOMPoint" , js_name = fromPoint)] + #[wasm_bindgen( + static_method_of = "DomPoint", + js_class = "DOMPoint", + js_name = "fromPoint" + )] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint)"] diff --git a/crates/web-sys/src/features/gen_DomPointInit.rs b/crates/web-sys/src/features/gen_DomPointInit.rs index 51be45cc560..78d8c0c8eb8 100644 --- a/crates/web-sys/src/features/gen_DomPointInit.rs +++ b/crates/web-sys/src/features/gen_DomPointInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMPointInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DOMPointInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomPointInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomPointReadOnly.rs b/crates/web-sys/src/features/gen_DomPointReadOnly.rs index 2601722c092..f360dc6a470 100644 --- a/crates/web-sys/src/features/gen_DomPointReadOnly.rs +++ b/crates/web-sys/src/features/gen_DomPointReadOnly.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMPointReadOnly , typescript_type = "DOMPointReadOnly")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMPointReadOnly", + typescript_type = "DOMPointReadOnly" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomPointReadOnly` class."] #[doc = ""] @@ -11,28 +15,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub type DomPointReadOnly; - # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMPointReadOnly", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn x(this: &DomPointReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMPointReadOnly", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn y(this: &DomPointReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = z)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMPointReadOnly", + js_name = "z" + )] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn z(this: &DomPointReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = w)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMPointReadOnly", + js_name = "w" + )] #[doc = "Getter for the `w` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/w)"] @@ -79,7 +107,11 @@ extern "C" { z: f64, w: f64, ) -> Result; - # [wasm_bindgen (static_method_of = DomPointReadOnly , js_class = "DOMPointReadOnly" , js_name = fromPoint)] + #[wasm_bindgen( + static_method_of = "DomPointReadOnly", + js_class = "DOMPointReadOnly", + js_name = "fromPoint" + )] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint)"] @@ -87,14 +119,18 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn from_point() -> DomPointReadOnly; #[cfg(feature = "DomPointInit")] - # [wasm_bindgen (static_method_of = DomPointReadOnly , js_class = "DOMPointReadOnly" , js_name = fromPoint)] + #[wasm_bindgen( + static_method_of = "DomPointReadOnly", + js_class = "DOMPointReadOnly", + js_name = "fromPoint" + )] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomPointReadOnly`*"] pub fn from_point_with_other(other: &DomPointInit) -> DomPointReadOnly; - # [wasm_bindgen (method , structural , js_class = "DOMPointReadOnly" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "DOMPointReadOnly", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/toJSON)"] diff --git a/crates/web-sys/src/features/gen_DomQuad.rs b/crates/web-sys/src/features/gen_DomQuad.rs index 26b87535eb4..65f5571db00 100644 --- a/crates/web-sys/src/features/gen_DomQuad.rs +++ b/crates/web-sys/src/features/gen_DomQuad.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMQuad , typescript_type = "DOMQuad")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMQuad", + typescript_type = "DOMQuad" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomQuad` class."] #[doc = ""] @@ -12,7 +16,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomQuad`*"] pub type DomQuad; #[cfg(feature = "DomPoint")] - # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p1)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMQuad", js_name = "p1")] #[doc = "Getter for the `p1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p1)"] @@ -20,7 +24,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p1(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomPoint")] - # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p2)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMQuad", js_name = "p2")] #[doc = "Getter for the `p2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p2)"] @@ -28,7 +32,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p2(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomPoint")] - # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p3)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMQuad", js_name = "p3")] #[doc = "Getter for the `p3` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p3)"] @@ -36,7 +40,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p3(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomPoint")] - # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p4)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMQuad", js_name = "p4")] #[doc = "Getter for the `p4` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p4)"] @@ -44,7 +48,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p4(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = bounds)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMQuad", js_name = "bounds")] #[doc = "Getter for the `bounds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/bounds)"] @@ -111,7 +115,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] pub fn new_with_rect(rect: &DomRectReadOnly) -> Result; #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (method , structural , js_class = "DOMQuad" , js_name = getBounds)] + #[wasm_bindgen(method, structural, js_class = "DOMQuad", js_name = "getBounds")] #[doc = "The `getBounds()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/getBounds)"] @@ -119,7 +123,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] pub fn get_bounds(this: &DomQuad) -> DomRectReadOnly; #[cfg(feature = "DomQuadJson")] - # [wasm_bindgen (method , structural , js_class = "DOMQuad" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "DOMQuad", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/toJSON)"] diff --git a/crates/web-sys/src/features/gen_DomQuadInit.rs b/crates/web-sys/src/features/gen_DomQuadInit.rs index 3bd7d907545..f12cc439607 100644 --- a/crates/web-sys/src/features/gen_DomQuadInit.rs +++ b/crates/web-sys/src/features/gen_DomQuadInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMQuadInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DOMQuadInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomQuadInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomQuadJson.rs b/crates/web-sys/src/features/gen_DomQuadJson.rs index d3316d9751d..363ccd95c68 100644 --- a/crates/web-sys/src/features/gen_DomQuadJson.rs +++ b/crates/web-sys/src/features/gen_DomQuadJson.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMQuadJSON)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DOMQuadJSON")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomQuadJson` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomRect.rs b/crates/web-sys/src/features/gen_DomRect.rs index 0d3a02988e9..0a0247f847b 100644 --- a/crates/web-sys/src/features/gen_DomRect.rs +++ b/crates/web-sys/src/features/gen_DomRect.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = DomRectReadOnly , extends = :: js_sys :: Object , js_name = DOMRect , typescript_type = "DOMRect")] + #[wasm_bindgen( + extends = "DomRectReadOnly", + extends = "::js_sys::Object", + js_name = "DOMRect", + typescript_type = "DOMRect" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRect` class."] #[doc = ""] @@ -11,56 +16,56 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub type DomRect; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMRect", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn x(this: &DomRect) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = x)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMRect", js_name = "x")] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn set_x(this: &DomRect, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMRect", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn y(this: &DomRect) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = y)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMRect", js_name = "y")] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn set_y(this: &DomRect, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = width)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMRect", js_name = "width")] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn width(this: &DomRect) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = width)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMRect", js_name = "width")] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn set_width(this: &DomRect, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = height)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMRect", js_name = "height")] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn height(this: &DomRect) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = height)] + #[wasm_bindgen(structural, method, setter, js_class = "DOMRect", js_name = "height")] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/height)"] diff --git a/crates/web-sys/src/features/gen_DomRectInit.rs b/crates/web-sys/src/features/gen_DomRectInit.rs index ab4a54a2b0a..f5e52547778 100644 --- a/crates/web-sys/src/features/gen_DomRectInit.rs +++ b/crates/web-sys/src/features/gen_DomRectInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMRectInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DOMRectInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRectInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomRectList.rs b/crates/web-sys/src/features/gen_DomRectList.rs index e668a849238..41cfa3b590e 100644 --- a/crates/web-sys/src/features/gen_DomRectList.rs +++ b/crates/web-sys/src/features/gen_DomRectList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMRectList , typescript_type = "DOMRectList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMRectList", + typescript_type = "DOMRectList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRectList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"] pub type DomRectList; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/length)"] @@ -19,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"] pub fn length(this: &DomRectList) -> u32; #[cfg(feature = "DomRect")] - # [wasm_bindgen (method , structural , js_class = "DOMRectList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "DOMRectList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/item)"] diff --git a/crates/web-sys/src/features/gen_DomRectReadOnly.rs b/crates/web-sys/src/features/gen_DomRectReadOnly.rs index 1b48f02b103..7fe3358ca95 100644 --- a/crates/web-sys/src/features/gen_DomRectReadOnly.rs +++ b/crates/web-sys/src/features/gen_DomRectReadOnly.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMRectReadOnly , typescript_type = "DOMRectReadOnly")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMRectReadOnly", + typescript_type = "DOMRectReadOnly" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRectReadOnly` class."] #[doc = ""] @@ -11,56 +15,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub type DomRectReadOnly; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn x(this: &DomRectReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn y(this: &DomRectReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn width(this: &DomRectReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn height(this: &DomRectReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = top)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "top" + )] #[doc = "Getter for the `top` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn top(this: &DomRectReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = right)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "right" + )] #[doc = "Getter for the `right` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn right(this: &DomRectReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = bottom)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "bottom" + )] #[doc = "Getter for the `bottom` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn bottom(this: &DomRectReadOnly) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = left)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRectReadOnly", + js_name = "left" + )] #[doc = "Getter for the `left` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left)"] @@ -111,7 +163,7 @@ extern "C" { width: f64, height: f64, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "DOMRectReadOnly" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "DOMRectReadOnly", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/toJSON)"] diff --git a/crates/web-sys/src/features/gen_DomRequest.rs b/crates/web-sys/src/features/gen_DomRequest.rs index 05e678563f5..e614f146064 100644 --- a/crates/web-sys/src/features/gen_DomRequest.rs +++ b/crates/web-sys/src/features/gen_DomRequest.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = DOMRequest , typescript_type = "DOMRequest")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "DOMRequest", + typescript_type = "DOMRequest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRequest` class."] #[doc = ""] @@ -12,14 +17,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub type DomRequest; #[cfg(feature = "DomRequestReadyState")] - # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRequest", + 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/DOMRequest/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `DomRequestReadyState`*"] pub fn ready_state(this: &DomRequest) -> DomRequestReadyState; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRequest", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/result)"] @@ -27,49 +44,73 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn result(this: &DomRequest) -> ::wasm_bindgen::JsValue; #[cfg(feature = "DomException")] - # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = error)] + #[wasm_bindgen(structural, method, getter, js_class = "DOMRequest", js_name = "error")] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `DomRequest`*"] pub fn error(this: &DomRequest) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onsuccess)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRequest", + js_name = "onsuccess" + )] #[doc = "Getter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn onsuccess(this: &DomRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onsuccess)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "DOMRequest", + js_name = "onsuccess" + )] #[doc = "Setter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn set_onsuccess(this: &DomRequest, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMRequest", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn onerror(this: &DomRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "DOMRequest", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn set_onerror(this: &DomRequest, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMRequest", js_name = "then")] #[doc = "The `then()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn then(this: &DomRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMRequest", js_name = "then")] #[doc = "The `then()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] @@ -79,7 +120,7 @@ extern "C" { this: &DomRequest, fulfill_callback: Option<&::js_sys::Function>, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMRequest", js_name = "then")] #[doc = "The `then()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] diff --git a/crates/web-sys/src/features/gen_DomStringList.rs b/crates/web-sys/src/features/gen_DomStringList.rs index 1b932f2915b..c9970bc3ab6 100644 --- a/crates/web-sys/src/features/gen_DomStringList.rs +++ b/crates/web-sys/src/features/gen_DomStringList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMStringList , typescript_type = "DOMStringList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMStringList", + typescript_type = "DOMStringList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomStringList` class."] #[doc = ""] @@ -11,21 +15,27 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub type DomStringList; - # [wasm_bindgen (structural , method , getter , js_class = "DOMStringList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMStringList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub fn length(this: &DomStringList) -> u32; - # [wasm_bindgen (method , structural , js_class = "DOMStringList" , js_name = contains)] + #[wasm_bindgen(method, structural, js_class = "DOMStringList", js_name = "contains")] #[doc = "The `contains()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/contains)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub fn contains(this: &DomStringList, string: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "DOMStringList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "DOMStringList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/item)"] diff --git a/crates/web-sys/src/features/gen_DomStringMap.rs b/crates/web-sys/src/features/gen_DomStringMap.rs index c102f10850b..21696551f8a 100644 --- a/crates/web-sys/src/features/gen_DomStringMap.rs +++ b/crates/web-sys/src/features/gen_DomStringMap.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMStringMap , typescript_type = "DOMStringMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMStringMap", + typescript_type = "DOMStringMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomStringMap` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomTokenList.rs b/crates/web-sys/src/features/gen_DomTokenList.rs index a097863d636..1a0653d3022 100644 --- a/crates/web-sys/src/features/gen_DomTokenList.rs +++ b/crates/web-sys/src/features/gen_DomTokenList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMTokenList , typescript_type = "DOMTokenList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "DOMTokenList", + typescript_type = "DOMTokenList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomTokenList` class."] #[doc = ""] @@ -11,56 +15,81 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub type DomTokenList; - # [wasm_bindgen (structural , method , getter , js_class = "DOMTokenList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMTokenList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn length(this: &DomTokenList) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "DOMTokenList" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DOMTokenList", + js_name = "value" + )] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn value(this: &DomTokenList) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "DOMTokenList" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "DOMTokenList", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn set_value(this: &DomTokenList, value: &str); - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DOMTokenList", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_0(this: &DomTokenList) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] @@ -72,7 +101,7 @@ extern "C" { tokens_2: &str, tokens_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] @@ -85,7 +114,7 @@ extern "C" { tokens_3: &str, tokens_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] @@ -99,7 +128,7 @@ extern "C" { tokens_4: &str, tokens_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] @@ -114,7 +143,7 @@ extern "C" { tokens_5: &str, tokens_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "DOMTokenList", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] @@ -130,49 +159,80 @@ extern "C" { tokens_6: &str, tokens_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = contains)] + #[wasm_bindgen(method, structural, js_class = "DOMTokenList", js_name = "contains")] #[doc = "The `contains()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn contains(this: &DomTokenList, token: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "DOMTokenList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn item(this: &DomTokenList, index: u32) -> Option; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_0(this: &DomTokenList) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] @@ -184,7 +244,13 @@ extern "C" { tokens_2: &str, tokens_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] @@ -197,7 +263,13 @@ extern "C" { tokens_3: &str, tokens_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] @@ -211,7 +283,13 @@ extern "C" { tokens_4: &str, tokens_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] @@ -226,7 +304,13 @@ extern "C" { tokens_5: &str, tokens_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] @@ -242,28 +326,52 @@ extern "C" { tokens_6: &str, tokens_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = replace)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "replace" + )] #[doc = "The `replace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn replace(this: &DomTokenList, token: &str, new_token: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = supports)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "supports" + )] #[doc = "The `supports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn supports(this: &DomTokenList, token: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = toggle)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "toggle" + )] #[doc = "The `toggle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn toggle(this: &DomTokenList, token: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = toggle)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "DOMTokenList", + js_name = "toggle" + )] #[doc = "The `toggle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"] diff --git a/crates/web-sys/src/features/gen_DomWindowResizeEventDetail.rs b/crates/web-sys/src/features/gen_DomWindowResizeEventDetail.rs index 7bf972f04f4..72f9c1097ad 100644 --- a/crates/web-sys/src/features/gen_DomWindowResizeEventDetail.rs +++ b/crates/web-sys/src/features/gen_DomWindowResizeEventDetail.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMWindowResizeEventDetail)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DOMWindowResizeEventDetail")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomWindowResizeEventDetail` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DragEvent.rs b/crates/web-sys/src/features/gen_DragEvent.rs index fc18b1ee5f0..5ec2b860646 100644 --- a/crates/web-sys/src/features/gen_DragEvent.rs +++ b/crates/web-sys/src/features/gen_DragEvent.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = DragEvent , typescript_type = "DragEvent")] + #[wasm_bindgen( + extends = "MouseEvent", + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "DragEvent", + typescript_type = "DragEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DragEvent` class."] #[doc = ""] @@ -12,7 +19,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub type DragEvent; #[cfg(feature = "DataTransfer")] - # [wasm_bindgen (structural , method , getter , js_class = "DragEvent" , js_name = dataTransfer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DragEvent", + js_name = "dataTransfer" + )] #[doc = "Getter for the `dataTransfer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/dataTransfer)"] @@ -37,21 +50,21 @@ extern "C" { type_: &str, event_init_dict: &DragEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub fn init_drag_event(this: &DragEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub fn init_drag_event_with_can_bubble(this: &DragEvent, type_: &str, can_bubble: bool); - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -64,7 +77,7 @@ extern "C" { cancelable: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -78,7 +91,7 @@ extern "C" { a_view: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -93,7 +106,7 @@ extern "C" { a_detail: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -109,7 +122,7 @@ extern "C" { a_screen_x: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -126,7 +139,7 @@ extern "C" { a_screen_y: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -144,7 +157,7 @@ extern "C" { a_client_x: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -163,7 +176,7 @@ extern "C" { a_client_y: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -183,7 +196,7 @@ extern "C" { a_ctrl_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -204,7 +217,7 @@ extern "C" { a_alt_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -226,7 +239,7 @@ extern "C" { a_shift_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -249,7 +262,7 @@ extern "C" { a_meta_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -273,7 +286,7 @@ extern "C" { a_button: u16, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] @@ -298,7 +311,7 @@ extern "C" { a_related_target: Option<&EventTarget>, ); #[cfg(all(feature = "DataTransfer", feature = "EventTarget", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[wasm_bindgen(method, structural, js_class = "DragEvent", js_name = "initDragEvent")] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] diff --git a/crates/web-sys/src/features/gen_DragEventInit.rs b/crates/web-sys/src/features/gen_DragEventInit.rs index d28d127a986..4c8ceef03e7 100644 --- a/crates/web-sys/src/features/gen_DragEventInit.rs +++ b/crates/web-sys/src/features/gen_DragEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DragEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DragEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DragEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DynamicsCompressorNode.rs b/crates/web-sys/src/features/gen_DynamicsCompressorNode.rs index 3a7c7d5f5d0..b1b77f897ff 100644 --- a/crates/web-sys/src/features/gen_DynamicsCompressorNode.rs +++ b/crates/web-sys/src/features/gen_DynamicsCompressorNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = DynamicsCompressorNode , typescript_type = "DynamicsCompressorNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "DynamicsCompressorNode", + typescript_type = "DynamicsCompressorNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DynamicsCompressorNode` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"] pub type DynamicsCompressorNode; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = threshold)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DynamicsCompressorNode", + js_name = "threshold" + )] #[doc = "Getter for the `threshold` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/threshold)"] @@ -20,7 +32,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn threshold(this: &DynamicsCompressorNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = knee)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DynamicsCompressorNode", + js_name = "knee" + )] #[doc = "Getter for the `knee` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/knee)"] @@ -28,14 +46,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn knee(this: &DynamicsCompressorNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = ratio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DynamicsCompressorNode", + js_name = "ratio" + )] #[doc = "Getter for the `ratio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/ratio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn ratio(this: &DynamicsCompressorNode) -> AudioParam; - # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = reduction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DynamicsCompressorNode", + js_name = "reduction" + )] #[doc = "Getter for the `reduction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/reduction)"] @@ -43,7 +73,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"] pub fn reduction(this: &DynamicsCompressorNode) -> f32; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = attack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DynamicsCompressorNode", + js_name = "attack" + )] #[doc = "Getter for the `attack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/attack)"] @@ -51,7 +87,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn attack(this: &DynamicsCompressorNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = release)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "DynamicsCompressorNode", + js_name = "release" + )] #[doc = "Getter for the `release` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/release)"] diff --git a/crates/web-sys/src/features/gen_DynamicsCompressorOptions.rs b/crates/web-sys/src/features/gen_DynamicsCompressorOptions.rs index ff594822fc8..af04d93e97d 100644 --- a/crates/web-sys/src/features/gen_DynamicsCompressorOptions.rs +++ b/crates/web-sys/src/features/gen_DynamicsCompressorOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DynamicsCompressorOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "DynamicsCompressorOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DynamicsCompressorOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs b/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs index 3d7aec6e1b5..d77a93c4c2a 100644 --- a/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcKeyAlgorithm)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EcKeyAlgorithm")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcKeyAlgorithm` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EcKeyGenParams.rs b/crates/web-sys/src/features/gen_EcKeyGenParams.rs index 8b1df4070db..13cb801e309 100644 --- a/crates/web-sys/src/features/gen_EcKeyGenParams.rs +++ b/crates/web-sys/src/features/gen_EcKeyGenParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcKeyGenParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EcKeyGenParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcKeyGenParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EcKeyImportParams.rs b/crates/web-sys/src/features/gen_EcKeyImportParams.rs index b6ff16b014a..0a1b77254ff 100644 --- a/crates/web-sys/src/features/gen_EcKeyImportParams.rs +++ b/crates/web-sys/src/features/gen_EcKeyImportParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcKeyImportParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EcKeyImportParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcKeyImportParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs b/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs index 0303bb31949..ed5f99b38d0 100644 --- a/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs +++ b/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcdhKeyDeriveParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EcdhKeyDeriveParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcdhKeyDeriveParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EcdsaParams.rs b/crates/web-sys/src/features/gen_EcdsaParams.rs index a54f84b7783..970f1fec8a1 100644 --- a/crates/web-sys/src/features/gen_EcdsaParams.rs +++ b/crates/web-sys/src/features/gen_EcdsaParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcdsaParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EcdsaParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcdsaParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EffectTiming.rs b/crates/web-sys/src/features/gen_EffectTiming.rs index 07e8deeeb20..52769987711 100644 --- a/crates/web-sys/src/features/gen_EffectTiming.rs +++ b/crates/web-sys/src/features/gen_EffectTiming.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EffectTiming)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EffectTiming")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EffectTiming` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Element.rs b/crates/web-sys/src/features/gen_Element.rs index 011b65d28b7..f767bff7928 100644 --- a/crates/web-sys/src/features/gen_Element.rs +++ b/crates/web-sys/src/features/gen_Element.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Element , typescript_type = "Element")] + #[wasm_bindgen( + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Element", + typescript_type = "Element" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Element` class."] #[doc = ""] @@ -11,56 +17,80 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub type Element; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = namespaceURI)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + 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/Element/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn namespace_uri(this: &Element) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = prefix)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = localName)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = tagName)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = id)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = id)] + #[wasm_bindgen(structural, method, setter, js_class = "Element", js_name = "id")] #[doc = "Setter 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 set_id(this: &Element, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = className)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "className" + )] #[doc = "Getter for the `className` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = className)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Element", + js_name = "className" + )] #[doc = "Setter for the `className` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)"] @@ -68,7 +98,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_class_name(this: &Element, value: &str); #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = classList)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "classList" + )] #[doc = "Getter for the `classList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList)"] @@ -76,105 +112,195 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `Element`*"] pub fn class_list(this: &Element) -> DomTokenList; #[cfg(feature = "NamedNodeMap")] - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = attributes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "attributes" + )] #[doc = "Getter for the `attributes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `NamedNodeMap`*"] pub fn attributes(this: &Element) -> NamedNodeMap; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollTop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "scrollTop" + )] #[doc = "Getter for the `scrollTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_top(this: &Element) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = scrollTop)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Element", + js_name = "scrollTop" + )] #[doc = "Setter for the `scrollTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_scroll_top(this: &Element, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollLeft)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "scrollLeft" + )] #[doc = "Getter for the `scrollLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_left(this: &Element) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = scrollLeft)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Element", + js_name = "scrollLeft" + )] #[doc = "Setter for the `scrollLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_scroll_left(this: &Element, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "scrollWidth" + )] #[doc = "Getter for the `scrollWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_width(this: &Element) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "scrollHeight" + )] #[doc = "Getter for the `scrollHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_height(this: &Element) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientTop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "clientTop" + )] #[doc = "Getter for the `clientTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_top(this: &Element) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientLeft)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "clientLeft" + )] #[doc = "Getter for the `clientLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_left(this: &Element) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "clientWidth" + )] #[doc = "Getter for the `clientWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_width(this: &Element) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "clientHeight" + )] #[doc = "Getter for the `clientHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_height(this: &Element) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = innerHTML)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "innerHTML" + )] #[doc = "Getter for the `innerHTML` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = innerHTML)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Element", + js_name = "innerHTML" + )] #[doc = "Setter for the `innerHTML` field of this object."] #[doc = ""] #[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 set_inner_html(this: &Element, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = outerHTML)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "outerHTML" + )] #[doc = "Getter for the `outerHTML` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = outerHTML)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Element", + js_name = "outerHTML" + )] #[doc = "Setter for the `outerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML)"] @@ -182,7 +308,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_outer_html(this: &Element, value: &str); #[cfg(feature = "ShadowRoot")] - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = shadowRoot)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "shadowRoot" + )] #[doc = "Getter for the `shadowRoot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot)"] @@ -190,35 +322,53 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn shadow_root(this: &Element) -> Option; #[cfg(feature = "HtmlSlotElement")] - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = assignedSlot)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "assignedSlot" + )] #[doc = "Getter for the `assignedSlot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/assignedSlot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlSlotElement`*"] pub fn assigned_slot(this: &Element) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = slot)] + #[wasm_bindgen(structural, method, getter, js_class = "Element", js_name = "slot")] #[doc = "Getter for the `slot` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = slot)] + #[wasm_bindgen(structural, method, setter, js_class = "Element", js_name = "slot")] #[doc = "Setter for the `slot` field of this object."] #[doc = ""] #[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 set_slot(this: &Element, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = previousElementSibling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "previousElementSibling" + )] #[doc = "Getter for the `previousElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/previousElementSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn previous_element_sibling(this: &Element) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = nextElementSibling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "nextElementSibling" + )] #[doc = "Getter for the `nextElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/nextElementSibling)"] @@ -226,28 +376,46 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn next_element_sibling(this: &Element) -> Option; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = children)] + #[wasm_bindgen(structural, method, getter, js_class = "Element", js_name = "children")] #[doc = "Getter for the `children` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/children)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn children(this: &Element) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = firstElementChild)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "firstElementChild" + )] #[doc = "Getter for the `firstElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/firstElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn first_element_child(this: &Element) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = lastElementChild)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "lastElementChild" + )] #[doc = "Getter for the `lastElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/lastElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn last_element_child(this: &Element) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = childElementCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Element", + js_name = "childElementCount" + )] #[doc = "Getter for the `childElementCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/childElementCount)"] @@ -255,7 +423,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn child_element_count(this: &Element) -> u32; #[cfg(all(feature = "ShadowRoot", feature = "ShadowRootInit",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = attachShadow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "attachShadow" + )] #[doc = "The `attachShadow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow)"] @@ -265,21 +439,21 @@ extern "C" { this: &Element, shadow_root_init_dict: &ShadowRootInit, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = closest)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "closest")] #[doc = "The `closest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn closest(this: &Element, selector: &str) -> Result, JsValue>; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttribute)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "getAttribute")] #[doc = "The `getAttribute()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNS)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "getAttributeNS")] #[doc = "The `getAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNS)"] @@ -290,7 +464,12 @@ extern "C" { namespace: Option<&str>, local_name: &str, ) -> Option; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNames)] + #[wasm_bindgen( + method, + structural, + js_class = "Element", + js_name = "getAttributeNames" + )] #[doc = "The `getAttributeNames()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNames)"] @@ -298,7 +477,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn get_attribute_names(this: &Element) -> ::js_sys::Array; #[cfg(feature = "Attr")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNode)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "getAttributeNode")] #[doc = "The `getAttributeNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNode)"] @@ -306,7 +485,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn get_attribute_node(this: &Element, name: &str) -> Option; #[cfg(feature = "Attr")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNodeNS)] + #[wasm_bindgen( + method, + structural, + js_class = "Element", + js_name = "getAttributeNodeNS" + )] #[doc = "The `getAttributeNodeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNodeNS)"] @@ -318,7 +502,12 @@ extern "C" { local_name: &str, ) -> Option; #[cfg(feature = "DomRect")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getBoundingClientRect)] + #[wasm_bindgen( + method, + structural, + js_class = "Element", + js_name = "getBoundingClientRect" + )] #[doc = "The `getBoundingClientRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect)"] @@ -326,7 +515,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRect`, `Element`*"] pub fn get_bounding_client_rect(this: &Element) -> DomRect; #[cfg(feature = "DomRectList")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getClientRects)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "getClientRects")] #[doc = "The `getClientRects()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getClientRects)"] @@ -334,7 +523,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRectList`, `Element`*"] pub fn get_client_rects(this: &Element) -> DomRectList; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getElementsByClassName)] + #[wasm_bindgen( + method, + structural, + js_class = "Element", + js_name = "getElementsByClassName" + )] #[doc = "The `getElementsByClassName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByClassName)"] @@ -342,7 +536,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn get_elements_by_class_name(this: &Element, class_names: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getElementsByTagName)] + #[wasm_bindgen( + method, + structural, + js_class = "Element", + js_name = "getElementsByTagName" + )] #[doc = "The `getElementsByTagName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName)"] @@ -350,7 +549,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn get_elements_by_tag_name(this: &Element, local_name: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = getElementsByTagNameNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "getElementsByTagNameNS" + )] #[doc = "The `getElementsByTagNameNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagNameNS)"] @@ -361,35 +566,46 @@ extern "C" { namespace: Option<&str>, local_name: &str, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasAttribute)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "hasAttribute")] #[doc = "The `hasAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_attribute(this: &Element, name: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasAttributeNS)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "hasAttributeNS")] #[doc = "The `hasAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_attribute_ns(this: &Element, namespace: Option<&str>, local_name: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasAttributes)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "hasAttributes")] #[doc = "The `hasAttributes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_attributes(this: &Element) -> bool; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasPointerCapture)] + #[wasm_bindgen( + method, + structural, + js_class = "Element", + js_name = "hasPointerCapture" + )] #[doc = "The `hasPointerCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasPointerCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_pointer_capture(this: &Element, pointer_id: i32) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = insertAdjacentElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "insertAdjacentElement" + )] #[doc = "The `insertAdjacentElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement)"] @@ -400,28 +616,46 @@ extern "C" { where_: &str, element: &Element, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = insertAdjacentHTML)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "insertAdjacentHTML" + )] #[doc = "The `insertAdjacentHTML()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn insert_adjacent_html(this: &Element, position: &str, text: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = insertAdjacentText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "insertAdjacentText" + )] #[doc = "The `insertAdjacentText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn insert_adjacent_text(this: &Element, where_: &str, data: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = matches)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "matches")] #[doc = "The `matches()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn matches(this: &Element, selector: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = querySelector)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "querySelector" + )] #[doc = "The `querySelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelector)"] @@ -429,35 +663,59 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn query_selector(this: &Element, selectors: &str) -> Result, JsValue>; #[cfg(feature = "NodeList")] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = querySelectorAll)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "querySelectorAll" + )] #[doc = "The `querySelectorAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `NodeList`*"] pub fn query_selector_all(this: &Element, selectors: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = releaseCapture)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "releaseCapture")] #[doc = "The `releaseCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/releaseCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn release_capture(this: &Element); - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = releasePointerCapture)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "releasePointerCapture" + )] #[doc = "The `releasePointerCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/releasePointerCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn release_pointer_capture(this: &Element, pointer_id: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = removeAttribute)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "removeAttribute" + )] #[doc = "The `removeAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn remove_attribute(this: &Element, name: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = removeAttributeNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "removeAttributeNS" + )] #[doc = "The `removeAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttributeNS)"] @@ -469,35 +727,52 @@ extern "C" { local_name: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = removeAttributeNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "removeAttributeNode" + )] #[doc = "The `removeAttributeNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttributeNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn remove_attribute_node(this: &Element, old_attr: &Attr) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = requestFullscreen)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "requestFullscreen" + )] #[doc = "The `requestFullscreen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn request_fullscreen(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = requestPointerLock)] + #[wasm_bindgen( + method, + structural, + js_class = "Element", + js_name = "requestPointerLock" + )] #[doc = "The `requestPointerLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestPointerLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn request_pointer_lock(this: &Element); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scroll)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scroll")] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_with_x_and_y(this: &Element, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scroll)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scroll")] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] @@ -505,21 +780,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll(this: &Element); #[cfg(feature = "ScrollToOptions")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scroll)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scroll")] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] pub fn scroll_with_scroll_to_options(this: &Element, options: &ScrollToOptions); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollBy)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollBy")] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_by_with_x_and_y(this: &Element, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollBy)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollBy")] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] @@ -527,21 +802,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_by(this: &Element); #[cfg(feature = "ScrollToOptions")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollBy)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollBy")] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] pub fn scroll_by_with_scroll_to_options(this: &Element, options: &ScrollToOptions); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollIntoView)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollIntoView")] #[doc = "The `scrollIntoView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_into_view(this: &Element); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollIntoView)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollIntoView")] #[doc = "The `scrollIntoView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] @@ -549,7 +824,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_into_view_with_bool(this: &Element, arg: bool); #[cfg(feature = "ScrollIntoViewOptions")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollIntoView)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollIntoView")] #[doc = "The `scrollIntoView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] @@ -559,14 +834,14 @@ extern "C" { this: &Element, arg: &ScrollIntoViewOptions, ); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollTo)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollTo")] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_to_with_x_and_y(this: &Element, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollTo)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollTo")] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] @@ -574,21 +849,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_to(this: &Element); #[cfg(feature = "ScrollToOptions")] - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollTo)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "scrollTo")] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] pub fn scroll_to_with_scroll_to_options(this: &Element, options: &ScrollToOptions); - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttribute)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "setAttribute" + )] #[doc = "The `setAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_attribute(this: &Element, name: &str, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttributeNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "setAttributeNS" + )] #[doc = "The `setAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNS)"] @@ -601,7 +888,13 @@ extern "C" { value: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttributeNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "setAttributeNode" + )] #[doc = "The `setAttributeNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNode)"] @@ -609,42 +902,66 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn set_attribute_node(this: &Element, new_attr: &Attr) -> Result, JsValue>; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttributeNodeNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "setAttributeNodeNS" + )] #[doc = "The `setAttributeNodeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNodeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn set_attribute_node_ns(this: &Element, new_attr: &Attr) -> Result, JsValue>; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = setCapture)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "setCapture")] #[doc = "The `setCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_capture(this: &Element); - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = setCapture)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "setCapture")] #[doc = "The `setCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_capture_with_retarget_to_element(this: &Element, retarget_to_element: bool); - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setPointerCapture)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "setPointerCapture" + )] #[doc = "The `setPointerCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setPointerCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_pointer_capture(this: &Element, pointer_id: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = toggleAttribute)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "toggleAttribute" + )] #[doc = "The `toggleAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn toggle_attribute(this: &Element, name: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = toggleAttribute)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "toggleAttribute" + )] #[doc = "The `toggleAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute)"] @@ -655,35 +972,48 @@ extern "C" { name: &str, force: bool, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = webkitMatchesSelector)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "webkitMatchesSelector" + )] #[doc = "The `webkitMatchesSelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/webkitMatchesSelector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn webkit_matches_selector(this: &Element, selector: &str) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -691,7 +1021,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_2(this: &Element, nodes_1: &Node, nodes_2: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -703,7 +1033,7 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -716,7 +1046,7 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -730,7 +1060,7 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -745,7 +1075,7 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -761,35 +1091,42 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = after)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "after" + )] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -801,7 +1138,7 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -814,7 +1151,7 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -828,7 +1165,7 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -843,7 +1180,7 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "after")] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] @@ -859,28 +1196,35 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -891,7 +1235,7 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -903,7 +1247,7 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -916,7 +1260,7 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -930,7 +1274,7 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -945,7 +1289,7 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -961,35 +1305,42 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = before)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "before" + )] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -1001,7 +1352,7 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -1014,7 +1365,7 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -1028,7 +1379,7 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -1043,7 +1394,7 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "before")] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] @@ -1059,35 +1410,60 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Element" , js_name = remove)] + #[wasm_bindgen(method, structural, js_class = "Element", js_name = "remove")] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn remove(this: &Element); - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1098,7 +1474,13 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1110,7 +1492,13 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1123,7 +1511,13 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1137,7 +1531,13 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1152,7 +1552,13 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1168,28 +1574,53 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1200,7 +1631,13 @@ extern "C" { nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1212,7 +1649,13 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1225,7 +1668,13 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1239,7 +1688,13 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1254,7 +1709,13 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "replaceWith" + )] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] @@ -1271,7 +1732,13 @@ extern "C" { nodes_7: &str, ) -> Result<(), JsValue>; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Text",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] @@ -1283,7 +1750,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] @@ -1295,7 +1768,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomPoint", feature = "DomPointInit",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] @@ -1312,7 +1791,13 @@ extern "C" { feature = "DomPointInit", feature = "Text", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] @@ -1329,7 +1814,13 @@ extern "C" { feature = "DomPoint", feature = "DomPointInit", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] @@ -1347,7 +1838,13 @@ extern "C" { feature = "DomPoint", feature = "DomPointInit", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] @@ -1360,7 +1857,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Text",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] @@ -1372,7 +1875,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(feature = "DomQuad")] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] @@ -1384,7 +1893,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] @@ -1400,7 +1915,13 @@ extern "C" { feature = "DomQuad", feature = "Text", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] @@ -1413,7 +1934,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] @@ -1430,7 +1957,13 @@ extern "C" { feature = "Document", feature = "DomQuad", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] @@ -1443,7 +1976,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] @@ -1455,7 +1994,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] @@ -1467,7 +2012,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly",))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] @@ -1484,7 +2035,13 @@ extern "C" { feature = "DomRectReadOnly", feature = "Text", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] @@ -1501,7 +2058,13 @@ extern "C" { feature = "DomQuad", feature = "DomRectReadOnly", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] @@ -1519,7 +2082,13 @@ extern "C" { feature = "DomQuad", feature = "DomRectReadOnly", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] @@ -1531,7 +2100,13 @@ extern "C" { from: &Document, options: &ConvertCoordinateOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = getBoxQuads)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "getBoxQuads" + )] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoxQuads)"] @@ -1539,7 +2114,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn get_box_quads(this: &Element) -> Result<::js_sys::Array, JsValue>; #[cfg(feature = "BoxQuadOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = getBoxQuads)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Element", + js_name = "getBoxQuads" + )] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoxQuads)"] @@ -1549,28 +2130,35 @@ extern "C" { this: &Element, options: &BoxQuadOptions, ) -> Result<::js_sys::Array, JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1581,7 +2169,7 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1593,7 +2181,7 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1606,7 +2194,7 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1620,7 +2208,7 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1635,7 +2223,7 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1651,35 +2239,42 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1691,7 +2286,7 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1704,7 +2299,7 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1718,7 +2313,7 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1733,7 +2328,7 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] @@ -1749,28 +2344,35 @@ extern "C" { nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1781,7 +2383,7 @@ extern "C" { nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1793,7 +2395,7 @@ extern "C" { nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1806,7 +2408,7 @@ extern "C" { nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1820,7 +2422,7 @@ extern "C" { nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1835,7 +2437,7 @@ extern "C" { nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1851,35 +2453,42 @@ extern "C" { nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Element", + js_name = "prepend" + )] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_0(this: &Element) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1891,7 +2500,7 @@ extern "C" { nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1904,7 +2513,7 @@ extern "C" { nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1918,7 +2527,7 @@ extern "C" { nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] @@ -1933,7 +2542,7 @@ extern "C" { nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] + #[wasm_bindgen(catch, method, structural, js_class = "Element", js_name = "prepend")] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] diff --git a/crates/web-sys/src/features/gen_ElementCreationOptions.rs b/crates/web-sys/src/features/gen_ElementCreationOptions.rs index d12dd041e90..485de961f4b 100644 --- a/crates/web-sys/src/features/gen_ElementCreationOptions.rs +++ b/crates/web-sys/src/features/gen_ElementCreationOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ElementCreationOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ElementCreationOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ElementCreationOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs b/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs index 4b9492b3b88..12a6c9d9f9a 100644 --- a/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs +++ b/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ElementDefinitionOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ElementDefinitionOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ElementDefinitionOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EncodedAudioChunk.rs b/crates/web-sys/src/features/gen_EncodedAudioChunk.rs index 93a9cd7ca06..280c84633d8 100644 --- a/crates/web-sys/src/features/gen_EncodedAudioChunk.rs +++ b/crates/web-sys/src/features/gen_EncodedAudioChunk.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedAudioChunk , typescript_type = "EncodedAudioChunk")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "EncodedAudioChunk", + typescript_type = "EncodedAudioChunk" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedAudioChunk` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type EncodedAudioChunk; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunkType")] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedAudioChunk", + 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/EncodedAudioChunk/type)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &EncodedAudioChunk) -> EncodedAudioChunkType; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , js_name = timestamp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedAudioChunk", + js_name = "timestamp" + )] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/timestamp)"] @@ -39,7 +55,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn timestamp(this: &EncodedAudioChunk) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedAudioChunk", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/duration)"] @@ -50,7 +72,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &EncodedAudioChunk) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , js_name = byteLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedAudioChunk", + js_name = "byteLength" + )] #[doc = "Getter for the `byteLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/byteLength)"] @@ -73,7 +101,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &EncodedAudioChunkInit) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "EncodedAudioChunk" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "EncodedAudioChunk", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/copyTo)"] @@ -84,7 +112,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_buffer_source(this: &EncodedAudioChunk, destination: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "EncodedAudioChunk" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "EncodedAudioChunk", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/copyTo)"] diff --git a/crates/web-sys/src/features/gen_EncodedAudioChunkInit.rs b/crates/web-sys/src/features/gen_EncodedAudioChunkInit.rs index c95daf55fc6..ac7b859c93e 100644 --- a/crates/web-sys/src/features/gen_EncodedAudioChunkInit.rs +++ b/crates/web-sys/src/features/gen_EncodedAudioChunkInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedAudioChunkInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EncodedAudioChunkInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedAudioChunkInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EncodedAudioChunkMetadata.rs b/crates/web-sys/src/features/gen_EncodedAudioChunkMetadata.rs index 6a43b98aa13..12143ee89eb 100644 --- a/crates/web-sys/src/features/gen_EncodedAudioChunkMetadata.rs +++ b/crates/web-sys/src/features/gen_EncodedAudioChunkMetadata.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedAudioChunkMetadata)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EncodedAudioChunkMetadata")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedAudioChunkMetadata` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EncodedVideoChunk.rs b/crates/web-sys/src/features/gen_EncodedVideoChunk.rs index a6590c850b0..d0b9cffe639 100644 --- a/crates/web-sys/src/features/gen_EncodedVideoChunk.rs +++ b/crates/web-sys/src/features/gen_EncodedVideoChunk.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedVideoChunk , typescript_type = "EncodedVideoChunk")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "EncodedVideoChunk", + typescript_type = "EncodedVideoChunk" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedVideoChunk` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type EncodedVideoChunk; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunkType")] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedVideoChunk", + 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/EncodedVideoChunk/type)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &EncodedVideoChunk) -> EncodedVideoChunkType; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , js_name = timestamp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedVideoChunk", + js_name = "timestamp" + )] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/timestamp)"] @@ -39,7 +55,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn timestamp(this: &EncodedVideoChunk) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedVideoChunk", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/duration)"] @@ -50,7 +72,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &EncodedVideoChunk) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , js_name = byteLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EncodedVideoChunk", + js_name = "byteLength" + )] #[doc = "Getter for the `byteLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/byteLength)"] @@ -73,7 +101,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &EncodedVideoChunkInit) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "EncodedVideoChunk" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "EncodedVideoChunk", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/copyTo)"] @@ -84,7 +112,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_buffer_source(this: &EncodedVideoChunk, destination: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "EncodedVideoChunk" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "EncodedVideoChunk", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/copyTo)"] diff --git a/crates/web-sys/src/features/gen_EncodedVideoChunkInit.rs b/crates/web-sys/src/features/gen_EncodedVideoChunkInit.rs index 6491aefd727..75ff35397c3 100644 --- a/crates/web-sys/src/features/gen_EncodedVideoChunkInit.rs +++ b/crates/web-sys/src/features/gen_EncodedVideoChunkInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedVideoChunkInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EncodedVideoChunkInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedVideoChunkInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EncodedVideoChunkMetadata.rs b/crates/web-sys/src/features/gen_EncodedVideoChunkMetadata.rs index 9d0e1415268..b6baa844c10 100644 --- a/crates/web-sys/src/features/gen_EncodedVideoChunkMetadata.rs +++ b/crates/web-sys/src/features/gen_EncodedVideoChunkMetadata.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedVideoChunkMetadata)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EncodedVideoChunkMetadata")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedVideoChunkMetadata` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ErrorCallback.rs b/crates/web-sys/src/features/gen_ErrorCallback.rs index 067bd08050b..355bfae0678 100644 --- a/crates/web-sys/src/features/gen_ErrorCallback.rs +++ b/crates/web-sys/src/features/gen_ErrorCallback.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ErrorCallback)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ErrorCallback")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ErrorCallback` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ErrorEvent.rs b/crates/web-sys/src/features/gen_ErrorEvent.rs index b3bd7fb1efe..0e8b319cebe 100644 --- a/crates/web-sys/src/features/gen_ErrorEvent.rs +++ b/crates/web-sys/src/features/gen_ErrorEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ErrorEvent , typescript_type = "ErrorEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "ErrorEvent", + typescript_type = "ErrorEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ErrorEvent` class."] #[doc = ""] @@ -11,35 +16,53 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub type ErrorEvent; - # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ErrorEvent", + 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/ErrorEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn message(this: &ErrorEvent) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = filename)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = lineno)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ErrorEvent", + js_name = "lineno" + )] #[doc = "Getter for the `lineno` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/lineno)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn lineno(this: &ErrorEvent) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = colno)] + #[wasm_bindgen(structural, method, getter, js_class = "ErrorEvent", js_name = "colno")] #[doc = "Getter for the `colno` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/colno)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn colno(this: &ErrorEvent) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = error)] + #[wasm_bindgen(structural, method, getter, js_class = "ErrorEvent", js_name = "error")] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/error)"] diff --git a/crates/web-sys/src/features/gen_ErrorEventInit.rs b/crates/web-sys/src/features/gen_ErrorEventInit.rs index cc2d881ae07..1e37f28712b 100644 --- a/crates/web-sys/src/features/gen_ErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_ErrorEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ErrorEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ErrorEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ErrorEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Event.rs b/crates/web-sys/src/features/gen_Event.rs index bb3c3cffcb7..e5b53de1322 100644 --- a/crates/web-sys/src/features/gen_Event.rs +++ b/crates/web-sys/src/features/gen_Event.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Event , typescript_type = "Event")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Event", + typescript_type = "Event" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Event` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub type Event; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", 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/Event/type)"] @@ -19,7 +23,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn type_(this: &Event) -> String; #[cfg(feature = "EventTarget")] - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = target)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", js_name = "target")] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/target)"] @@ -27,70 +31,94 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] pub fn target(this: &Event) -> Option; #[cfg(feature = "EventTarget")] - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = currentTarget)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Event", + js_name = "currentTarget" + )] #[doc = "Getter for the `currentTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] pub fn current_target(this: &Event) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = eventPhase)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", js_name = "eventPhase")] #[doc = "Getter for the `eventPhase` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn event_phase(this: &Event) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = bubbles)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", js_name = "bubbles")] #[doc = "Getter for the `bubbles` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn bubbles(this: &Event) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = cancelable)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", js_name = "cancelable")] #[doc = "Getter for the `cancelable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn cancelable(this: &Event) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = defaultPrevented)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Event", + js_name = "defaultPrevented" + )] #[doc = "Getter for the `defaultPrevented` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn default_prevented(this: &Event) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = composed)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", js_name = "composed")] #[doc = "Getter for the `composed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/composed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn composed(this: &Event) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = isTrusted)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", js_name = "isTrusted")] #[doc = "Getter for the `isTrusted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn is_trusted(this: &Event) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = timeStamp)] + #[wasm_bindgen(structural, method, getter, js_class = "Event", js_name = "timeStamp")] #[doc = "Getter for the `timeStamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn time_stamp(this: &Event) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = cancelBubble)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Event", + js_name = "cancelBubble" + )] #[doc = "Getter for the `cancelBubble` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn cancel_bubble(this: &Event) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "Event" , js_name = cancelBubble)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Event", + js_name = "cancelBubble" + )] #[doc = "Setter for the `cancelBubble` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble)"] @@ -115,28 +143,28 @@ extern "C" { type_: &str, event_init_dict: &EventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "Event" , js_name = composedPath)] + #[wasm_bindgen(method, structural, js_class = "Event", js_name = "composedPath")] #[doc = "The `composedPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn composed_path(this: &Event) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "Event" , js_name = initEvent)] + #[wasm_bindgen(method, structural, js_class = "Event", js_name = "initEvent")] #[doc = "The `initEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn init_event(this: &Event, type_: &str); - # [wasm_bindgen (method , structural , js_class = "Event" , js_name = initEvent)] + #[wasm_bindgen(method, structural, js_class = "Event", js_name = "initEvent")] #[doc = "The `initEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn init_event_with_bubbles(this: &Event, type_: &str, bubbles: bool); - # [wasm_bindgen (method , structural , js_class = "Event" , js_name = initEvent)] + #[wasm_bindgen(method, structural, js_class = "Event", js_name = "initEvent")] #[doc = "The `initEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] @@ -148,21 +176,26 @@ extern "C" { bubbles: bool, cancelable: bool, ); - # [wasm_bindgen (method , structural , js_class = "Event" , js_name = preventDefault)] + #[wasm_bindgen(method, structural, js_class = "Event", js_name = "preventDefault")] #[doc = "The `preventDefault()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn prevent_default(this: &Event); - # [wasm_bindgen (method , structural , js_class = "Event" , js_name = stopImmediatePropagation)] + #[wasm_bindgen( + method, + structural, + js_class = "Event", + js_name = "stopImmediatePropagation" + )] #[doc = "The `stopImmediatePropagation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn stop_immediate_propagation(this: &Event); - # [wasm_bindgen (method , structural , js_class = "Event" , js_name = stopPropagation)] + #[wasm_bindgen(method, structural, js_class = "Event", js_name = "stopPropagation")] #[doc = "The `stopPropagation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation)"] diff --git a/crates/web-sys/src/features/gen_EventInit.rs b/crates/web-sys/src/features/gen_EventInit.rs index 6b44b167bcb..4c1e0718b77 100644 --- a/crates/web-sys/src/features/gen_EventInit.rs +++ b/crates/web-sys/src/features/gen_EventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EventListener.rs b/crates/web-sys/src/features/gen_EventListener.rs index af46e7ad6c4..d5aa16cdbe8 100644 --- a/crates/web-sys/src/features/gen_EventListener.rs +++ b/crates/web-sys/src/features/gen_EventListener.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventListener)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EventListener")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventListener` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EventListenerOptions.rs b/crates/web-sys/src/features/gen_EventListenerOptions.rs index 9162ee8d2e2..5485fc5d0ca 100644 --- a/crates/web-sys/src/features/gen_EventListenerOptions.rs +++ b/crates/web-sys/src/features/gen_EventListenerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventListenerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EventListenerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventListenerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EventModifierInit.rs b/crates/web-sys/src/features/gen_EventModifierInit.rs index 02c06addcbe..f4d5ad95ff2 100644 --- a/crates/web-sys/src/features/gen_EventModifierInit.rs +++ b/crates/web-sys/src/features/gen_EventModifierInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventModifierInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EventModifierInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventModifierInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EventSource.rs b/crates/web-sys/src/features/gen_EventSource.rs index 816817f378a..43e1752f40f 100644 --- a/crates/web-sys/src/features/gen_EventSource.rs +++ b/crates/web-sys/src/features/gen_EventSource.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = EventSource , typescript_type = "EventSource")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "EventSource", + typescript_type = "EventSource" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventSource` class."] #[doc = ""] @@ -11,63 +16,111 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub type EventSource; - # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = url)] + #[wasm_bindgen(structural, method, getter, js_class = "EventSource", 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/EventSource/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn url(this: &EventSource) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = withCredentials)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EventSource", + js_name = "withCredentials" + )] #[doc = "Getter for the `withCredentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/withCredentials)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn with_credentials(this: &EventSource) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EventSource", + 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/EventSource/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn ready_state(this: &EventSource) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = onopen)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EventSource", + js_name = "onopen" + )] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn onopen(this: &EventSource) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "EventSource" , js_name = onopen)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "EventSource", + js_name = "onopen" + )] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn set_onopen(this: &EventSource, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EventSource", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn onmessage(this: &EventSource) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "EventSource" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "EventSource", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn set_onmessage(this: &EventSource, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "EventSource", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn onerror(this: &EventSource) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "EventSource" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "EventSource", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror)"] @@ -92,7 +145,7 @@ extern "C" { url: &str, event_source_init_dict: &EventSourceInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "EventSource" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "EventSource", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/close)"] diff --git a/crates/web-sys/src/features/gen_EventSourceInit.rs b/crates/web-sys/src/features/gen_EventSourceInit.rs index f8e5f4af48d..e2d30fabbd5 100644 --- a/crates/web-sys/src/features/gen_EventSourceInit.rs +++ b/crates/web-sys/src/features/gen_EventSourceInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventSourceInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "EventSourceInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventSourceInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_EventTarget.rs b/crates/web-sys/src/features/gen_EventTarget.rs index 431b5a63190..af2509a480b 100644 --- a/crates/web-sys/src/features/gen_EventTarget.rs +++ b/crates/web-sys/src/features/gen_EventTarget.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventTarget , typescript_type = "EventTarget")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "EventTarget", + typescript_type = "EventTarget" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventTarget` class."] #[doc = ""] @@ -18,7 +22,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub fn new() -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -30,7 +40,13 @@ extern "C" { listener: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -42,7 +58,13 @@ extern "C" { listener: &EventListener, ) -> Result<(), JsValue>; #[cfg(feature = "AddEventListenerOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -55,7 +77,13 @@ extern "C" { options: &AddEventListenerOptions, ) -> Result<(), JsValue>; #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -67,7 +95,13 @@ extern "C" { listener: &EventListener, options: &AddEventListenerOptions, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -80,7 +114,13 @@ extern "C" { options: bool, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -93,7 +133,13 @@ extern "C" { options: bool, ) -> Result<(), JsValue>; #[cfg(feature = "AddEventListenerOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -107,7 +153,13 @@ extern "C" { wants_untrusted: Option, ) -> Result<(), JsValue>; #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -120,7 +172,13 @@ extern "C" { options: &AddEventListenerOptions, wants_untrusted: Option, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -134,7 +192,13 @@ extern "C" { wants_untrusted: Option, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "addEventListener" + )] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] @@ -148,14 +212,26 @@ extern "C" { wants_untrusted: Option, ) -> Result<(), JsValue>; #[cfg(feature = "Event")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = dispatchEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "dispatchEvent" + )] #[doc = "The `dispatchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] pub fn dispatch_event(this: &EventTarget, event: &Event) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "removeEventListener" + )] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] @@ -167,7 +243,13 @@ extern "C" { listener: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "removeEventListener" + )] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] @@ -179,7 +261,13 @@ extern "C" { listener: &EventListener, ) -> Result<(), JsValue>; #[cfg(feature = "EventListenerOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "removeEventListener" + )] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] @@ -192,7 +280,13 @@ extern "C" { options: &EventListenerOptions, ) -> Result<(), JsValue>; #[cfg(all(feature = "EventListener", feature = "EventListenerOptions",))] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "removeEventListener" + )] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] @@ -204,7 +298,13 @@ extern "C" { listener: &EventListener, options: &EventListenerOptions, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "removeEventListener" + )] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] @@ -217,7 +317,13 @@ extern "C" { options: bool, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] - # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "EventTarget", + js_name = "removeEventListener" + )] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] diff --git a/crates/web-sys/src/features/gen_Exception.rs b/crates/web-sys/src/features/gen_Exception.rs index d38c6f66ee1..3737f402936 100644 --- a/crates/web-sys/src/features/gen_Exception.rs +++ b/crates/web-sys/src/features/gen_Exception.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Exception , typescript_type = "Exception")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "Exception" , typescript_type = "Exception")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Exception` class."] #[doc = ""] @@ -11,56 +11,80 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub type Exception; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "Exception", 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/Exception/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn name(this: &Exception) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = message)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = result)] + #[wasm_bindgen(structural, method, getter, js_class = "Exception", js_name = "result")] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn result(this: &Exception) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = filename)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Exception", + 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/Exception/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn filename(this: &Exception) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = lineNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Exception", + js_name = "lineNumber" + )] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/lineNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn line_number(this: &Exception) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = columnNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Exception", + js_name = "columnNumber" + )] #[doc = "Getter for the `columnNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/columnNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn column_number(this: &Exception) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = data)] + #[wasm_bindgen(structural, method, getter, js_class = "Exception", 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/Exception/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn data(this: &Exception) -> Option<::js_sys::Object>; - # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = stack)] + #[wasm_bindgen(structural, method, getter, js_class = "Exception", js_name = "stack")] #[doc = "Getter for the `stack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/stack)"] diff --git a/crates/web-sys/src/features/gen_ExtBlendMinmax.rs b/crates/web-sys/src/features/gen_ExtBlendMinmax.rs index 9e274a31074..85879da0567 100644 --- a/crates/web-sys/src/features/gen_ExtBlendMinmax.rs +++ b/crates/web-sys/src/features/gen_ExtBlendMinmax.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_blend_minmax , typescript_type = "EXT_blend_minmax")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_blend_minmax" , typescript_type = "EXT_blend_minmax")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtBlendMinmax` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtColorBufferFloat.rs b/crates/web-sys/src/features/gen_ExtColorBufferFloat.rs index 884e06c1627..8b5bd3f1671 100644 --- a/crates/web-sys/src/features/gen_ExtColorBufferFloat.rs +++ b/crates/web-sys/src/features/gen_ExtColorBufferFloat.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_color_buffer_float , typescript_type = "EXT_color_buffer_float")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_color_buffer_float" , typescript_type = "EXT_color_buffer_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtColorBufferFloat` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtColorBufferHalfFloat.rs b/crates/web-sys/src/features/gen_ExtColorBufferHalfFloat.rs index 26ffa3c74bc..883134c4a0c 100644 --- a/crates/web-sys/src/features/gen_ExtColorBufferHalfFloat.rs +++ b/crates/web-sys/src/features/gen_ExtColorBufferHalfFloat.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_color_buffer_half_float , typescript_type = "EXT_color_buffer_half_float")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_color_buffer_half_float" , typescript_type = "EXT_color_buffer_half_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtColorBufferHalfFloat` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtDisjointTimerQuery.rs b/crates/web-sys/src/features/gen_ExtDisjointTimerQuery.rs index 1df18d754d2..e886ea44ec1 100644 --- a/crates/web-sys/src/features/gen_ExtDisjointTimerQuery.rs +++ b/crates/web-sys/src/features/gen_ExtDisjointTimerQuery.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_disjoint_timer_query , typescript_type = "EXT_disjoint_timer_query")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_disjoint_timer_query" , typescript_type = "EXT_disjoint_timer_query")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtDisjointTimerQuery` class."] #[doc = ""] @@ -12,7 +12,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub type ExtDisjointTimerQuery; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = beginQueryEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "beginQueryEXT" + )] #[doc = "The `beginQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/beginQueryEXT)"] @@ -20,7 +25,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn begin_query_ext(this: &ExtDisjointTimerQuery, target: u32, query: &WebGlQuery); #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = createQueryEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "createQueryEXT" + )] #[doc = "The `createQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/createQueryEXT)"] @@ -28,21 +38,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn create_query_ext(this: &ExtDisjointTimerQuery) -> Option; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = deleteQueryEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "deleteQueryEXT" + )] #[doc = "The `deleteQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/deleteQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn delete_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>); - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = endQueryEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "endQueryEXT" + )] #[doc = "The `endQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/endQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub fn end_query_ext(this: &ExtDisjointTimerQuery, target: u32); - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = getQueryEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "getQueryEXT" + )] #[doc = "The `getQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryEXT)"] @@ -54,7 +79,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = getQueryObjectEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "getQueryObjectEXT" + )] #[doc = "The `getQueryObjectEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryObjectEXT)"] @@ -66,7 +96,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = isQueryEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "isQueryEXT" + )] #[doc = "The `isQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/isQueryEXT)"] @@ -74,7 +109,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn is_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>) -> bool; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = queryCounterEXT)] + #[wasm_bindgen( + method, + structural, + js_class = "EXT_disjoint_timer_query", + js_name = "queryCounterEXT" + )] #[doc = "The `queryCounterEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/queryCounterEXT)"] diff --git a/crates/web-sys/src/features/gen_ExtFragDepth.rs b/crates/web-sys/src/features/gen_ExtFragDepth.rs index fd2f30f389b..585ec75a2b2 100644 --- a/crates/web-sys/src/features/gen_ExtFragDepth.rs +++ b/crates/web-sys/src/features/gen_ExtFragDepth.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_frag_depth , typescript_type = "EXT_frag_depth")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_frag_depth" , typescript_type = "EXT_frag_depth")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtFragDepth` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtSRgb.rs b/crates/web-sys/src/features/gen_ExtSRgb.rs index c97cde65539..a642d0f106a 100644 --- a/crates/web-sys/src/features/gen_ExtSRgb.rs +++ b/crates/web-sys/src/features/gen_ExtSRgb.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_sRGB , typescript_type = "EXT_sRGB")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_sRGB" , typescript_type = "EXT_sRGB")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtSRgb` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtShaderTextureLod.rs b/crates/web-sys/src/features/gen_ExtShaderTextureLod.rs index daa45adb7d7..57f5a7cb8a3 100644 --- a/crates/web-sys/src/features/gen_ExtShaderTextureLod.rs +++ b/crates/web-sys/src/features/gen_ExtShaderTextureLod.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_shader_texture_lod , typescript_type = "EXT_shader_texture_lod")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_shader_texture_lod" , typescript_type = "EXT_shader_texture_lod")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtShaderTextureLod` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtTextureFilterAnisotropic.rs b/crates/web-sys/src/features/gen_ExtTextureFilterAnisotropic.rs index 905b2d225c3..6278a0a9355 100644 --- a/crates/web-sys/src/features/gen_ExtTextureFilterAnisotropic.rs +++ b/crates/web-sys/src/features/gen_ExtTextureFilterAnisotropic.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_texture_filter_anisotropic , typescript_type = "EXT_texture_filter_anisotropic")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_texture_filter_anisotropic" , typescript_type = "EXT_texture_filter_anisotropic")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtTextureFilterAnisotropic` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtendableEvent.rs b/crates/web-sys/src/features/gen_ExtendableEvent.rs index d3c14235aad..56125610bd2 100644 --- a/crates/web-sys/src/features/gen_ExtendableEvent.rs +++ b/crates/web-sys/src/features/gen_ExtendableEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ExtendableEvent , typescript_type = "ExtendableEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "ExtendableEvent", + typescript_type = "ExtendableEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableEvent` class."] #[doc = ""] @@ -29,7 +34,13 @@ extern "C" { type_: &str, event_init_dict: &ExtendableEventInit, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "ExtendableEvent" , js_name = waitUntil)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ExtendableEvent", + js_name = "waitUntil" + )] #[doc = "The `waitUntil()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil)"] diff --git a/crates/web-sys/src/features/gen_ExtendableEventInit.rs b/crates/web-sys/src/features/gen_ExtendableEventInit.rs index 6bdb395c355..9d108312df9 100644 --- a/crates/web-sys/src/features/gen_ExtendableEventInit.rs +++ b/crates/web-sys/src/features/gen_ExtendableEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ExtendableEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ExtendableEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs b/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs index fdbb3a2bee2..528413d5fc1 100644 --- a/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs +++ b/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = ExtendableMessageEvent , typescript_type = "ExtendableMessageEvent")] + #[wasm_bindgen( + extends = "ExtendableEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "ExtendableMessageEvent", + typescript_type = "ExtendableMessageEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableMessageEvent` class."] #[doc = ""] @@ -11,35 +17,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub type ExtendableMessageEvent; - # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ExtendableMessageEvent", + 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/ExtendableMessageEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn data(this: &ExtendableMessageEvent) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = origin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ExtendableMessageEvent", + 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/ExtendableMessageEvent/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn origin(this: &ExtendableMessageEvent) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = lastEventId)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = source)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ExtendableMessageEvent", + js_name = "source" + )] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/source)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn source(this: &ExtendableMessageEvent) -> Option<::js_sys::Object>; - # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = ports)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ExtendableMessageEvent", + js_name = "ports" + )] #[doc = "Getter for the `ports` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ports)"] diff --git a/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs b/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs index 13577af8283..2d19cd28b3f 100644 --- a/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs +++ b/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ExtendableMessageEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ExtendableMessageEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableMessageEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_External.rs b/crates/web-sys/src/features/gen_External.rs index bc58c96019c..fed812f19c7 100644 --- a/crates/web-sys/src/features/gen_External.rs +++ b/crates/web-sys/src/features/gen_External.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = External , typescript_type = "External")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "External" , typescript_type = "External")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `External` class."] #[doc = ""] @@ -11,14 +11,24 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `External`*"] pub type External; - # [wasm_bindgen (method , structural , js_class = "External" , js_name = AddSearchProvider)] + #[wasm_bindgen( + method, + structural, + js_class = "External", + js_name = "AddSearchProvider" + )] #[doc = "The `AddSearchProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External/AddSearchProvider)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `External`*"] pub fn add_search_provider(this: &External, a_description_url: &str); - # [wasm_bindgen (method , structural , js_class = "External" , js_name = IsSearchProviderInstalled)] + #[wasm_bindgen( + method, + structural, + js_class = "External", + js_name = "IsSearchProviderInstalled" + )] #[doc = "The `IsSearchProviderInstalled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External/IsSearchProviderInstalled)"] diff --git a/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs b/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs index 9a024929439..120f677df9a 100644 --- a/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs +++ b/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FakePluginMimeEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FakePluginMimeEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FakePluginMimeEntry` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FakePluginTagInit.rs b/crates/web-sys/src/features/gen_FakePluginTagInit.rs index ce81b452df3..45ac5617636 100644 --- a/crates/web-sys/src/features/gen_FakePluginTagInit.rs +++ b/crates/web-sys/src/features/gen_FakePluginTagInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FakePluginTagInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FakePluginTagInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FakePluginTagInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FetchEvent.rs b/crates/web-sys/src/features/gen_FetchEvent.rs index 70f378fe4c2..61aa1f6e84d 100644 --- a/crates/web-sys/src/features/gen_FetchEvent.rs +++ b/crates/web-sys/src/features/gen_FetchEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = FetchEvent , typescript_type = "FetchEvent")] + #[wasm_bindgen( + extends = "ExtendableEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "FetchEvent", + typescript_type = "FetchEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchEvent` class."] #[doc = ""] @@ -12,21 +18,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] pub type FetchEvent; #[cfg(feature = "Request")] - # [wasm_bindgen (structural , method , getter , js_class = "FetchEvent" , js_name = request)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FetchEvent", + js_name = "request" + )] #[doc = "Getter for the `request` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`, `Request`*"] pub fn request(this: &FetchEvent) -> Request; - # [wasm_bindgen (structural , method , getter , js_class = "FetchEvent" , js_name = clientId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FetchEvent", + js_name = "clientId" + )] #[doc = "Getter for the `clientId` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "FetchEvent" , js_name = isReload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FetchEvent", + js_name = "isReload" + )] #[doc = "Getter for the `isReload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/isReload)"] @@ -41,7 +65,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`, `FetchEventInit`*"] pub fn new(type_: &str, event_init_dict: &FetchEventInit) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "FetchEvent" , js_name = respondWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FetchEvent", + js_name = "respondWith" + )] #[doc = "The `respondWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/respondWith)"] diff --git a/crates/web-sys/src/features/gen_FetchEventInit.rs b/crates/web-sys/src/features/gen_FetchEventInit.rs index baeace312f6..214c09d0743 100644 --- a/crates/web-sys/src/features/gen_FetchEventInit.rs +++ b/crates/web-sys/src/features/gen_FetchEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FetchEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FetchEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FetchObserver.rs b/crates/web-sys/src/features/gen_FetchObserver.rs index e08d9341c14..5d468e0f0ee 100644 --- a/crates/web-sys/src/features/gen_FetchObserver.rs +++ b/crates/web-sys/src/features/gen_FetchObserver.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FetchObserver , typescript_type = "FetchObserver")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "FetchObserver", + typescript_type = "FetchObserver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchObserver` class."] #[doc = ""] @@ -12,49 +17,91 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub type FetchObserver; #[cfg(feature = "FetchState")] - # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FetchObserver", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`, `FetchState`*"] pub fn state(this: &FetchObserver) -> FetchState; - # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FetchObserver", + js_name = "onstatechange" + )] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn onstatechange(this: &FetchObserver) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FetchObserver", + js_name = "onstatechange" + )] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn set_onstatechange(this: &FetchObserver, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onrequestprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FetchObserver", + js_name = "onrequestprogress" + )] #[doc = "Getter for the `onrequestprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn onrequestprogress(this: &FetchObserver) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onrequestprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FetchObserver", + js_name = "onrequestprogress" + )] #[doc = "Setter for the `onrequestprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn set_onrequestprogress(this: &FetchObserver, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onresponseprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FetchObserver", + js_name = "onresponseprogress" + )] #[doc = "Getter for the `onresponseprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn onresponseprogress(this: &FetchObserver) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onresponseprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FetchObserver", + js_name = "onresponseprogress" + )] #[doc = "Setter for the `onresponseprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"] diff --git a/crates/web-sys/src/features/gen_FetchReadableStreamReadDataArray.rs b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataArray.rs index 8e5fa2c3ec5..502529d541d 100644 --- a/crates/web-sys/src/features/gen_FetchReadableStreamReadDataArray.rs +++ b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataArray.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FetchReadableStreamReadDataArray)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FetchReadableStreamReadDataArray" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchReadableStreamReadDataArray` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FetchReadableStreamReadDataDone.rs b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataDone.rs index c3f81924c3f..ce81aaf0867 100644 --- a/crates/web-sys/src/features/gen_FetchReadableStreamReadDataDone.rs +++ b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataDone.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FetchReadableStreamReadDataDone)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FetchReadableStreamReadDataDone" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchReadableStreamReadDataDone` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_File.rs b/crates/web-sys/src/features/gen_File.rs index d22c7495a06..4710f63f35d 100644 --- a/crates/web-sys/src/features/gen_File.rs +++ b/crates/web-sys/src/features/gen_File.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Blob , extends = :: js_sys :: Object , js_name = File , typescript_type = "File")] + #[wasm_bindgen( + extends = "Blob", + extends = "::js_sys::Object", + js_name = "File", + typescript_type = "File" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `File` class."] #[doc = ""] @@ -11,14 +16,20 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub type File; - # [wasm_bindgen (structural , method , getter , js_class = "File" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "File", 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/File/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub fn name(this: &File) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "File" , js_name = lastModified)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "File", + 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/File/lastModified)"] diff --git a/crates/web-sys/src/features/gen_FileCallback.rs b/crates/web-sys/src/features/gen_FileCallback.rs index fd46ab2290f..e707d634841 100644 --- a/crates/web-sys/src/features/gen_FileCallback.rs +++ b/crates/web-sys/src/features/gen_FileCallback.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileCallback)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FileCallback")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileCallback` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FileList.rs b/crates/web-sys/src/features/gen_FileList.rs index 5e6132dc306..e936117ec64 100644 --- a/crates/web-sys/src/features/gen_FileList.rs +++ b/crates/web-sys/src/features/gen_FileList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileList , typescript_type = "FileList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FileList", + typescript_type = "FileList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileList` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileList`*"] pub type FileList; - # [wasm_bindgen (structural , method , getter , js_class = "FileList" , js_name = length)] + #[wasm_bindgen(structural, method, getter, js_class = "FileList", js_name = "length")] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList/length)"] @@ -19,7 +23,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileList`*"] pub fn length(this: &FileList) -> u32; #[cfg(feature = "File")] - # [wasm_bindgen (method , structural , js_class = "FileList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "FileList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList/item)"] diff --git a/crates/web-sys/src/features/gen_FilePropertyBag.rs b/crates/web-sys/src/features/gen_FilePropertyBag.rs index 594aea9bbf8..da6fa249116 100644 --- a/crates/web-sys/src/features/gen_FilePropertyBag.rs +++ b/crates/web-sys/src/features/gen_FilePropertyBag.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FilePropertyBag)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FilePropertyBag")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FilePropertyBag` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FileReader.rs b/crates/web-sys/src/features/gen_FileReader.rs index 5263af6817d..457c0286956 100644 --- a/crates/web-sys/src/features/gen_FileReader.rs +++ b/crates/web-sys/src/features/gen_FileReader.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FileReader , typescript_type = "FileReader")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "FileReader", + typescript_type = "FileReader" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileReader` class."] #[doc = ""] @@ -11,14 +16,27 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub type FileReader; - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileReader", + 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/FileReader/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn ready_state(this: &FileReader) -> u16; - # [wasm_bindgen (structural , catch , method , getter , js_class = "FileReader" , js_name = result)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "FileReader", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result)"] @@ -26,91 +44,163 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn result(this: &FileReader) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "DomException")] - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = error)] + #[wasm_bindgen(structural, method, getter, js_class = "FileReader", js_name = "error")] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `FileReader`*"] pub fn error(this: &FileReader) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileReader", + js_name = "onloadstart" + )] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onloadstart(this: &FileReader) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FileReader", + js_name = "onloadstart" + )] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onloadstart(this: &FileReader, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileReader", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onprogress(this: &FileReader) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FileReader", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onprogress(this: &FileReader, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileReader", + js_name = "onload" + )] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onload(this: &FileReader) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FileReader", + js_name = "onload" + )] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onload(this: &FileReader, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileReader", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onabort(this: &FileReader) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FileReader", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onabort(this: &FileReader, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileReader", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onerror(this: &FileReader) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FileReader", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onerror(this: &FileReader, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileReader", + js_name = "onloadend" + )] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onloadend(this: &FileReader) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FileReader", + js_name = "onloadend" + )] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadend)"] @@ -124,7 +214,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn new() -> Result; - # [wasm_bindgen (method , structural , js_class = "FileReader" , js_name = abort)] + #[wasm_bindgen(method, structural, js_class = "FileReader", js_name = "abort")] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/abort)"] @@ -132,7 +222,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn abort(this: &FileReader); #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsArrayBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReader", + js_name = "readAsArrayBuffer" + )] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer)"] @@ -140,7 +236,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_array_buffer(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsBinaryString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReader", + js_name = "readAsBinaryString" + )] #[doc = "The `readAsBinaryString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString)"] @@ -148,7 +250,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_binary_string(this: &FileReader, filedata: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsDataURL)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReader", + js_name = "readAsDataURL" + )] #[doc = "The `readAsDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL)"] @@ -156,7 +264,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_data_url(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReader", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText)"] @@ -164,7 +278,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_text(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReader", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText)"] diff --git a/crates/web-sys/src/features/gen_FileReaderSync.rs b/crates/web-sys/src/features/gen_FileReaderSync.rs index c8ec2a66444..b5c811390b2 100644 --- a/crates/web-sys/src/features/gen_FileReaderSync.rs +++ b/crates/web-sys/src/features/gen_FileReaderSync.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileReaderSync , typescript_type = "FileReaderSync")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FileReaderSync", + typescript_type = "FileReaderSync" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileReaderSync` class."] #[doc = ""] @@ -19,7 +23,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileReaderSync`*"] pub fn new() -> Result; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsArrayBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReaderSync", + js_name = "readAsArrayBuffer" + )] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsArrayBuffer)"] @@ -30,7 +40,13 @@ extern "C" { blob: &Blob, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsBinaryString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReaderSync", + js_name = "readAsBinaryString" + )] #[doc = "The `readAsBinaryString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsBinaryString)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_binary_string(this: &FileReaderSync, blob: &Blob) -> Result; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsDataURL)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReaderSync", + js_name = "readAsDataURL" + )] #[doc = "The `readAsDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsDataURL)"] @@ -46,7 +68,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_data_url(this: &FileReaderSync, blob: &Blob) -> Result; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReaderSync", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsText)"] @@ -54,7 +82,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_text(this: &FileReaderSync, blob: &Blob) -> Result; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileReaderSync", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsText)"] diff --git a/crates/web-sys/src/features/gen_FileSystem.rs b/crates/web-sys/src/features/gen_FileSystem.rs index 09f217e0e00..6f20003c280 100644 --- a/crates/web-sys/src/features/gen_FileSystem.rs +++ b/crates/web-sys/src/features/gen_FileSystem.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystem , typescript_type = "FileSystem")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FileSystem", + typescript_type = "FileSystem" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystem` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"] pub type FileSystem; - # [wasm_bindgen (structural , method , getter , js_class = "FileSystem" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "FileSystem", 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/FileSystem/name)"] @@ -19,7 +23,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"] pub fn name(this: &FileSystem) -> String; #[cfg(feature = "FileSystemDirectoryEntry")] - # [wasm_bindgen (structural , method , getter , js_class = "FileSystem" , js_name = root)] + #[wasm_bindgen(structural, method, getter, js_class = "FileSystem", js_name = "root")] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/root)"] diff --git a/crates/web-sys/src/features/gen_FileSystemDirectoryEntry.rs b/crates/web-sys/src/features/gen_FileSystemDirectoryEntry.rs index 1a291e44124..60c67b9e435 100644 --- a/crates/web-sys/src/features/gen_FileSystemDirectoryEntry.rs +++ b/crates/web-sys/src/features/gen_FileSystemDirectoryEntry.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = FileSystemEntry , extends = :: js_sys :: Object , js_name = FileSystemDirectoryEntry , typescript_type = "FileSystemDirectoryEntry")] + #[wasm_bindgen( + extends = "FileSystemEntry", + extends = "::js_sys::Object", + js_name = "FileSystemDirectoryEntry", + typescript_type = "FileSystemDirectoryEntry" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemDirectoryEntry` class."] #[doc = ""] @@ -12,21 +17,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub type FileSystemDirectoryEntry; #[cfg(feature = "FileSystemDirectoryReader")] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = createReader)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "createReader" + )] #[doc = "The `createReader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemDirectoryReader`*"] pub fn create_reader(this: &FileSystemDirectoryEntry) -> FileSystemDirectoryReader; - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_directory(this: &FileSystemDirectoryEntry); - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -34,7 +54,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_directory_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>); #[cfg(feature = "FileSystemFlags")] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -46,7 +71,12 @@ extern "C" { options: &FileSystemFlags, ); #[cfg(feature = "FileSystemFlags")] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -59,7 +89,12 @@ extern "C" { success_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -72,7 +107,12 @@ extern "C" { success_callback: &FileSystemEntryCallback, ); #[cfg(feature = "FileSystemFlags")] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -86,7 +126,12 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -100,7 +145,12 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -118,7 +168,12 @@ extern "C" { feature = "FileSystemEntryCallback", feature = "FileSystemFlags", ))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getDirectory" + )] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] @@ -131,14 +186,24 @@ extern "C" { success_callback: &FileSystemEntryCallback, error_callback: &ErrorCallback, ); - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_file(this: &FileSystemDirectoryEntry); - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] @@ -146,7 +211,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_file_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>); #[cfg(feature = "FileSystemFlags")] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] @@ -158,7 +228,12 @@ extern "C" { options: &FileSystemFlags, ); #[cfg(feature = "FileSystemFlags")] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] @@ -171,7 +246,12 @@ extern "C" { success_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] @@ -184,7 +264,12 @@ extern "C" { success_callback: &FileSystemEntryCallback, ); #[cfg(feature = "FileSystemFlags")] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] @@ -198,7 +283,12 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] @@ -212,7 +302,12 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] @@ -230,7 +325,12 @@ extern "C" { feature = "FileSystemEntryCallback", feature = "FileSystemFlags", ))] - # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemDirectoryEntry", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] diff --git a/crates/web-sys/src/features/gen_FileSystemDirectoryReader.rs b/crates/web-sys/src/features/gen_FileSystemDirectoryReader.rs index 4d6a922b850..9294af358dc 100644 --- a/crates/web-sys/src/features/gen_FileSystemDirectoryReader.rs +++ b/crates/web-sys/src/features/gen_FileSystemDirectoryReader.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemDirectoryReader , typescript_type = "FileSystemDirectoryReader")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FileSystemDirectoryReader", + typescript_type = "FileSystemDirectoryReader" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemDirectoryReader` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"] pub type FileSystemDirectoryReader; - # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileSystemDirectoryReader", + js_name = "readEntries" + )] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] @@ -22,7 +32,13 @@ extern "C" { success_callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "FileSystemEntriesCallback")] - # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileSystemDirectoryReader", + js_name = "readEntries" + )] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] @@ -32,7 +48,13 @@ extern "C" { this: &FileSystemDirectoryReader, success_callback: &FileSystemEntriesCallback, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileSystemDirectoryReader", + js_name = "readEntries" + )] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] @@ -44,7 +66,13 @@ extern "C" { error_callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "FileSystemEntriesCallback")] - # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileSystemDirectoryReader", + js_name = "readEntries" + )] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] @@ -56,7 +84,13 @@ extern "C" { error_callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "ErrorCallback")] - # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileSystemDirectoryReader", + js_name = "readEntries" + )] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] @@ -68,7 +102,13 @@ extern "C" { error_callback: &ErrorCallback, ) -> Result<(), JsValue>; #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntriesCallback",))] - # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FileSystemDirectoryReader", + js_name = "readEntries" + )] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] diff --git a/crates/web-sys/src/features/gen_FileSystemEntriesCallback.rs b/crates/web-sys/src/features/gen_FileSystemEntriesCallback.rs index f8ef26903b5..96d859526cb 100644 --- a/crates/web-sys/src/features/gen_FileSystemEntriesCallback.rs +++ b/crates/web-sys/src/features/gen_FileSystemEntriesCallback.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemEntriesCallback)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FileSystemEntriesCallback")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemEntriesCallback` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FileSystemEntry.rs b/crates/web-sys/src/features/gen_FileSystemEntry.rs index 7834d6868ef..77e0646c572 100644 --- a/crates/web-sys/src/features/gen_FileSystemEntry.rs +++ b/crates/web-sys/src/features/gen_FileSystemEntry.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemEntry , typescript_type = "FileSystemEntry")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FileSystemEntry", + typescript_type = "FileSystemEntry" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemEntry` class."] #[doc = ""] @@ -11,28 +15,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub type FileSystemEntry; - # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = isFile)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileSystemEntry", + js_name = "isFile" + )] #[doc = "Getter for the `isFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn is_file(this: &FileSystemEntry) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = isDirectory)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileSystemEntry", + js_name = "isDirectory" + )] #[doc = "Getter for the `isDirectory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn is_directory(this: &FileSystemEntry) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileSystemEntry", + 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/FileSystemEntry/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn name(this: &FileSystemEntry) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = fullPath)] + #[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)"] @@ -40,21 +68,37 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn full_path(this: &FileSystemEntry) -> String; #[cfg(feature = "FileSystem")] - # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = filesystem)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FileSystemEntry", + js_name = "filesystem" + )] #[doc = "Getter for the `filesystem` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/filesystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystem`, `FileSystemEntry`*"] pub fn filesystem(this: &FileSystemEntry) -> FileSystem; - # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemEntry", + js_name = "getParent" + )] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn get_parent(this: &FileSystemEntry); - # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemEntry", + js_name = "getParent" + )] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] @@ -62,7 +106,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn get_parent_with_callback(this: &FileSystemEntry, success_callback: &::js_sys::Function); #[cfg(feature = "FileSystemEntryCallback")] - # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemEntry", + js_name = "getParent" + )] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] @@ -72,7 +121,12 @@ extern "C" { this: &FileSystemEntry, success_callback: &FileSystemEntryCallback, ); - # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemEntry", + js_name = "getParent" + )] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] @@ -84,7 +138,12 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(feature = "FileSystemEntryCallback")] - # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemEntry", + js_name = "getParent" + )] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] @@ -96,7 +155,12 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(feature = "ErrorCallback")] - # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemEntry", + js_name = "getParent" + )] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] @@ -108,7 +172,12 @@ extern "C" { error_callback: &ErrorCallback, ); #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntryCallback",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] + #[wasm_bindgen( + method, + structural, + js_class = "FileSystemEntry", + js_name = "getParent" + )] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] diff --git a/crates/web-sys/src/features/gen_FileSystemEntryCallback.rs b/crates/web-sys/src/features/gen_FileSystemEntryCallback.rs index 38f4306e3b3..01331b12fd6 100644 --- a/crates/web-sys/src/features/gen_FileSystemEntryCallback.rs +++ b/crates/web-sys/src/features/gen_FileSystemEntryCallback.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemEntryCallback)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FileSystemEntryCallback")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemEntryCallback` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FileSystemFileEntry.rs b/crates/web-sys/src/features/gen_FileSystemFileEntry.rs index 84dc290ab82..6629b961323 100644 --- a/crates/web-sys/src/features/gen_FileSystemFileEntry.rs +++ b/crates/web-sys/src/features/gen_FileSystemFileEntry.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = FileSystemEntry , extends = :: js_sys :: Object , js_name = FileSystemFileEntry , typescript_type = "FileSystemFileEntry")] + #[wasm_bindgen( + extends = "FileSystemEntry", + extends = "::js_sys::Object", + js_name = "FileSystemFileEntry", + typescript_type = "FileSystemFileEntry" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemFileEntry` class."] #[doc = ""] @@ -11,7 +16,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] pub type FileSystemFileEntry; - # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] + #[wasm_bindgen(method, structural, js_class = "FileSystemFileEntry", js_name = "file")] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] @@ -19,14 +24,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] pub fn file_with_callback(this: &FileSystemFileEntry, success_callback: &::js_sys::Function); #[cfg(feature = "FileCallback")] - # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] + #[wasm_bindgen(method, structural, js_class = "FileSystemFileEntry", js_name = "file")] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`, `FileSystemFileEntry`*"] pub fn file_with_file_callback(this: &FileSystemFileEntry, success_callback: &FileCallback); - # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] + #[wasm_bindgen(method, structural, js_class = "FileSystemFileEntry", js_name = "file")] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] @@ -38,7 +43,7 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(feature = "FileCallback")] - # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] + #[wasm_bindgen(method, structural, js_class = "FileSystemFileEntry", js_name = "file")] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] @@ -50,7 +55,7 @@ extern "C" { error_callback: &::js_sys::Function, ); #[cfg(feature = "ErrorCallback")] - # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] + #[wasm_bindgen(method, structural, js_class = "FileSystemFileEntry", js_name = "file")] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] @@ -62,7 +67,7 @@ extern "C" { error_callback: &ErrorCallback, ); #[cfg(all(feature = "ErrorCallback", feature = "FileCallback",))] - # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] + #[wasm_bindgen(method, structural, js_class = "FileSystemFileEntry", js_name = "file")] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] diff --git a/crates/web-sys/src/features/gen_FileSystemFlags.rs b/crates/web-sys/src/features/gen_FileSystemFlags.rs index 3faa152473b..23344e84c92 100644 --- a/crates/web-sys/src/features/gen_FileSystemFlags.rs +++ b/crates/web-sys/src/features/gen_FileSystemFlags.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemFlags)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FileSystemFlags")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemFlags` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FocusEvent.rs b/crates/web-sys/src/features/gen_FocusEvent.rs index d50c0dca39d..e7e566fb497 100644 --- a/crates/web-sys/src/features/gen_FocusEvent.rs +++ b/crates/web-sys/src/features/gen_FocusEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = FocusEvent , typescript_type = "FocusEvent")] + #[wasm_bindgen( + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "FocusEvent", + typescript_type = "FocusEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FocusEvent` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FocusEvent`*"] pub type FocusEvent; #[cfg(feature = "EventTarget")] - # [wasm_bindgen (structural , method , getter , js_class = "FocusEvent" , js_name = relatedTarget)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FocusEvent", + js_name = "relatedTarget" + )] #[doc = "Getter for the `relatedTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget)"] diff --git a/crates/web-sys/src/features/gen_FocusEventInit.rs b/crates/web-sys/src/features/gen_FocusEventInit.rs index b58db20764e..d90cad09498 100644 --- a/crates/web-sys/src/features/gen_FocusEventInit.rs +++ b/crates/web-sys/src/features/gen_FocusEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FocusEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FocusEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FocusEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FontFace.rs b/crates/web-sys/src/features/gen_FontFace.rs index 4c841ed0c75..4ad5317d313 100644 --- a/crates/web-sys/src/features/gen_FontFace.rs +++ b/crates/web-sys/src/features/gen_FontFace.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFace , typescript_type = "FontFace")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FontFace", + typescript_type = "FontFace" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFace` class."] #[doc = ""] @@ -11,126 +15,162 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub type FontFace; - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = family)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFace", js_name = "family")] #[doc = "Getter for the `family` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = family)] + #[wasm_bindgen(structural, method, setter, js_class = "FontFace", js_name = "family")] #[doc = "Setter for the `family` field of this object."] #[doc = ""] #[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 set_family(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = style)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFace", js_name = "style")] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = style)] + #[wasm_bindgen(structural, method, setter, js_class = "FontFace", js_name = "style")] #[doc = "Setter for the `style` field of this object."] #[doc = ""] #[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 set_style(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = weight)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFace", js_name = "weight")] #[doc = "Getter for the `weight` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = weight)] + #[wasm_bindgen(structural, method, setter, js_class = "FontFace", js_name = "weight")] #[doc = "Setter for the `weight` field of this object."] #[doc = ""] #[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 set_weight(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = stretch)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFace", js_name = "stretch")] #[doc = "Getter for the `stretch` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = stretch)] + #[wasm_bindgen(structural, method, setter, js_class = "FontFace", js_name = "stretch")] #[doc = "Setter for the `stretch` field of this object."] #[doc = ""] #[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 set_stretch(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = unicodeRange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFace", + js_name = "unicodeRange" + )] #[doc = "Getter for the `unicodeRange` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = unicodeRange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FontFace", + js_name = "unicodeRange" + )] #[doc = "Setter for the `unicodeRange` field of this object."] #[doc = ""] #[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 set_unicode_range(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = variant)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFace", js_name = "variant")] #[doc = "Getter for the `variant` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = variant)] + #[wasm_bindgen(structural, method, setter, js_class = "FontFace", js_name = "variant")] #[doc = "Setter for the `variant` field of this object."] #[doc = ""] #[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 set_variant(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = featureSettings)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFace", + js_name = "featureSettings" + )] #[doc = "Getter for the `featureSettings` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = featureSettings)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FontFace", + js_name = "featureSettings" + )] #[doc = "Setter for the `featureSettings` field of this object."] #[doc = ""] #[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 set_feature_settings(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = variationSettings)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFace", + js_name = "variationSettings" + )] #[doc = "Getter for the `variationSettings` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = variationSettings)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FontFace", + js_name = "variationSettings" + )] #[doc = "Setter for the `variationSettings` field of this object."] #[doc = ""] #[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 set_variation_settings(this: &FontFace, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = display)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFace", js_name = "display")] #[doc = "Getter for the `display` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = display)] + #[wasm_bindgen(structural, method, setter, js_class = "FontFace", js_name = "display")] #[doc = "Setter for the `display` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display)"] @@ -138,14 +178,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_display(this: &FontFace, value: &str); #[cfg(feature = "FontFaceLoadStatus")] - # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = status)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFace", js_name = "status")] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceLoadStatus`*"] pub fn status(this: &FontFace) -> FontFaceLoadStatus; - # [wasm_bindgen (structural , catch , method , getter , js_class = "FontFace" , js_name = loaded)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "FontFace", + js_name = "loaded" + )] #[doc = "Getter for the `loaded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded)"] @@ -234,7 +281,7 @@ extern "C" { source: &mut [u8], descriptors: &FontFaceDescriptors, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "FontFace" , js_name = load)] + #[wasm_bindgen(catch, method, structural, js_class = "FontFace", js_name = "load")] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/load)"] diff --git a/crates/web-sys/src/features/gen_FontFaceDescriptors.rs b/crates/web-sys/src/features/gen_FontFaceDescriptors.rs index 080792fc1ba..c55dda4e08e 100644 --- a/crates/web-sys/src/features/gen_FontFaceDescriptors.rs +++ b/crates/web-sys/src/features/gen_FontFaceDescriptors.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFaceDescriptors)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FontFaceDescriptors")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceDescriptors` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FontFaceSet.rs b/crates/web-sys/src/features/gen_FontFaceSet.rs index 99c8a1f0846..9ba120e6374 100644 --- a/crates/web-sys/src/features/gen_FontFaceSet.rs +++ b/crates/web-sys/src/features/gen_FontFaceSet.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FontFaceSet , typescript_type = "FontFaceSet")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "FontFaceSet", + typescript_type = "FontFaceSet" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSet` class."] #[doc = ""] @@ -11,56 +16,99 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub type FontFaceSet; - # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = size)] + #[wasm_bindgen(structural, method, getter, js_class = "FontFaceSet", js_name = "size")] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn size(this: &FontFaceSet) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloading)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFaceSet", + js_name = "onloading" + )] #[doc = "Getter for the `onloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn onloading(this: &FontFaceSet) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloading)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FontFaceSet", + js_name = "onloading" + )] #[doc = "Setter for the `onloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn set_onloading(this: &FontFaceSet, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingdone)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFaceSet", + js_name = "onloadingdone" + )] #[doc = "Getter for the `onloadingdone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn onloadingdone(this: &FontFaceSet) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingdone)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FontFaceSet", + js_name = "onloadingdone" + )] #[doc = "Setter for the `onloadingdone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn set_onloadingdone(this: &FontFaceSet, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFaceSet", + js_name = "onloadingerror" + )] #[doc = "Getter for the `onloadingerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn onloadingerror(this: &FontFaceSet) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "FontFaceSet", + js_name = "onloadingerror" + )] #[doc = "Setter for the `onloadingerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn set_onloadingerror(this: &FontFaceSet, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , catch , method , getter , js_class = "FontFaceSet" , js_name = ready)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "FontFaceSet", + js_name = "ready" + )] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/ready)"] @@ -68,7 +116,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn ready(this: &FontFaceSet) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "FontFaceSetLoadStatus")] - # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = status)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFaceSet", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/status)"] @@ -76,28 +130,28 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetLoadStatus`*"] pub fn status(this: &FontFaceSet) -> FontFaceSetLoadStatus; #[cfg(feature = "FontFace")] - # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = add)] + #[wasm_bindgen(catch, method, structural, js_class = "FontFaceSet", js_name = "add")] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] pub fn add(this: &FontFaceSet, font: &FontFace) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)] + #[wasm_bindgen(catch, method, structural, js_class = "FontFaceSet", js_name = "check")] #[doc = "The `check()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn check(this: &FontFaceSet, font: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)] + #[wasm_bindgen(catch, method, structural, js_class = "FontFaceSet", js_name = "check")] #[doc = "The `check()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn check_with_text(this: &FontFaceSet, font: &str, text: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = clear)] + #[wasm_bindgen(method, structural, js_class = "FontFaceSet", js_name = "clear")] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/clear)"] @@ -105,7 +159,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn clear(this: &FontFaceSet); #[cfg(feature = "FontFace")] - # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "FontFaceSet", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/delete)"] @@ -113,21 +167,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] pub fn delete(this: &FontFaceSet, font: &FontFace) -> bool; #[cfg(feature = "FontFaceSetIterator")] - # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = entries)] + #[wasm_bindgen(method, structural, js_class = "FontFaceSet", js_name = "entries")] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"] pub fn entries(this: &FontFaceSet) -> FontFaceSetIterator; - # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FontFaceSet", + js_name = "forEach" + )] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn for_each(this: &FontFaceSet, cb: &::js_sys::Function) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FontFaceSet", + js_name = "forEach" + )] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"] @@ -139,21 +205,21 @@ extern "C" { this_arg: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(feature = "FontFace")] - # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = has)] + #[wasm_bindgen(method, structural, js_class = "FontFaceSet", js_name = "has")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] pub fn has(this: &FontFaceSet, font: &FontFace) -> bool; - # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)] + #[wasm_bindgen(method, structural, js_class = "FontFaceSet", js_name = "load")] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn load(this: &FontFaceSet, font: &str) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)] + #[wasm_bindgen(method, structural, js_class = "FontFaceSet", js_name = "load")] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"] @@ -161,7 +227,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn load_with_text(this: &FontFaceSet, font: &str, text: &str) -> ::js_sys::Promise; #[cfg(feature = "FontFaceSetIterator")] - # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = values)] + #[wasm_bindgen(method, structural, js_class = "FontFaceSet", js_name = "values")] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/values)"] diff --git a/crates/web-sys/src/features/gen_FontFaceSetIterator.rs b/crates/web-sys/src/features/gen_FontFaceSetIterator.rs index 8191f5d102f..0ec9c35e25c 100644 --- a/crates/web-sys/src/features/gen_FontFaceSetIterator.rs +++ b/crates/web-sys/src/features/gen_FontFaceSetIterator.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = FontFaceSetIterator , typescript_type = "FontFaceSetIterator")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "FontFaceSetIterator" , typescript_type = "FontFaceSetIterator")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetIterator` class."] #[doc = ""] @@ -12,7 +12,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIterator`*"] pub type FontFaceSetIterator; #[cfg(feature = "FontFaceSetIteratorResult")] - # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSetIterator" , js_name = next)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "FontFaceSetIterator", + js_name = "next" + )] #[doc = "The `next()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetIterator/next)"] diff --git a/crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs b/crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs index 5b9bcf37683..ba3e9ef6b86 100644 --- a/crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs +++ b/crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFaceSetIteratorResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FontFaceSetIteratorResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetIteratorResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FontFaceSetLoadEvent.rs b/crates/web-sys/src/features/gen_FontFaceSetLoadEvent.rs index 800102f8fc0..afa2825c0bf 100644 --- a/crates/web-sys/src/features/gen_FontFaceSetLoadEvent.rs +++ b/crates/web-sys/src/features/gen_FontFaceSetLoadEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = FontFaceSetLoadEvent , typescript_type = "FontFaceSetLoadEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "FontFaceSetLoadEvent", + typescript_type = "FontFaceSetLoadEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetLoadEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] pub type FontFaceSetLoadEvent; - # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSetLoadEvent" , js_name = fontfaces)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "FontFaceSetLoadEvent", + js_name = "fontfaces" + )] #[doc = "Getter for the `fontfaces` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/fontfaces)"] diff --git a/crates/web-sys/src/features/gen_FontFaceSetLoadEventInit.rs b/crates/web-sys/src/features/gen_FontFaceSetLoadEventInit.rs index 34570f4cb6c..da82291b087 100644 --- a/crates/web-sys/src/features/gen_FontFaceSetLoadEventInit.rs +++ b/crates/web-sys/src/features/gen_FontFaceSetLoadEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFaceSetLoadEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "FontFaceSetLoadEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetLoadEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FormData.rs b/crates/web-sys/src/features/gen_FormData.rs index e60528529ae..f2d271f3684 100644 --- a/crates/web-sys/src/features/gen_FormData.rs +++ b/crates/web-sys/src/features/gen_FormData.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FormData , typescript_type = "FormData")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FormData", + typescript_type = "FormData" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FormData` class."] #[doc = ""] @@ -27,7 +31,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FormData`, `HtmlFormElement`*"] pub fn new_with_form(form: &HtmlFormElement) -> Result; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "FormData", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] @@ -35,7 +39,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] pub fn append_with_blob(this: &FormData, name: &str, value: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "FormData", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] @@ -47,35 +51,35 @@ extern "C" { value: &Blob, filename: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "FormData", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn append_with_str(this: &FormData, name: &str, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "FormData", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn delete(this: &FormData, name: &str); - # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = get)] + #[wasm_bindgen(method, structural, js_class = "FormData", js_name = "get")] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn get(this: &FormData, name: &str) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = getAll)] + #[wasm_bindgen(method, structural, js_class = "FormData", js_name = "getAll")] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn get_all(this: &FormData, name: &str) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = has)] + #[wasm_bindgen(method, structural, js_class = "FormData", js_name = "has")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/has)"] @@ -83,7 +87,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn has(this: &FormData, name: &str) -> bool; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = set)] + #[wasm_bindgen(catch, method, structural, js_class = "FormData", js_name = "set")] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] @@ -91,7 +95,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] pub fn set_with_blob(this: &FormData, name: &str, value: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = set)] + #[wasm_bindgen(catch, method, structural, js_class = "FormData", js_name = "set")] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] @@ -103,7 +107,7 @@ extern "C" { value: &Blob, filename: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = set)] + #[wasm_bindgen(catch, method, structural, js_class = "FormData", js_name = "set")] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] diff --git a/crates/web-sys/src/features/gen_FuzzingFunctions.rs b/crates/web-sys/src/features/gen_FuzzingFunctions.rs index f3a6d7fcac4..ce375fd8da2 100644 --- a/crates/web-sys/src/features/gen_FuzzingFunctions.rs +++ b/crates/web-sys/src/features/gen_FuzzingFunctions.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FuzzingFunctions , typescript_type = "FuzzingFunctions")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "FuzzingFunctions", + typescript_type = "FuzzingFunctions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FuzzingFunctions` class."] #[doc = ""] @@ -11,21 +15,34 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub type FuzzingFunctions; - # [wasm_bindgen (static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = cycleCollect)] + #[wasm_bindgen( + static_method_of = "FuzzingFunctions", + js_class = "FuzzingFunctions", + js_name = "cycleCollect" + )] #[doc = "The `cycleCollect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/cycleCollect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub fn cycle_collect(); - # [wasm_bindgen (catch , static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = enableAccessibility)] + #[wasm_bindgen( + catch, + static_method_of = "FuzzingFunctions", + js_class = "FuzzingFunctions", + js_name = "enableAccessibility" + )] #[doc = "The `enableAccessibility()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/enableAccessibility)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub fn enable_accessibility() -> Result<(), JsValue>; - # [wasm_bindgen (static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = garbageCollect)] + #[wasm_bindgen( + static_method_of = "FuzzingFunctions", + js_class = "FuzzingFunctions", + js_name = "garbageCollect" + )] #[doc = "The `garbageCollect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/garbageCollect)"] diff --git a/crates/web-sys/src/features/gen_GainNode.rs b/crates/web-sys/src/features/gen_GainNode.rs index fe5d28d70ca..8df9cebd2e8 100644 --- a/crates/web-sys/src/features/gen_GainNode.rs +++ b/crates/web-sys/src/features/gen_GainNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = GainNode , typescript_type = "GainNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "GainNode", + typescript_type = "GainNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GainNode` class."] #[doc = ""] @@ -12,7 +18,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GainNode`*"] pub type GainNode; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "GainNode" , js_name = gain)] + #[wasm_bindgen(structural, method, getter, js_class = "GainNode", js_name = "gain")] #[doc = "Getter for the `gain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode/gain)"] diff --git a/crates/web-sys/src/features/gen_GainOptions.rs b/crates/web-sys/src/features/gen_GainOptions.rs index 9fc6b7605ea..40daaa20074 100644 --- a/crates/web-sys/src/features/gen_GainOptions.rs +++ b/crates/web-sys/src/features/gen_GainOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GainOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GainOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GainOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Gamepad.rs b/crates/web-sys/src/features/gen_Gamepad.rs index 7545cec16fc..4a2c32d236f 100644 --- a/crates/web-sys/src/features/gen_Gamepad.rs +++ b/crates/web-sys/src/features/gen_Gamepad.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Gamepad , typescript_type = "Gamepad")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Gamepad", + typescript_type = "Gamepad" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Gamepad` class."] #[doc = ""] @@ -11,14 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub type Gamepad; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "Gamepad", 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/Gamepad/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn id(this: &Gamepad) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = index)] + #[wasm_bindgen(structural, method, getter, js_class = "Gamepad", js_name = "index")] #[doc = "Getter for the `index` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index)"] @@ -26,7 +30,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn index(this: &Gamepad) -> u32; #[cfg(feature = "GamepadMappingType")] - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = mapping)] + #[wasm_bindgen(structural, method, getter, js_class = "Gamepad", js_name = "mapping")] #[doc = "Getter for the `mapping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping)"] @@ -34,42 +38,60 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadMappingType`*"] pub fn mapping(this: &Gamepad) -> GamepadMappingType; #[cfg(feature = "GamepadHand")] - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = hand)] + #[wasm_bindgen(structural, method, getter, js_class = "Gamepad", js_name = "hand")] #[doc = "Getter for the `hand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadHand`*"] pub fn hand(this: &Gamepad) -> GamepadHand; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = displayId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Gamepad", + js_name = "displayId" + )] #[doc = "Getter for the `displayId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn display_id(this: &Gamepad) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = connected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Gamepad", + js_name = "connected" + )] #[doc = "Getter for the `connected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn connected(this: &Gamepad) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = buttons)] + #[wasm_bindgen(structural, method, getter, js_class = "Gamepad", js_name = "buttons")] #[doc = "Getter for the `buttons` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn buttons(this: &Gamepad) -> ::js_sys::Array; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = axes)] + #[wasm_bindgen(structural, method, getter, js_class = "Gamepad", js_name = "axes")] #[doc = "Getter for the `axes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn axes(this: &Gamepad) -> ::js_sys::Array; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = timestamp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Gamepad", + js_name = "timestamp" + )] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp)"] @@ -77,14 +99,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn timestamp(this: &Gamepad) -> f64; #[cfg(feature = "GamepadPose")] - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = pose)] + #[wasm_bindgen(structural, method, getter, js_class = "Gamepad", js_name = "pose")] #[doc = "Getter for the `pose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadPose`*"] pub fn pose(this: &Gamepad) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = hapticActuators)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Gamepad", + js_name = "hapticActuators" + )] #[doc = "Getter for the `hapticActuators` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators)"] diff --git a/crates/web-sys/src/features/gen_GamepadAxisMoveEvent.rs b/crates/web-sys/src/features/gen_GamepadAxisMoveEvent.rs index 479cf3e4c69..4db5c4eb001 100644 --- a/crates/web-sys/src/features/gen_GamepadAxisMoveEvent.rs +++ b/crates/web-sys/src/features/gen_GamepadAxisMoveEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = GamepadEvent , extends = Event , extends = :: js_sys :: Object , js_name = GamepadAxisMoveEvent , typescript_type = "GamepadAxisMoveEvent")] + #[wasm_bindgen( + extends = "GamepadEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "GamepadAxisMoveEvent", + typescript_type = "GamepadAxisMoveEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadAxisMoveEvent` class."] #[doc = ""] @@ -11,14 +17,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] pub type GamepadAxisMoveEvent; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = axis)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadAxisMoveEvent", + js_name = "axis" + )] #[doc = "Getter for the `axis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/axis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] pub fn axis(this: &GamepadAxisMoveEvent) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadAxisMoveEvent", + 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/GamepadAxisMoveEvent/value)"] diff --git a/crates/web-sys/src/features/gen_GamepadAxisMoveEventInit.rs b/crates/web-sys/src/features/gen_GamepadAxisMoveEventInit.rs index 4118c3e7a1d..63c67d266fe 100644 --- a/crates/web-sys/src/features/gen_GamepadAxisMoveEventInit.rs +++ b/crates/web-sys/src/features/gen_GamepadAxisMoveEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadAxisMoveEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GamepadAxisMoveEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadAxisMoveEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GamepadButton.rs b/crates/web-sys/src/features/gen_GamepadButton.rs index f06e3ec7d81..e656fdba9c1 100644 --- a/crates/web-sys/src/features/gen_GamepadButton.rs +++ b/crates/web-sys/src/features/gen_GamepadButton.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadButton , typescript_type = "GamepadButton")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GamepadButton", + typescript_type = "GamepadButton" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadButton` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pub type GamepadButton; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = pressed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadButton", + js_name = "pressed" + )] #[doc = "Getter for the `pressed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pub fn pressed(this: &GamepadButton) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = touched)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadButton", + js_name = "touched" + )] #[doc = "Getter for the `touched` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/touched)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pub fn touched(this: &GamepadButton) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadButton", + 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/GamepadButton/value)"] diff --git a/crates/web-sys/src/features/gen_GamepadButtonEvent.rs b/crates/web-sys/src/features/gen_GamepadButtonEvent.rs index c04f7249673..dc205f75166 100644 --- a/crates/web-sys/src/features/gen_GamepadButtonEvent.rs +++ b/crates/web-sys/src/features/gen_GamepadButtonEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = GamepadEvent , extends = Event , extends = :: js_sys :: Object , js_name = GamepadButtonEvent , typescript_type = "GamepadButtonEvent")] + #[wasm_bindgen( + extends = "GamepadEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "GamepadButtonEvent", + typescript_type = "GamepadButtonEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadButtonEvent` class."] #[doc = ""] @@ -11,7 +17,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`*"] pub type GamepadButtonEvent; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadButtonEvent" , js_name = button)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadButtonEvent", + js_name = "button" + )] #[doc = "Getter for the `button` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent/button)"] diff --git a/crates/web-sys/src/features/gen_GamepadButtonEventInit.rs b/crates/web-sys/src/features/gen_GamepadButtonEventInit.rs index 3882908c985..4a5b8380f1f 100644 --- a/crates/web-sys/src/features/gen_GamepadButtonEventInit.rs +++ b/crates/web-sys/src/features/gen_GamepadButtonEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadButtonEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GamepadButtonEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadButtonEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GamepadEvent.rs b/crates/web-sys/src/features/gen_GamepadEvent.rs index 22988feac87..424863b89df 100644 --- a/crates/web-sys/src/features/gen_GamepadEvent.rs +++ b/crates/web-sys/src/features/gen_GamepadEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = GamepadEvent , typescript_type = "GamepadEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "GamepadEvent", + typescript_type = "GamepadEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadEvent`*"] pub type GamepadEvent; #[cfg(feature = "Gamepad")] - # [wasm_bindgen (structural , method , getter , js_class = "GamepadEvent" , js_name = gamepad)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadEvent", + js_name = "gamepad" + )] #[doc = "Getter for the `gamepad` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent/gamepad)"] diff --git a/crates/web-sys/src/features/gen_GamepadEventInit.rs b/crates/web-sys/src/features/gen_GamepadEventInit.rs index 67d67ad7b32..e18deff1416 100644 --- a/crates/web-sys/src/features/gen_GamepadEventInit.rs +++ b/crates/web-sys/src/features/gen_GamepadEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GamepadEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GamepadHapticActuator.rs b/crates/web-sys/src/features/gen_GamepadHapticActuator.rs index 98c01912ef6..9a8fec3db24 100644 --- a/crates/web-sys/src/features/gen_GamepadHapticActuator.rs +++ b/crates/web-sys/src/features/gen_GamepadHapticActuator.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadHapticActuator , typescript_type = "GamepadHapticActuator")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GamepadHapticActuator", + typescript_type = "GamepadHapticActuator" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadHapticActuator` class."] #[doc = ""] @@ -12,14 +16,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`*"] pub type GamepadHapticActuator; #[cfg(feature = "GamepadHapticActuatorType")] - # [wasm_bindgen (structural , method , getter , js_class = "GamepadHapticActuator" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadHapticActuator", + 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/GamepadHapticActuator/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`, `GamepadHapticActuatorType`*"] pub fn type_(this: &GamepadHapticActuator) -> GamepadHapticActuatorType; - # [wasm_bindgen (catch , method , structural , js_class = "GamepadHapticActuator" , js_name = pulse)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "GamepadHapticActuator", + js_name = "pulse" + )] #[doc = "The `pulse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/pulse)"] diff --git a/crates/web-sys/src/features/gen_GamepadPose.rs b/crates/web-sys/src/features/gen_GamepadPose.rs index a8980c3f777..8550a9b88eb 100644 --- a/crates/web-sys/src/features/gen_GamepadPose.rs +++ b/crates/web-sys/src/features/gen_GamepadPose.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadPose , typescript_type = "GamepadPose")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GamepadPose", + typescript_type = "GamepadPose" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadPose` class."] #[doc = ""] @@ -11,56 +15,110 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub type GamepadPose; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasOrientation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadPose", + js_name = "hasOrientation" + )] #[doc = "Getter for the `hasOrientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn has_orientation(this: &GamepadPose) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasPosition)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadPose", + js_name = "hasPosition" + )] #[doc = "Getter for the `hasPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn has_position(this: &GamepadPose) -> bool; - # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = position)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "GamepadPose", + js_name = "position" + )] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn position(this: &GamepadPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearVelocity)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "GamepadPose", + js_name = "linearVelocity" + )] #[doc = "Getter for the `linearVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn linear_velocity(this: &GamepadPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearAcceleration)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "GamepadPose", + js_name = "linearAcceleration" + )] #[doc = "Getter for the `linearAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearAcceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn linear_acceleration(this: &GamepadPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = orientation)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "GamepadPose", + js_name = "orientation" + )] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn orientation(this: &GamepadPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularVelocity)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "GamepadPose", + js_name = "angularVelocity" + )] #[doc = "Getter for the `angularVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn angular_velocity(this: &GamepadPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularAcceleration)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "GamepadPose", + js_name = "angularAcceleration" + )] #[doc = "Getter for the `angularAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularAcceleration)"] diff --git a/crates/web-sys/src/features/gen_GamepadServiceTest.rs b/crates/web-sys/src/features/gen_GamepadServiceTest.rs index 93db8333185..61b36737502 100644 --- a/crates/web-sys/src/features/gen_GamepadServiceTest.rs +++ b/crates/web-sys/src/features/gen_GamepadServiceTest.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadServiceTest , typescript_type = "GamepadServiceTest")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GamepadServiceTest", + typescript_type = "GamepadServiceTest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadServiceTest` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub type GamepadServiceTest; #[cfg(feature = "GamepadMappingType")] - # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = noMapping)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadServiceTest", + js_name = "noMapping" + )] #[doc = "Getter for the `noMapping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noMapping)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"] pub fn no_mapping(this: &GamepadServiceTest) -> GamepadMappingType; #[cfg(feature = "GamepadMappingType")] - # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = standardMapping)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadServiceTest", + js_name = "standardMapping" + )] #[doc = "Getter for the `standardMapping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/standardMapping)"] @@ -28,7 +44,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"] pub fn standard_mapping(this: &GamepadServiceTest) -> GamepadMappingType; #[cfg(feature = "GamepadHand")] - # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = noHand)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadServiceTest", + js_name = "noHand" + )] #[doc = "Getter for the `noHand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noHand)"] @@ -36,7 +58,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] pub fn no_hand(this: &GamepadServiceTest) -> GamepadHand; #[cfg(feature = "GamepadHand")] - # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = leftHand)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadServiceTest", + js_name = "leftHand" + )] #[doc = "Getter for the `leftHand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/leftHand)"] @@ -44,7 +72,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] pub fn left_hand(this: &GamepadServiceTest) -> GamepadHand; #[cfg(feature = "GamepadHand")] - # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = rightHand)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GamepadServiceTest", + js_name = "rightHand" + )] #[doc = "Getter for the `rightHand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/rightHand)"] @@ -52,7 +86,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] pub fn right_hand(this: &GamepadServiceTest) -> GamepadHand; #[cfg(all(feature = "GamepadHand", feature = "GamepadMappingType",))] - # [wasm_bindgen (catch , method , structural , js_class = "GamepadServiceTest" , js_name = addGamepad)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "GamepadServiceTest", + js_name = "addGamepad" + )] #[doc = "The `addGamepad()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/addGamepad)"] @@ -67,14 +107,24 @@ extern "C" { num_axes: u32, num_haptics: u32, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newAxisMoveEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "GamepadServiceTest", + js_name = "newAxisMoveEvent" + )] #[doc = "The `newAxisMoveEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newAxisMoveEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub fn new_axis_move_event(this: &GamepadServiceTest, index: u32, axis: u32, value: f64); - # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newButtonEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "GamepadServiceTest", + js_name = "newButtonEvent" + )] #[doc = "The `newButtonEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonEvent)"] @@ -87,7 +137,12 @@ extern "C" { pressed: bool, touched: bool, ); - # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newButtonValueEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "GamepadServiceTest", + js_name = "newButtonValueEvent" + )] #[doc = "The `newButtonValueEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonValueEvent)"] @@ -101,7 +156,12 @@ extern "C" { touched: bool, value: f64, ); - # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newPoseMove)] + #[wasm_bindgen( + method, + structural, + js_class = "GamepadServiceTest", + js_name = "newPoseMove" + )] #[doc = "The `newPoseMove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newPoseMove)"] @@ -117,7 +177,12 @@ extern "C" { lin_velocity: Option<&mut [f32]>, lin_acceleration: Option<&mut [f32]>, ); - # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = removeGamepad)] + #[wasm_bindgen( + method, + structural, + js_class = "GamepadServiceTest", + js_name = "removeGamepad" + )] #[doc = "The `removeGamepad()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/removeGamepad)"] diff --git a/crates/web-sys/src/features/gen_Geolocation.rs b/crates/web-sys/src/features/gen_Geolocation.rs index 896b7ffb90a..8430e6ac3f1 100644 --- a/crates/web-sys/src/features/gen_Geolocation.rs +++ b/crates/web-sys/src/features/gen_Geolocation.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Geolocation , typescript_type = "Geolocation")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "Geolocation" , typescript_type = "Geolocation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Geolocation` class."] #[doc = ""] @@ -11,14 +11,20 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub type Geolocation; - # [wasm_bindgen (method , structural , js_class = "Geolocation" , js_name = clearWatch)] + #[wasm_bindgen(method, structural, js_class = "Geolocation", js_name = "clearWatch")] #[doc = "The `clearWatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/clearWatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub fn clear_watch(this: &Geolocation, watch_id: i32); - # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Geolocation", + js_name = "getCurrentPosition" + )] #[doc = "The `getCurrentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] @@ -28,7 +34,13 @@ extern "C" { this: &Geolocation, success_callback: &::js_sys::Function, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Geolocation", + js_name = "getCurrentPosition" + )] #[doc = "The `getCurrentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] @@ -40,7 +52,13 @@ extern "C" { error_callback: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "PositionOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Geolocation", + js_name = "getCurrentPosition" + )] #[doc = "The `getCurrentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] @@ -52,7 +70,13 @@ extern "C" { error_callback: Option<&::js_sys::Function>, options: &PositionOptions, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = watchPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Geolocation", + js_name = "watchPosition" + )] #[doc = "The `watchPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] @@ -62,7 +86,13 @@ extern "C" { this: &Geolocation, success_callback: &::js_sys::Function, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = watchPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Geolocation", + js_name = "watchPosition" + )] #[doc = "The `watchPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] @@ -74,7 +104,13 @@ extern "C" { error_callback: Option<&::js_sys::Function>, ) -> Result; #[cfg(feature = "PositionOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = watchPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Geolocation", + js_name = "watchPosition" + )] #[doc = "The `watchPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] diff --git a/crates/web-sys/src/features/gen_GetNotificationOptions.rs b/crates/web-sys/src/features/gen_GetNotificationOptions.rs index 3dc3788f707..212e375f14f 100644 --- a/crates/web-sys/src/features/gen_GetNotificationOptions.rs +++ b/crates/web-sys/src/features/gen_GetNotificationOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GetNotificationOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GetNotificationOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GetNotificationOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GetRootNodeOptions.rs b/crates/web-sys/src/features/gen_GetRootNodeOptions.rs index 41a8cc3db7f..7f580abb675 100644 --- a/crates/web-sys/src/features/gen_GetRootNodeOptions.rs +++ b/crates/web-sys/src/features/gen_GetRootNodeOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GetRootNodeOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GetRootNodeOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GetRootNodeOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GetUserMediaRequest.rs b/crates/web-sys/src/features/gen_GetUserMediaRequest.rs index da4a744cb20..2d7bb2afef0 100644 --- a/crates/web-sys/src/features/gen_GetUserMediaRequest.rs +++ b/crates/web-sys/src/features/gen_GetUserMediaRequest.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = GetUserMediaRequest , typescript_type = "GetUserMediaRequest")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "GetUserMediaRequest" , typescript_type = "GetUserMediaRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GetUserMediaRequest` class."] #[doc = ""] @@ -11,49 +11,91 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub type GetUserMediaRequest; - # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = windowID)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GetUserMediaRequest", + js_name = "windowID" + )] #[doc = "Getter for the `windowID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/windowID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn window_id(this: &GetUserMediaRequest) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = innerWindowID)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GetUserMediaRequest", + js_name = "innerWindowID" + )] #[doc = "Getter for the `innerWindowID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/innerWindowID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn inner_window_id(this: &GetUserMediaRequest) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = callID)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GetUserMediaRequest", + js_name = "callID" + )] #[doc = "Getter for the `callID` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = rawID)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = mediaSource)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = isSecure)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GetUserMediaRequest", + js_name = "isSecure" + )] #[doc = "Getter for the `isSecure` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/isSecure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn is_secure(this: &GetUserMediaRequest) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = isHandlingUserInput)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GetUserMediaRequest", + js_name = "isHandlingUserInput" + )] #[doc = "Getter for the `isHandlingUserInput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/isHandlingUserInput)"] @@ -61,7 +103,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn is_handling_user_input(this: &GetUserMediaRequest) -> bool; #[cfg(feature = "MediaStreamConstraints")] - # [wasm_bindgen (method , structural , js_class = "GetUserMediaRequest" , js_name = getConstraints)] + #[wasm_bindgen( + method, + structural, + js_class = "GetUserMediaRequest", + js_name = "getConstraints" + )] #[doc = "The `getConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/getConstraints)"] diff --git a/crates/web-sys/src/features/gen_Gpu.rs b/crates/web-sys/src/features/gen_Gpu.rs index bb48e073bec..75f0b91af7c 100644 --- a/crates/web-sys/src/features/gen_Gpu.rs +++ b/crates/web-sys/src/features/gen_Gpu.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPU , typescript_type = "GPU")] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPU", typescript_type = "GPU")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Gpu` class."] #[doc = ""] @@ -16,7 +16,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Gpu; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] + #[wasm_bindgen(method, structural, js_class = "GPU", js_name = "requestAdapter")] #[doc = "The `requestAdapter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] @@ -28,7 +28,7 @@ extern "C" { pub fn request_adapter(this: &Gpu) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRequestAdapterOptions")] - # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] + #[wasm_bindgen(method, structural, js_class = "GPU", js_name = "requestAdapter")] #[doc = "The `requestAdapter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] diff --git a/crates/web-sys/src/features/gen_GpuAdapter.rs b/crates/web-sys/src/features/gen_GpuAdapter.rs index 2700e02b360..7feea53d268 100644 --- a/crates/web-sys/src/features/gen_GpuAdapter.rs +++ b/crates/web-sys/src/features/gen_GpuAdapter.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUAdapter , typescript_type = "GPUAdapter")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUAdapter", + typescript_type = "GPUAdapter" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuAdapter` class."] #[doc = ""] @@ -16,7 +20,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuAdapter; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUAdapter", 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/GPUAdapter/name)"] @@ -28,7 +32,13 @@ extern "C" { pub fn name(this: &GpuAdapter) -> String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedFeatures")] - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = features)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUAdapter", + js_name = "features" + )] #[doc = "Getter for the `features` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/features)"] @@ -40,7 +50,13 @@ extern "C" { pub fn features(this: &GpuAdapter) -> GpuSupportedFeatures; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedLimits")] - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = limits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUAdapter", + js_name = "limits" + )] #[doc = "Getter for the `limits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/limits)"] @@ -51,7 +67,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn limits(this: &GpuAdapter) -> GpuSupportedLimits; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = isSoftware)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUAdapter", + js_name = "isSoftware" + )] #[doc = "Getter for the `isSoftware` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/isSoftware)"] @@ -62,7 +84,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_software(this: &GpuAdapter) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)] + #[wasm_bindgen(method, structural, js_class = "GPUAdapter", js_name = "requestDevice")] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestDevice)"] @@ -74,7 +96,7 @@ extern "C" { pub fn request_device(this: &GpuAdapter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDeviceDescriptor")] - # [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)] + #[wasm_bindgen(method, structural, js_class = "GPUAdapter", js_name = "requestDevice")] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestDevice)"] diff --git a/crates/web-sys/src/features/gen_GpuBindGroup.rs b/crates/web-sys/src/features/gen_GpuBindGroup.rs index e235001a313..d0640d403a6 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroup.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroup.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroup , typescript_type = "GPUBindGroup")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUBindGroup", + typescript_type = "GPUBindGroup" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroup` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroup; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroup" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUBindGroup", + 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/GPUBindGroup/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroup) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroup" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUBindGroup", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup/label)"] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs b/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs index 528a40a46e6..458dab87544 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupEntry.rs b/crates/web-sys/src/features/gen_GpuBindGroupEntry.rs index 72c7de2ac6a..467bf594748 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupEntry.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupEntry.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupEntry` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs index d60a2b399df..6842e513a70 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayout , typescript_type = "GPUBindGroupLayout")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUBindGroupLayout", + typescript_type = "GPUBindGroupLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayout` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupLayout; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroupLayout" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUBindGroupLayout", + 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/GPUBindGroupLayout/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroupLayout) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroupLayout" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUBindGroupLayout", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout/label)"] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs index 0a67dc1bded..f00c99a0f6f 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupLayoutDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayoutDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayoutEntry.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayoutEntry.rs index 94e04dc429b..0c4781ed254 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupLayoutEntry.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayoutEntry.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBindGroupLayoutEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayoutEntry` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBlendComponent.rs b/crates/web-sys/src/features/gen_GpuBlendComponent.rs index ed62e7dcbf4..33881b190c2 100644 --- a/crates/web-sys/src/features/gen_GpuBlendComponent.rs +++ b/crates/web-sys/src/features/gen_GpuBlendComponent.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBlendComponent)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBlendComponent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBlendComponent` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBlendState.rs b/crates/web-sys/src/features/gen_GpuBlendState.rs index 3d9204ae7e0..77e7c9fad87 100644 --- a/crates/web-sys/src/features/gen_GpuBlendState.rs +++ b/crates/web-sys/src/features/gen_GpuBlendState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBlendState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBlendState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBlendState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBuffer.rs b/crates/web-sys/src/features/gen_GpuBuffer.rs index 046b43ff04f..5567f6ba9bc 100644 --- a/crates/web-sys/src/features/gen_GpuBuffer.rs +++ b/crates/web-sys/src/features/gen_GpuBuffer.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBuffer , typescript_type = "GPUBuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUBuffer", + typescript_type = "GPUBuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBuffer` class."] #[doc = ""] @@ -16,7 +20,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = label)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUBuffer", 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/GPUBuffer/label)"] @@ -27,7 +31,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBuffer) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUBuffer" , js_name = label)] + #[wasm_bindgen(structural, method, setter, js_class = "GPUBuffer", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/label)"] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBuffer, value: Option<&str>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = destroy)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "destroy")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/destroy)"] @@ -49,7 +53,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuBuffer); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -60,7 +64,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range(this: &GpuBuffer) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -71,7 +75,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_u32(this: &GpuBuffer, offset: u32) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -82,7 +86,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_f64(this: &GpuBuffer, offset: f64) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -97,7 +101,7 @@ extern "C" { size: u32, ) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -112,7 +116,7 @@ extern "C" { size: u32, ) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -127,7 +131,7 @@ extern "C" { size: f64, ) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "getMappedRange")] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] @@ -142,7 +146,7 @@ extern "C" { size: f64, ) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -153,7 +157,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async(this: &GpuBuffer, mode: u32) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -164,7 +168,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_u32(this: &GpuBuffer, mode: u32, offset: u32) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -175,7 +179,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_f64(this: &GpuBuffer, mode: u32, offset: f64) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -191,7 +195,7 @@ extern "C" { size: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -207,7 +211,7 @@ extern "C" { size: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -223,7 +227,7 @@ extern "C" { size: f64, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "mapAsync")] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] @@ -239,7 +243,7 @@ extern "C" { size: f64, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = unmap)] + #[wasm_bindgen(method, structural, js_class = "GPUBuffer", js_name = "unmap")] #[doc = "The `unmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/unmap)"] diff --git a/crates/web-sys/src/features/gen_GpuBufferBinding.rs b/crates/web-sys/src/features/gen_GpuBufferBinding.rs index 0e0c8904746..1707c8a9875 100644 --- a/crates/web-sys/src/features/gen_GpuBufferBinding.rs +++ b/crates/web-sys/src/features/gen_GpuBufferBinding.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferBinding)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBufferBinding")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferBinding` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBufferBindingLayout.rs b/crates/web-sys/src/features/gen_GpuBufferBindingLayout.rs index e722860d620..4181350f57d 100644 --- a/crates/web-sys/src/features/gen_GpuBufferBindingLayout.rs +++ b/crates/web-sys/src/features/gen_GpuBufferBindingLayout.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferBindingLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBufferBindingLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferBindingLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs b/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs index cc677ecb5e9..1982332cbc1 100644 --- a/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUBufferDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBufferUsage.rs b/crates/web-sys/src/features/gen_GpuBufferUsage.rs index 313d5730b18..d27ea92d5bf 100644 --- a/crates/web-sys/src/features/gen_GpuBufferUsage.rs +++ b/crates/web-sys/src/features/gen_GpuBufferUsage.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferUsage , typescript_type = "GPUBufferUsage")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUBufferUsage", + typescript_type = "GPUBufferUsage" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferUsage` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCanvasConfiguration.rs b/crates/web-sys/src/features/gen_GpuCanvasConfiguration.rs index ec51cbc692d..4666ac64301 100644 --- a/crates/web-sys/src/features/gen_GpuCanvasConfiguration.rs +++ b/crates/web-sys/src/features/gen_GpuCanvasConfiguration.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCanvasConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCanvasContext.rs b/crates/web-sys/src/features/gen_GpuCanvasContext.rs index 3fa41f7297b..0f45b34058a 100644 --- a/crates/web-sys/src/features/gen_GpuCanvasContext.rs +++ b/crates/web-sys/src/features/gen_GpuCanvasContext.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasContext , typescript_type = "GPUCanvasContext")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCanvasContext", + typescript_type = "GPUCanvasContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasContext` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCanvasContext; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCanvasContext" , js_name = canvas)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCanvasContext", + js_name = "canvas" + )] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/canvas)"] @@ -28,7 +38,12 @@ extern "C" { pub fn canvas(this: &GpuCanvasContext) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasConfiguration")] - # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = configure)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCanvasContext", + js_name = "configure" + )] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/configure)"] @@ -40,7 +55,12 @@ extern "C" { pub fn configure(this: &GpuCanvasContext, configuration: &GpuCanvasConfiguration); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] - # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = getCurrentTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCanvasContext", + js_name = "getCurrentTexture" + )] #[doc = "The `getCurrentTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getCurrentTexture)"] @@ -52,7 +72,12 @@ extern "C" { pub fn get_current_texture(this: &GpuCanvasContext) -> GpuTexture; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuAdapter", feature = "GpuTextureFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = getPreferredFormat)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCanvasContext", + js_name = "getPreferredFormat" + )] #[doc = "The `getPreferredFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getPreferredFormat)"] @@ -63,7 +88,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_preferred_format(this: &GpuCanvasContext, adapter: &GpuAdapter) -> GpuTextureFormat; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = unconfigure)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCanvasContext", + js_name = "unconfigure" + )] #[doc = "The `unconfigure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/unconfigure)"] diff --git a/crates/web-sys/src/features/gen_GpuColorDict.rs b/crates/web-sys/src/features/gen_GpuColorDict.rs index de5420ee5a1..a57474317f9 100644 --- a/crates/web-sys/src/features/gen_GpuColorDict.rs +++ b/crates/web-sys/src/features/gen_GpuColorDict.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUColorDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuColorTargetState.rs b/crates/web-sys/src/features/gen_GpuColorTargetState.rs index 2e910d7b6cb..2b363f7c712 100644 --- a/crates/web-sys/src/features/gen_GpuColorTargetState.rs +++ b/crates/web-sys/src/features/gen_GpuColorTargetState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorTargetState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUColorTargetState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorTargetState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuColorWrite.rs b/crates/web-sys/src/features/gen_GpuColorWrite.rs index 47b1571225a..cd4b1216283 100644 --- a/crates/web-sys/src/features/gen_GpuColorWrite.rs +++ b/crates/web-sys/src/features/gen_GpuColorWrite.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorWrite , typescript_type = "GPUColorWrite")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUColorWrite", + typescript_type = "GPUColorWrite" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorWrite` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCommandBuffer.rs b/crates/web-sys/src/features/gen_GpuCommandBuffer.rs index 5df42c67868..4ea5d245fd5 100644 --- a/crates/web-sys/src/features/gen_GpuCommandBuffer.rs +++ b/crates/web-sys/src/features/gen_GpuCommandBuffer.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandBuffer , typescript_type = "GPUCommandBuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCommandBuffer", + typescript_type = "GPUCommandBuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandBuffer` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandBuffer" , js_name = executionTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCommandBuffer", + js_name = "executionTime" + )] #[doc = "Getter for the `executionTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/executionTime)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn execution_time(this: &GpuCommandBuffer) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandBuffer" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCommandBuffer", + 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/GPUCommandBuffer/label)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandBuffer) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandBuffer" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUCommandBuffer", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/label)"] diff --git a/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs b/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs index c5fec9f8cf1..b5204322439 100644 --- a/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandBufferDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCommandBufferDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandBufferDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCommandEncoder.rs b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs index ac1e1b9959f..5bf5ba4aeff 100644 --- a/crates/web-sys/src/features/gen_GpuCommandEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandEncoder , typescript_type = "GPUCommandEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCommandEncoder", + typescript_type = "GPUCommandEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandEncoder` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandEncoder; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCommandEncoder", + 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/GPUCommandEncoder/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandEncoder) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUCommandEncoder", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"] @@ -39,7 +55,12 @@ extern "C" { pub fn set_label(this: &GpuCommandEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePassEncoder")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "beginComputePass" + )] #[doc = "The `beginComputePass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] @@ -54,7 +75,12 @@ extern "C" { feature = "GpuComputePassDescriptor", feature = "GpuComputePassEncoder", ))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "beginComputePass" + )] #[doc = "The `beginComputePass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] @@ -69,7 +95,12 @@ extern "C" { ) -> GpuComputePassEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuRenderPassDescriptor", feature = "GpuRenderPassEncoder",))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginRenderPass)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "beginRenderPass" + )] #[doc = "The `beginRenderPass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginRenderPass)"] @@ -84,7 +115,12 @@ extern "C" { ) -> GpuRenderPassEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -103,7 +139,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -122,7 +163,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -141,7 +187,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -160,7 +211,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -179,7 +235,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -198,7 +259,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -217,7 +283,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToBuffer" + )] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] @@ -236,7 +307,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToTexture" + )] #[doc = "The `copyBufferToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] @@ -257,7 +333,12 @@ extern "C" { feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture", ))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyBufferToTexture" + )] #[doc = "The `copyBufferToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] @@ -274,7 +355,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToBuffer" + )] #[doc = "The `copyTextureToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] @@ -295,7 +381,12 @@ extern "C" { feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture", ))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToBuffer" + )] #[doc = "The `copyTextureToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] @@ -312,7 +403,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuImageCopyTexture")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToTexture" + )] #[doc = "The `copyTextureToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] @@ -329,7 +425,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuImageCopyTexture",))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "copyTextureToTexture" + )] #[doc = "The `copyTextureToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] @@ -346,7 +447,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCommandBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)] + #[wasm_bindgen(method, structural, js_class = "GPUCommandEncoder", js_name = "finish")] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] @@ -358,7 +459,7 @@ extern "C" { pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuCommandBuffer", feature = "GpuCommandBufferDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)] + #[wasm_bindgen(method, structural, js_class = "GPUCommandEncoder", js_name = "finish")] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] @@ -372,7 +473,12 @@ extern "C" { descriptor: &GpuCommandBufferDescriptor, ) -> GpuCommandBuffer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "insertDebugMarker" + )] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/insertDebugMarker)"] @@ -383,7 +489,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "popDebugGroup" + )] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/popDebugGroup)"] @@ -394,7 +505,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuCommandEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "pushDebugGroup" + )] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/pushDebugGroup)"] @@ -406,7 +522,12 @@ extern "C" { pub fn push_debug_group(this: &GpuCommandEncoder, group_label: &str); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "resolveQuerySet" + )] #[doc = "The `resolveQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"] @@ -425,7 +546,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "resolveQuerySet" + )] #[doc = "The `resolveQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"] @@ -444,7 +570,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] - # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = writeTimestamp)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUCommandEncoder", + js_name = "writeTimestamp" + )] #[doc = "The `writeTimestamp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/writeTimestamp)"] diff --git a/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs b/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs index d2dc0af5067..ebc8658bbca 100644 --- a/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandEncoderDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUCommandEncoderDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandEncoderDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCompilationInfo.rs b/crates/web-sys/src/features/gen_GpuCompilationInfo.rs index 02974b61563..ec7f50e4ad1 100644 --- a/crates/web-sys/src/features/gen_GpuCompilationInfo.rs +++ b/crates/web-sys/src/features/gen_GpuCompilationInfo.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCompilationInfo , typescript_type = "GPUCompilationInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCompilationInfo", + typescript_type = "GPUCompilationInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCompilationInfo` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCompilationInfo; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationInfo" , js_name = messages)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCompilationInfo", + js_name = "messages" + )] #[doc = "Getter for the `messages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationInfo/messages)"] diff --git a/crates/web-sys/src/features/gen_GpuCompilationMessage.rs b/crates/web-sys/src/features/gen_GpuCompilationMessage.rs index 927a3c5459d..0e5feb37863 100644 --- a/crates/web-sys/src/features/gen_GpuCompilationMessage.rs +++ b/crates/web-sys/src/features/gen_GpuCompilationMessage.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCompilationMessage , typescript_type = "GPUCompilationMessage")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUCompilationMessage", + typescript_type = "GPUCompilationMessage" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCompilationMessage` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCompilationMessage; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCompilationMessage", + 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/GPUCompilationMessage/message)"] @@ -28,7 +38,13 @@ extern "C" { pub fn message(this: &GpuCompilationMessage) -> String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompilationMessageType")] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCompilationMessage", + 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/GPUCompilationMessage/type)"] @@ -39,7 +55,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &GpuCompilationMessage) -> GpuCompilationMessageType; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = lineNum)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCompilationMessage", + js_name = "lineNum" + )] #[doc = "Getter for the `lineNum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/lineNum)"] @@ -50,7 +72,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn line_num(this: &GpuCompilationMessage) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = linePos)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCompilationMessage", + js_name = "linePos" + )] #[doc = "Getter for the `linePos` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/linePos)"] @@ -61,7 +89,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn line_pos(this: &GpuCompilationMessage) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = offset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCompilationMessage", + js_name = "offset" + )] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/offset)"] @@ -72,7 +106,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn offset(this: &GpuCompilationMessage) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUCompilationMessage", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/length)"] diff --git a/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs b/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs index 9b1ccee18e3..0f58a3e3068 100644 --- a/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUComputePassDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs b/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs index 35ce98ae728..82391c78e10 100644 --- a/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassEncoder , typescript_type = "GPUComputePassEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUComputePassEncoder", + typescript_type = "GPUComputePassEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassEncoder` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePassEncoder; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePassEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUComputePassEncoder", + 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/GPUComputePassEncoder/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePassEncoder) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUComputePassEncoder", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"] @@ -39,7 +55,12 @@ extern "C" { pub fn set_label(this: &GpuComputePassEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = beginPipelineStatisticsQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "beginPipelineStatisticsQuery" + )] #[doc = "The `beginPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/beginPipelineStatisticsQuery)"] @@ -54,7 +75,12 @@ extern "C" { query_index: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "dispatch" + )] #[doc = "The `dispatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] @@ -65,7 +91,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch(this: &GpuComputePassEncoder, x: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "dispatch" + )] #[doc = "The `dispatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] @@ -76,7 +107,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_with_y(this: &GpuComputePassEncoder, x: u32, y: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "dispatch" + )] #[doc = "The `dispatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] @@ -88,7 +124,12 @@ extern "C" { pub fn dispatch_with_y_and_z(this: &GpuComputePassEncoder, x: u32, y: u32, z: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "dispatchIndirect" + )] #[doc = "The `dispatchIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"] @@ -104,7 +145,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "dispatchIndirect" + )] #[doc = "The `dispatchIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"] @@ -119,7 +165,12 @@ extern "C" { indirect_offset: f64, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = endPass)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "endPass" + )] #[doc = "The `endPass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPass)"] @@ -130,7 +181,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_pass(this: &GpuComputePassEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = endPipelineStatisticsQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "endPipelineStatisticsQuery" + )] #[doc = "The `endPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPipelineStatisticsQuery)"] @@ -142,7 +198,12 @@ extern "C" { pub fn end_pipeline_statistics_query(this: &GpuComputePassEncoder); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePipeline")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "setPipeline" + )] #[doc = "The `setPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setPipeline)"] @@ -154,7 +215,12 @@ extern "C" { pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = writeTimestamp)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "writeTimestamp" + )] #[doc = "The `writeTimestamp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/writeTimestamp)"] @@ -165,7 +231,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_timestamp(this: &GpuComputePassEncoder, query_set: &GpuQuerySet, query_index: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "insertDebugMarker" + )] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"] @@ -176,7 +247,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "popDebugGroup" + )] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"] @@ -187,7 +263,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuComputePassEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "pushDebugGroup" + )] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"] @@ -199,7 +280,12 @@ extern "C" { pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -211,7 +297,12 @@ extern "C" { pub fn set_bind_group(this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -228,7 +319,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] @@ -247,7 +343,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] diff --git a/crates/web-sys/src/features/gen_GpuComputePipeline.rs b/crates/web-sys/src/features/gen_GpuComputePipeline.rs index 452e4ee6f7e..d51f3e21f64 100644 --- a/crates/web-sys/src/features/gen_GpuComputePipeline.rs +++ b/crates/web-sys/src/features/gen_GpuComputePipeline.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePipeline , typescript_type = "GPUComputePipeline")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUComputePipeline", + typescript_type = "GPUComputePipeline" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePipeline` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePipeline; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePipeline" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUComputePipeline", + 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/GPUComputePipeline/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePipeline) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePipeline" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUComputePipeline", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/label)"] @@ -39,7 +55,12 @@ extern "C" { pub fn set_label(this: &GpuComputePipeline, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroupLayout")] - # [wasm_bindgen (method , structural , js_class = "GPUComputePipeline" , js_name = getBindGroupLayout)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUComputePipeline", + js_name = "getBindGroupLayout" + )] #[doc = "The `getBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/getBindGroupLayout)"] diff --git a/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs b/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs index 1f8e089bbe9..23a0b12dcb8 100644 --- a/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePipelineDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUComputePipelineDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePipelineDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuDepthStencilState.rs b/crates/web-sys/src/features/gen_GpuDepthStencilState.rs index cad23eadf68..4b5dc3ea935 100644 --- a/crates/web-sys/src/features/gen_GpuDepthStencilState.rs +++ b/crates/web-sys/src/features/gen_GpuDepthStencilState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDepthStencilState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUDepthStencilState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDepthStencilState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuDevice.rs b/crates/web-sys/src/features/gen_GpuDevice.rs index 536725265c1..e7048cf4e76 100644 --- a/crates/web-sys/src/features/gen_GpuDevice.rs +++ b/crates/web-sys/src/features/gen_GpuDevice.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = GPUDevice , typescript_type = "GPUDevice")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "GPUDevice", + typescript_type = "GPUDevice" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDevice` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type GpuDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedFeatures")] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = features)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUDevice", + js_name = "features" + )] #[doc = "Getter for the `features` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/features)"] @@ -29,7 +40,7 @@ extern "C" { pub fn features(this: &GpuDevice) -> GpuSupportedFeatures; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedLimits")] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = limits)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUDevice", js_name = "limits")] #[doc = "Getter for the `limits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/limits)"] @@ -41,7 +52,7 @@ extern "C" { pub fn limits(this: &GpuDevice) -> GpuSupportedLimits; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueue")] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = queue)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUDevice", js_name = "queue")] #[doc = "Getter for the `queue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/queue)"] @@ -52,7 +63,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn queue(this: &GpuDevice) -> GpuQueue; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = lost)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUDevice", js_name = "lost")] #[doc = "Getter for the `lost` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/lost)"] @@ -63,7 +74,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn lost(this: &GpuDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = onuncapturederror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUDevice", + js_name = "onuncapturederror" + )] #[doc = "Getter for the `onuncapturederror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] @@ -74,7 +91,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = onuncapturederror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUDevice", + js_name = "onuncapturederror" + )] #[doc = "Setter for the `onuncapturederror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] @@ -85,7 +108,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = label)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUDevice", 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/GPUDevice/label)"] @@ -96,7 +119,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuDevice) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)] + #[wasm_bindgen(structural, method, setter, js_class = "GPUDevice", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] @@ -108,7 +131,12 @@ extern "C" { pub fn set_label(this: &GpuDevice, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBindGroup", feature = "GpuBindGroupDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createBindGroup" + )] #[doc = "The `createBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroup)"] @@ -124,7 +152,12 @@ extern "C" { feature = "GpuBindGroupLayout", feature = "GpuBindGroupLayoutDescriptor", ))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroupLayout)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createBindGroupLayout" + )] #[doc = "The `createBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroupLayout)"] @@ -139,7 +172,7 @@ extern "C" { ) -> GpuBindGroupLayout; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuBufferDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "createBuffer")] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBuffer)"] @@ -151,7 +184,12 @@ extern "C" { pub fn create_buffer(this: &GpuDevice, descriptor: &GpuBufferDescriptor) -> GpuBuffer; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCommandEncoder")] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createCommandEncoder" + )] #[doc = "The `createCommandEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] @@ -163,7 +201,12 @@ extern "C" { pub fn create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuCommandEncoder", feature = "GpuCommandEncoderDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createCommandEncoder" + )] #[doc = "The `createCommandEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] @@ -181,7 +224,12 @@ extern "C" { feature = "GpuComputePipeline", feature = "GpuComputePipelineDescriptor", ))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipeline)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createComputePipeline" + )] #[doc = "The `createComputePipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipeline)"] @@ -196,7 +244,12 @@ extern "C" { ) -> GpuComputePipeline; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePipelineDescriptor")] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipelineAsync)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createComputePipelineAsync" + )] #[doc = "The `createComputePipelineAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipelineAsync)"] @@ -211,7 +264,12 @@ extern "C" { ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuPipelineLayout", feature = "GpuPipelineLayoutDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createPipelineLayout)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createPipelineLayout" + )] #[doc = "The `createPipelineLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createPipelineLayout)"] @@ -226,7 +284,7 @@ extern "C" { ) -> GpuPipelineLayout; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuQuerySet", feature = "GpuQuerySetDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createQuerySet)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "createQuerySet")] #[doc = "The `createQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createQuerySet)"] @@ -241,7 +299,12 @@ extern "C" { feature = "GpuRenderBundleEncoder", feature = "GpuRenderBundleEncoderDescriptor", ))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderBundleEncoder)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createRenderBundleEncoder" + )] #[doc = "The `createRenderBundleEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderBundleEncoder)"] @@ -256,7 +319,12 @@ extern "C" { ) -> GpuRenderBundleEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuRenderPipeline", feature = "GpuRenderPipelineDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipeline)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createRenderPipeline" + )] #[doc = "The `createRenderPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipeline)"] @@ -271,7 +339,12 @@ extern "C" { ) -> GpuRenderPipeline; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPipelineDescriptor")] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipelineAsync)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createRenderPipelineAsync" + )] #[doc = "The `createRenderPipelineAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipelineAsync)"] @@ -286,7 +359,7 @@ extern "C" { ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSampler")] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "createSampler")] #[doc = "The `createSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] @@ -298,7 +371,7 @@ extern "C" { pub fn create_sampler(this: &GpuDevice) -> GpuSampler; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuSampler", feature = "GpuSamplerDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "createSampler")] #[doc = "The `createSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] @@ -313,7 +386,12 @@ extern "C" { ) -> GpuSampler; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuShaderModule", feature = "GpuShaderModuleDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createShaderModule)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "createShaderModule" + )] #[doc = "The `createShaderModule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createShaderModule)"] @@ -328,7 +406,7 @@ extern "C" { ) -> GpuShaderModule; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuTexture", feature = "GpuTextureDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createTexture)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "createTexture")] #[doc = "The `createTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createTexture)"] @@ -339,7 +417,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_texture(this: &GpuDevice, descriptor: &GpuTextureDescriptor) -> GpuTexture; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = destroy)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "destroy")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/destroy)"] @@ -354,7 +432,12 @@ extern "C" { feature = "GpuExternalTexture", feature = "GpuExternalTextureDescriptor", ))] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = importExternalTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUDevice", + js_name = "importExternalTexture" + )] #[doc = "The `importExternalTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/importExternalTexture)"] @@ -368,7 +451,7 @@ extern "C" { descriptor: &GpuExternalTextureDescriptor, ) -> GpuExternalTexture; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = popErrorScope)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "popErrorScope")] #[doc = "The `popErrorScope()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/popErrorScope)"] @@ -380,7 +463,7 @@ extern "C" { pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuErrorFilter")] - # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = pushErrorScope)] + #[wasm_bindgen(method, structural, js_class = "GPUDevice", js_name = "pushErrorScope")] #[doc = "The `pushErrorScope()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/pushErrorScope)"] diff --git a/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs b/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs index 614b1104464..da8116c4274 100644 --- a/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDeviceDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUDeviceDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDeviceDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs b/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs index bcc59f58ebc..e61284e06da 100644 --- a/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs +++ b/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDeviceLostInfo , typescript_type = "GPUDeviceLostInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUDeviceLostInfo", + typescript_type = "GPUDeviceLostInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDeviceLostInfo` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDeviceLostInfo; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = reason)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUDeviceLostInfo", + js_name = "reason" + )] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/reason)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reason(this: &GpuDeviceLostInfo) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUDeviceLostInfo", + 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/GPUDeviceLostInfo/message)"] diff --git a/crates/web-sys/src/features/gen_GpuExtent3dDict.rs b/crates/web-sys/src/features/gen_GpuExtent3dDict.rs index 5d0c8aafa0c..698c0be733d 100644 --- a/crates/web-sys/src/features/gen_GpuExtent3dDict.rs +++ b/crates/web-sys/src/features/gen_GpuExtent3dDict.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExtent3DDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUExtent3DDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExtent3dDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuExternalTexture.rs b/crates/web-sys/src/features/gen_GpuExternalTexture.rs index 6142e8536cf..4870ff832b7 100644 --- a/crates/web-sys/src/features/gen_GpuExternalTexture.rs +++ b/crates/web-sys/src/features/gen_GpuExternalTexture.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTexture , typescript_type = "GPUExternalTexture")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUExternalTexture", + typescript_type = "GPUExternalTexture" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTexture` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExternalTexture; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUExternalTexture" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUExternalTexture", + 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/GPUExternalTexture/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuExternalTexture) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUExternalTexture" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUExternalTexture", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUExternalTexture/label)"] diff --git a/crates/web-sys/src/features/gen_GpuExternalTextureBindingLayout.rs b/crates/web-sys/src/features/gen_GpuExternalTextureBindingLayout.rs index d9d6071ca05..9b44e8c807f 100644 --- a/crates/web-sys/src/features/gen_GpuExternalTextureBindingLayout.rs +++ b/crates/web-sys/src/features/gen_GpuExternalTextureBindingLayout.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTextureBindingLayout)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUExternalTextureBindingLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTextureBindingLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs b/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs index 36f49b65dab..b13ce11745b 100644 --- a/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTextureDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUExternalTextureDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTextureDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuFragmentState.rs b/crates/web-sys/src/features/gen_GpuFragmentState.rs index 395df4ffdd3..a754bfd2c22 100644 --- a/crates/web-sys/src/features/gen_GpuFragmentState.rs +++ b/crates/web-sys/src/features/gen_GpuFragmentState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUFragmentState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUFragmentState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuFragmentState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuImageCopyBuffer.rs b/crates/web-sys/src/features/gen_GpuImageCopyBuffer.rs index 150bc9dcd39..eb3da59cec8 100644 --- a/crates/web-sys/src/features/gen_GpuImageCopyBuffer.rs +++ b/crates/web-sys/src/features/gen_GpuImageCopyBuffer.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyBuffer)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUImageCopyBuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyBuffer` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuImageCopyExternalImage.rs b/crates/web-sys/src/features/gen_GpuImageCopyExternalImage.rs index a381dd24781..8313ca27092 100644 --- a/crates/web-sys/src/features/gen_GpuImageCopyExternalImage.rs +++ b/crates/web-sys/src/features/gen_GpuImageCopyExternalImage.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyExternalImage)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUImageCopyExternalImage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyExternalImage` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuImageCopyTexture.rs b/crates/web-sys/src/features/gen_GpuImageCopyTexture.rs index 0e55fc2ccd1..5ea3a7a6718 100644 --- a/crates/web-sys/src/features/gen_GpuImageCopyTexture.rs +++ b/crates/web-sys/src/features/gen_GpuImageCopyTexture.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyTexture)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUImageCopyTexture")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyTexture` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuImageCopyTextureTagged.rs b/crates/web-sys/src/features/gen_GpuImageCopyTextureTagged.rs index 27e5a88317a..b4d88b913f6 100644 --- a/crates/web-sys/src/features/gen_GpuImageCopyTextureTagged.rs +++ b/crates/web-sys/src/features/gen_GpuImageCopyTextureTagged.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyTextureTagged)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUImageCopyTextureTagged")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyTextureTagged` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuImageDataLayout.rs b/crates/web-sys/src/features/gen_GpuImageDataLayout.rs index 80be6b07988..0c55e0b3bad 100644 --- a/crates/web-sys/src/features/gen_GpuImageDataLayout.rs +++ b/crates/web-sys/src/features/gen_GpuImageDataLayout.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageDataLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUImageDataLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageDataLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuMapMode.rs b/crates/web-sys/src/features/gen_GpuMapMode.rs index 7da1a45475b..d6243dbccc3 100644 --- a/crates/web-sys/src/features/gen_GpuMapMode.rs +++ b/crates/web-sys/src/features/gen_GpuMapMode.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUMapMode , typescript_type = "GPUMapMode")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUMapMode", + typescript_type = "GPUMapMode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuMapMode` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuMultisampleState.rs b/crates/web-sys/src/features/gen_GpuMultisampleState.rs index 1cb538ded9a..9bed312ba70 100644 --- a/crates/web-sys/src/features/gen_GpuMultisampleState.rs +++ b/crates/web-sys/src/features/gen_GpuMultisampleState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUMultisampleState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUMultisampleState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuMultisampleState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs b/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs index a8fe6844525..223e5bccfe5 100644 --- a/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs +++ b/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUObjectDescriptorBase)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUObjectDescriptorBase")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuObjectDescriptorBase` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuOrigin2dDict.rs b/crates/web-sys/src/features/gen_GpuOrigin2dDict.rs index 7e608ca1047..bfbdbbd18db 100644 --- a/crates/web-sys/src/features/gen_GpuOrigin2dDict.rs +++ b/crates/web-sys/src/features/gen_GpuOrigin2dDict.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOrigin2DDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUOrigin2DDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOrigin2dDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuOrigin3dDict.rs b/crates/web-sys/src/features/gen_GpuOrigin3dDict.rs index 6bc5fb63bd8..c9ef344c87e 100644 --- a/crates/web-sys/src/features/gen_GpuOrigin3dDict.rs +++ b/crates/web-sys/src/features/gen_GpuOrigin3dDict.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOrigin3DDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUOrigin3DDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOrigin3dDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuOutOfMemoryError.rs b/crates/web-sys/src/features/gen_GpuOutOfMemoryError.rs index d2628d32298..c10fc6575fe 100644 --- a/crates/web-sys/src/features/gen_GpuOutOfMemoryError.rs +++ b/crates/web-sys/src/features/gen_GpuOutOfMemoryError.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOutOfMemoryError , typescript_type = "GPUOutOfMemoryError")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUOutOfMemoryError", + typescript_type = "GPUOutOfMemoryError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOutOfMemoryError` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs b/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs index a1d2fdcfdcd..dff570ac8a2 100644 --- a/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs +++ b/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineDescriptorBase)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUPipelineDescriptorBase")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineDescriptorBase` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuPipelineLayout.rs b/crates/web-sys/src/features/gen_GpuPipelineLayout.rs index 4a9a2b7ac1f..89786f16cad 100644 --- a/crates/web-sys/src/features/gen_GpuPipelineLayout.rs +++ b/crates/web-sys/src/features/gen_GpuPipelineLayout.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineLayout , typescript_type = "GPUPipelineLayout")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUPipelineLayout", + typescript_type = "GPUPipelineLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineLayout` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineLayout; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUPipelineLayout" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUPipelineLayout", + 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/GPUPipelineLayout/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuPipelineLayout) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUPipelineLayout" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUPipelineLayout", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout/label)"] diff --git a/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs b/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs index 4e9b55e5f9c..0210da74ce1 100644 --- a/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineLayoutDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUPipelineLayoutDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineLayoutDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuPrimitiveState.rs b/crates/web-sys/src/features/gen_GpuPrimitiveState.rs index 36e89cdb8ae..0897798ae56 100644 --- a/crates/web-sys/src/features/gen_GpuPrimitiveState.rs +++ b/crates/web-sys/src/features/gen_GpuPrimitiveState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPrimitiveState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUPrimitiveState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPrimitiveState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuProgrammableStage.rs b/crates/web-sys/src/features/gen_GpuProgrammableStage.rs index cf569c1e4ea..53a57df746c 100644 --- a/crates/web-sys/src/features/gen_GpuProgrammableStage.rs +++ b/crates/web-sys/src/features/gen_GpuProgrammableStage.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUProgrammableStage)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUProgrammableStage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuProgrammableStage` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuQuerySet.rs b/crates/web-sys/src/features/gen_GpuQuerySet.rs index da2a4141fcc..6c5c86e093f 100644 --- a/crates/web-sys/src/features/gen_GpuQuerySet.rs +++ b/crates/web-sys/src/features/gen_GpuQuerySet.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQuerySet , typescript_type = "GPUQuerySet")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUQuerySet", + typescript_type = "GPUQuerySet" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQuerySet` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQuerySet; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUQuerySet", + 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/GPUQuerySet/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQuerySet) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUQuerySet" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUQuerySet", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/label)"] @@ -38,7 +54,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuQuerySet, value: Option<&str>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUQuerySet" , js_name = destroy)] + #[wasm_bindgen(method, structural, js_class = "GPUQuerySet", js_name = "destroy")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/destroy)"] diff --git a/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs b/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs index eca1a478427..a4673aa880a 100644 --- a/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQuerySetDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUQuerySetDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQuerySetDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuQueue.rs b/crates/web-sys/src/features/gen_GpuQueue.rs index 8e6668bf111..05dbc2cc8b3 100644 --- a/crates/web-sys/src/features/gen_GpuQueue.rs +++ b/crates/web-sys/src/features/gen_GpuQueue.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQueue , typescript_type = "GPUQueue")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUQueue", + typescript_type = "GPUQueue" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQueue` class."] #[doc = ""] @@ -16,7 +20,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQueue; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUQueue" , js_name = label)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUQueue", 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/GPUQueue/label)"] @@ -27,7 +31,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQueue) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUQueue" , js_name = label)] + #[wasm_bindgen(structural, method, setter, js_class = "GPUQueue", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"] @@ -42,7 +46,12 @@ extern "C" { feature = "GpuImageCopyExternalImage", feature = "GpuImageCopyTextureTagged", ))] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUQueue", + js_name = "copyExternalImageToTexture" + )] #[doc = "The `copyExternalImageToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"] @@ -63,7 +72,12 @@ extern "C" { feature = "GpuImageCopyExternalImage", feature = "GpuImageCopyTextureTagged", ))] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUQueue", + js_name = "copyExternalImageToTexture" + )] #[doc = "The `copyExternalImageToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"] @@ -79,7 +93,12 @@ extern "C" { copy_size: &GpuExtent3dDict, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = onSubmittedWorkDone)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUQueue", + js_name = "onSubmittedWorkDone" + )] #[doc = "The `onSubmittedWorkDone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/onSubmittedWorkDone)"] @@ -90,7 +109,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn on_submitted_work_done(this: &GpuQueue) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = submit)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "submit")] #[doc = "The `submit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/submit)"] @@ -102,7 +121,7 @@ extern "C" { pub fn submit(this: &GpuQueue, command_buffers: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -119,7 +138,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -136,7 +155,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -153,7 +172,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -170,7 +189,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -188,7 +207,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -206,7 +225,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -224,7 +243,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -242,7 +261,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -260,7 +279,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -278,7 +297,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -296,7 +315,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -314,7 +333,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -333,7 +352,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -352,7 +371,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -371,7 +390,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -390,7 +409,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -409,7 +428,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -428,7 +447,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -447,7 +466,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -466,7 +485,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -485,7 +504,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -504,7 +523,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -523,7 +542,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -542,7 +561,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -561,7 +580,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -580,7 +599,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -599,7 +618,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeBuffer")] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] @@ -618,7 +637,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -636,7 +655,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -658,7 +677,7 @@ extern "C" { feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout", ))] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] @@ -680,7 +699,7 @@ extern "C" { feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout", ))] - # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)] + #[wasm_bindgen(method, structural, js_class = "GPUQueue", js_name = "writeTexture")] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundle.rs b/crates/web-sys/src/features/gen_GpuRenderBundle.rs index 7ef770ae428..bf44c34f7d3 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundle.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundle.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundle , typescript_type = "GPURenderBundle")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderBundle", + typescript_type = "GPURenderBundle" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundle` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundle; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundle" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPURenderBundle", + 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/GPURenderBundle/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundle) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundle" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPURenderBundle", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle/label)"] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs index 22ef82ce854..5f90ceed0c0 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderBundleDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs b/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs index 7eba9a2fb39..08b038890f5 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleEncoder , typescript_type = "GPURenderBundleEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderBundleEncoder", + typescript_type = "GPURenderBundleEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleEncoder` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundleEncoder; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundleEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPURenderBundleEncoder", + 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/GPURenderBundleEncoder/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundleEncoder) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPURenderBundleEncoder", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"] @@ -39,7 +55,12 @@ extern "C" { pub fn set_label(this: &GpuRenderBundleEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderBundle")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "finish" + )] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] @@ -51,7 +72,12 @@ extern "C" { pub fn finish(this: &GpuRenderBundleEncoder) -> GpuRenderBundle; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuRenderBundle", feature = "GpuRenderBundleDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "finish" + )] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] @@ -65,7 +91,12 @@ extern "C" { descriptor: &GpuRenderBundleDescriptor, ) -> GpuRenderBundle; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "insertDebugMarker" + )] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/insertDebugMarker)"] @@ -76,7 +107,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuRenderBundleEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "popDebugGroup" + )] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/popDebugGroup)"] @@ -87,7 +123,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuRenderBundleEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "pushDebugGroup" + )] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/pushDebugGroup)"] @@ -99,7 +140,12 @@ extern "C" { pub fn push_debug_group(this: &GpuRenderBundleEncoder, group_label: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -111,7 +157,12 @@ extern "C" { pub fn set_bind_group(this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -128,7 +179,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -147,7 +203,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] @@ -165,7 +226,12 @@ extern "C" { dynamic_offsets_data_length: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -176,7 +242,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderBundleEncoder, vertex_count: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -191,7 +262,12 @@ extern "C" { instance_count: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -207,7 +283,12 @@ extern "C" { first_vertex: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] @@ -224,7 +305,12 @@ extern "C" { first_instance: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -235,7 +321,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed(this: &GpuRenderBundleEncoder, index_count: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -250,7 +341,12 @@ extern "C" { instance_count: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -266,7 +362,12 @@ extern "C" { first_index: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -283,7 +384,12 @@ extern "C" { base_vertex: i32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] @@ -302,7 +408,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"] @@ -318,7 +429,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"] @@ -334,7 +450,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndirect" + )] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] @@ -350,7 +471,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "drawIndirect" + )] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] @@ -366,7 +492,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -382,7 +513,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -399,7 +535,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -416,7 +557,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -434,7 +580,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -452,7 +603,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -470,7 +626,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] @@ -488,7 +649,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPipeline")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setPipeline)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setPipeline" + )] #[doc = "The `setPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setPipeline)"] @@ -500,7 +666,12 @@ extern "C" { pub fn set_pipeline(this: &GpuRenderBundleEncoder, pipeline: &GpuRenderPipeline); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -512,7 +683,12 @@ extern "C" { pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -529,7 +705,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -546,7 +727,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -564,7 +750,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -582,7 +773,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] @@ -600,7 +796,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderBundleEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs index d120becc516..f7b65174300 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleEncoderDescriptor)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderBundleEncoderDescriptor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleEncoderDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassColorAttachment.rs b/crates/web-sys/src/features/gen_GpuRenderPassColorAttachment.rs index aa05089c5b7..1fbfd93c57b 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassColorAttachment.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassColorAttachment.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassColorAttachment)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPassColorAttachment")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassColorAttachment` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassDepthStencilAttachment.rs b/crates/web-sys/src/features/gen_GpuRenderPassDepthStencilAttachment.rs index 83fbe10bc90..0ff3b5d2437 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassDepthStencilAttachment.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassDepthStencilAttachment.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassDepthStencilAttachment)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderPassDepthStencilAttachment" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassDepthStencilAttachment` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs index 1228090a1ba..665eb0dd5f3 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPassDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs b/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs index 3ae8e1f994f..6b0fcde9200 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassEncoder , typescript_type = "GPURenderPassEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderPassEncoder", + typescript_type = "GPURenderPassEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassEncoder` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassEncoder; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPassEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPURenderPassEncoder", + 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/GPURenderPassEncoder/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPassEncoder) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPURenderPassEncoder", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"] @@ -38,7 +54,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderPassEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginOcclusionQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "beginOcclusionQuery" + )] #[doc = "The `beginOcclusionQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)"] @@ -50,7 +71,12 @@ extern "C" { pub fn begin_occlusion_query(this: &GpuRenderPassEncoder, query_index: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginPipelineStatisticsQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "beginPipelineStatisticsQuery" + )] #[doc = "The `beginPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/beginPipelineStatisticsQuery)"] @@ -65,7 +91,12 @@ extern "C" { query_index: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endOcclusionQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "endOcclusionQuery" + )] #[doc = "The `endOcclusionQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)"] @@ -76,7 +107,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_occlusion_query(this: &GpuRenderPassEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endPass)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "endPass" + )] #[doc = "The `endPass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endPass)"] @@ -87,7 +123,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_pass(this: &GpuRenderPassEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endPipelineStatisticsQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "endPipelineStatisticsQuery" + )] #[doc = "The `endPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endPipelineStatisticsQuery)"] @@ -98,7 +139,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_pipeline_statistics_query(this: &GpuRenderPassEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = executeBundles)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "executeBundles" + )] #[doc = "The `executeBundles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/executeBundles)"] @@ -109,7 +155,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setBlendConstant" + )] #[doc = "The `setBlendConstant()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"] @@ -124,7 +175,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuColorDict")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setBlendConstant" + )] #[doc = "The `setBlendConstant()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"] @@ -138,7 +194,12 @@ extern "C" { color: &GpuColorDict, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setScissorRect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setScissorRect" + )] #[doc = "The `setScissorRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setScissorRect)"] @@ -149,7 +210,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_scissor_rect(this: &GpuRenderPassEncoder, x: u32, y: u32, width: u32, height: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setStencilReference)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setStencilReference" + )] #[doc = "The `setStencilReference()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setStencilReference)"] @@ -160,7 +226,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_stencil_reference(this: &GpuRenderPassEncoder, reference: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setViewport)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setViewport" + )] #[doc = "The `setViewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setViewport)"] @@ -180,7 +251,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = writeTimestamp)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "writeTimestamp" + )] #[doc = "The `writeTimestamp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/writeTimestamp)"] @@ -191,7 +267,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_timestamp(this: &GpuRenderPassEncoder, query_set: &GpuQuerySet, query_index: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = insertDebugMarker)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "insertDebugMarker" + )] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/insertDebugMarker)"] @@ -202,7 +283,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuRenderPassEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = popDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "popDebugGroup" + )] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/popDebugGroup)"] @@ -213,7 +299,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuRenderPassEncoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = pushDebugGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "pushDebugGroup" + )] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/pushDebugGroup)"] @@ -225,7 +316,12 @@ extern "C" { pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -237,7 +333,12 @@ extern "C" { pub fn set_bind_group(this: &GpuRenderPassEncoder, index: u32, bind_group: &GpuBindGroup); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -254,7 +355,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -273,7 +379,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setBindGroup" + )] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] @@ -291,7 +402,12 @@ extern "C" { dynamic_offsets_data_length: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -302,7 +418,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderPassEncoder, vertex_count: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -317,7 +438,12 @@ extern "C" { instance_count: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -333,7 +459,12 @@ extern "C" { first_vertex: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "draw" + )] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] @@ -350,7 +481,12 @@ extern "C" { first_instance: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -361,7 +497,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed(this: &GpuRenderPassEncoder, index_count: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -376,7 +517,12 @@ extern "C" { instance_count: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -392,7 +538,12 @@ extern "C" { first_index: u32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -409,7 +560,12 @@ extern "C" { base_vertex: i32, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexed" + )] #[doc = "The `drawIndexed()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] @@ -428,7 +584,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"] @@ -444,7 +605,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndexedIndirect" + )] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"] @@ -460,7 +626,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndirect" + )] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] @@ -476,7 +647,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "drawIndirect" + )] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] @@ -492,7 +668,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -508,7 +689,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -525,7 +711,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -542,7 +733,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -560,7 +756,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -578,7 +779,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -596,7 +802,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setIndexBuffer" + )] #[doc = "The `setIndexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] @@ -614,7 +825,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPipeline")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setPipeline)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setPipeline" + )] #[doc = "The `setPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setPipeline)"] @@ -626,7 +842,12 @@ extern "C" { pub fn set_pipeline(this: &GpuRenderPassEncoder, pipeline: &GpuRenderPipeline); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -638,7 +859,12 @@ extern "C" { pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: &GpuBuffer); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -655,7 +881,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -672,7 +903,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -690,7 +926,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -708,7 +949,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] @@ -726,7 +972,12 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPassEncoder", + js_name = "setVertexBuffer" + )] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs b/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs index f583d10b341..1465d6438ba 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPassLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPipeline.rs b/crates/web-sys/src/features/gen_GpuRenderPipeline.rs index c9541566809..312312531ef 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPipeline.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPipeline.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPipeline , typescript_type = "GPURenderPipeline")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPURenderPipeline", + typescript_type = "GPURenderPipeline" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPipeline` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPipeline; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPipeline" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPURenderPipeline", + 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/GPURenderPipeline/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPipeline) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPipeline" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPURenderPipeline", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/label)"] @@ -39,7 +55,12 @@ extern "C" { pub fn set_label(this: &GpuRenderPipeline, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroupLayout")] - # [wasm_bindgen (method , structural , js_class = "GPURenderPipeline" , js_name = getBindGroupLayout)] + #[wasm_bindgen( + method, + structural, + js_class = "GPURenderPipeline", + js_name = "getBindGroupLayout" + )] #[doc = "The `getBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/getBindGroupLayout)"] diff --git a/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs index fcd35bbc57d..6a418f7e9bc 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPipelineDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURenderPipelineDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPipelineDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs index feb52b795b9..662c0dcdd56 100644 --- a/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs +++ b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURequestAdapterOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPURequestAdapterOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRequestAdapterOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuSampler.rs b/crates/web-sys/src/features/gen_GpuSampler.rs index 42e389470ec..816aff26cb0 100644 --- a/crates/web-sys/src/features/gen_GpuSampler.rs +++ b/crates/web-sys/src/features/gen_GpuSampler.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSampler , typescript_type = "GPUSampler")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUSampler", + typescript_type = "GPUSampler" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSampler` class."] #[doc = ""] @@ -16,7 +20,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSampler; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSampler" , js_name = label)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUSampler", 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/GPUSampler/label)"] @@ -27,7 +31,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuSampler) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUSampler" , js_name = label)] + #[wasm_bindgen(structural, method, setter, js_class = "GPUSampler", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler/label)"] diff --git a/crates/web-sys/src/features/gen_GpuSamplerBindingLayout.rs b/crates/web-sys/src/features/gen_GpuSamplerBindingLayout.rs index aba8ea665c2..553983746b7 100644 --- a/crates/web-sys/src/features/gen_GpuSamplerBindingLayout.rs +++ b/crates/web-sys/src/features/gen_GpuSamplerBindingLayout.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSamplerBindingLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUSamplerBindingLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSamplerBindingLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs b/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs index 90f100f0905..ad781ab2fa7 100644 --- a/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSamplerDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUSamplerDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSamplerDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuShaderModule.rs b/crates/web-sys/src/features/gen_GpuShaderModule.rs index 7e35f25ecc4..158e2beada5 100644 --- a/crates/web-sys/src/features/gen_GpuShaderModule.rs +++ b/crates/web-sys/src/features/gen_GpuShaderModule.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModule , typescript_type = "GPUShaderModule")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUShaderModule", + typescript_type = "GPUShaderModule" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModule` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuShaderModule; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUShaderModule" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUShaderModule", + 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/GPUShaderModule/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuShaderModule) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUShaderModule" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUShaderModule", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"] @@ -38,7 +54,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuShaderModule, value: Option<&str>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUShaderModule" , js_name = compilationInfo)] + #[wasm_bindgen( + method, + structural, + js_class = "GPUShaderModule", + js_name = "compilationInfo" + )] #[doc = "The `compilationInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/compilationInfo)"] diff --git a/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs b/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs index fcf1c978412..4af2871f2e1 100644 --- a/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModuleDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUShaderModuleDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModuleDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuShaderStage.rs b/crates/web-sys/src/features/gen_GpuShaderStage.rs index f9b2538c119..82558fedc43 100644 --- a/crates/web-sys/src/features/gen_GpuShaderStage.rs +++ b/crates/web-sys/src/features/gen_GpuShaderStage.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderStage , typescript_type = "GPUShaderStage")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUShaderStage", + typescript_type = "GPUShaderStage" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderStage` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuStencilFaceState.rs b/crates/web-sys/src/features/gen_GpuStencilFaceState.rs index 80b4e521203..780a5886379 100644 --- a/crates/web-sys/src/features/gen_GpuStencilFaceState.rs +++ b/crates/web-sys/src/features/gen_GpuStencilFaceState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUStencilFaceState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUStencilFaceState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuStencilFaceState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuStorageTextureBindingLayout.rs b/crates/web-sys/src/features/gen_GpuStorageTextureBindingLayout.rs index 90555a09b36..13f0ba4891d 100644 --- a/crates/web-sys/src/features/gen_GpuStorageTextureBindingLayout.rs +++ b/crates/web-sys/src/features/gen_GpuStorageTextureBindingLayout.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUStorageTextureBindingLayout)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUStorageTextureBindingLayout" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuStorageTextureBindingLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuSupportedFeatures.rs b/crates/web-sys/src/features/gen_GpuSupportedFeatures.rs index da11a61c5cd..842b742660f 100644 --- a/crates/web-sys/src/features/gen_GpuSupportedFeatures.rs +++ b/crates/web-sys/src/features/gen_GpuSupportedFeatures.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSupportedFeatures , typescript_type = "GPUSupportedFeatures")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUSupportedFeatures", + typescript_type = "GPUSupportedFeatures" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSupportedFeatures` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuSupportedLimits.rs b/crates/web-sys/src/features/gen_GpuSupportedLimits.rs index 78c14a15f16..81f4c7e38a7 100644 --- a/crates/web-sys/src/features/gen_GpuSupportedLimits.rs +++ b/crates/web-sys/src/features/gen_GpuSupportedLimits.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSupportedLimits , typescript_type = "GPUSupportedLimits")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUSupportedLimits", + typescript_type = "GPUSupportedLimits" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSupportedLimits` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSupportedLimits; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension1D)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureDimension1D" + )] #[doc = "Getter for the `maxTextureDimension1D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension1D)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_1d(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension2D)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureDimension2D" + )] #[doc = "Getter for the `maxTextureDimension2D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension2D)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_2d(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension3D)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureDimension3D" + )] #[doc = "Getter for the `maxTextureDimension3D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension3D)"] @@ -49,7 +71,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_3d(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureArrayLayers)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxTextureArrayLayers" + )] #[doc = "Getter for the `maxTextureArrayLayers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureArrayLayers)"] @@ -60,7 +88,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_array_layers(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindGroups)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxBindGroups" + )] #[doc = "Getter for the `maxBindGroups` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindGroups)"] @@ -71,7 +105,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_bind_groups(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxDynamicUniformBuffersPerPipelineLayout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxDynamicUniformBuffersPerPipelineLayout" + )] #[doc = "Getter for the `maxDynamicUniformBuffersPerPipelineLayout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxDynamicUniformBuffersPerPipelineLayout)"] @@ -82,7 +122,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_dynamic_uniform_buffers_per_pipeline_layout(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxDynamicStorageBuffersPerPipelineLayout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxDynamicStorageBuffersPerPipelineLayout" + )] #[doc = "Getter for the `maxDynamicStorageBuffersPerPipelineLayout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxDynamicStorageBuffersPerPipelineLayout)"] @@ -93,7 +139,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_dynamic_storage_buffers_per_pipeline_layout(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxSampledTexturesPerShaderStage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxSampledTexturesPerShaderStage" + )] #[doc = "Getter for the `maxSampledTexturesPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxSampledTexturesPerShaderStage)"] @@ -104,7 +156,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_sampled_textures_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxSamplersPerShaderStage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxSamplersPerShaderStage" + )] #[doc = "Getter for the `maxSamplersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxSamplersPerShaderStage)"] @@ -115,7 +173,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_samplers_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBuffersPerShaderStage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageBuffersPerShaderStage" + )] #[doc = "Getter for the `maxStorageBuffersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBuffersPerShaderStage)"] @@ -126,7 +190,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffers_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageTexturesPerShaderStage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageTexturesPerShaderStage" + )] #[doc = "Getter for the `maxStorageTexturesPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageTexturesPerShaderStage)"] @@ -137,7 +207,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_textures_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxUniformBuffersPerShaderStage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxUniformBuffersPerShaderStage" + )] #[doc = "Getter for the `maxUniformBuffersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxUniformBuffersPerShaderStage)"] @@ -148,7 +224,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_uniform_buffers_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxUniformBufferBindingSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxUniformBufferBindingSize" + )] #[doc = "Getter for the `maxUniformBufferBindingSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxUniformBufferBindingSize)"] @@ -159,7 +241,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_uniform_buffer_binding_size(this: &GpuSupportedLimits) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBufferBindingSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxStorageBufferBindingSize" + )] #[doc = "Getter for the `maxStorageBufferBindingSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBufferBindingSize)"] @@ -170,7 +258,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffer_binding_size(this: &GpuSupportedLimits) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = minUniformBufferOffsetAlignment)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "minUniformBufferOffsetAlignment" + )] #[doc = "Getter for the `minUniformBufferOffsetAlignment` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/minUniformBufferOffsetAlignment)"] @@ -181,7 +275,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_uniform_buffer_offset_alignment(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = minStorageBufferOffsetAlignment)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "minStorageBufferOffsetAlignment" + )] #[doc = "Getter for the `minStorageBufferOffsetAlignment` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/minStorageBufferOffsetAlignment)"] @@ -192,7 +292,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_storage_buffer_offset_alignment(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexBuffers)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxVertexBuffers" + )] #[doc = "Getter for the `maxVertexBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexBuffers)"] @@ -203,7 +309,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_buffers(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexAttributes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxVertexAttributes" + )] #[doc = "Getter for the `maxVertexAttributes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexAttributes)"] @@ -214,7 +326,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_attributes(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexBufferArrayStride)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxVertexBufferArrayStride" + )] #[doc = "Getter for the `maxVertexBufferArrayStride` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexBufferArrayStride)"] @@ -225,7 +343,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_buffer_array_stride(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxInterStageShaderComponents)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxInterStageShaderComponents" + )] #[doc = "Getter for the `maxInterStageShaderComponents` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxInterStageShaderComponents)"] @@ -236,7 +360,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_inter_stage_shader_components(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupStorageSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupStorageSize" + )] #[doc = "Getter for the `maxComputeWorkgroupStorageSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupStorageSize)"] @@ -247,7 +377,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_storage_size(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeInvocationsPerWorkgroup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeInvocationsPerWorkgroup" + )] #[doc = "Getter for the `maxComputeInvocationsPerWorkgroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeInvocationsPerWorkgroup)"] @@ -258,7 +394,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_invocations_per_workgroup(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupSizeX" + )] #[doc = "Getter for the `maxComputeWorkgroupSizeX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeX)"] @@ -269,7 +411,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_x(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupSizeY" + )] #[doc = "Getter for the `maxComputeWorkgroupSizeY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeY)"] @@ -280,7 +428,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_y(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeZ)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupSizeZ" + )] #[doc = "Getter for the `maxComputeWorkgroupSizeZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeZ)"] @@ -291,7 +445,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_z(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupsPerDimension)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUSupportedLimits", + js_name = "maxComputeWorkgroupsPerDimension" + )] #[doc = "Getter for the `maxComputeWorkgroupsPerDimension` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupsPerDimension)"] diff --git a/crates/web-sys/src/features/gen_GpuTexture.rs b/crates/web-sys/src/features/gen_GpuTexture.rs index ff9c31bd5bf..6f637fec412 100644 --- a/crates/web-sys/src/features/gen_GpuTexture.rs +++ b/crates/web-sys/src/features/gen_GpuTexture.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexture , typescript_type = "GPUTexture")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUTexture", + typescript_type = "GPUTexture" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexture` class."] #[doc = ""] @@ -16,7 +20,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTexture; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = label)] + #[wasm_bindgen(structural, method, getter, js_class = "GPUTexture", 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/GPUTexture/label)"] @@ -27,7 +31,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTexture) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUTexture" , js_name = label)] + #[wasm_bindgen(structural, method, setter, js_class = "GPUTexture", js_name = "label")] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/label)"] @@ -39,7 +43,7 @@ extern "C" { pub fn set_label(this: &GpuTexture, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] - # [wasm_bindgen (method , structural , js_class = "GPUTexture" , js_name = createView)] + #[wasm_bindgen(method, structural, js_class = "GPUTexture", js_name = "createView")] #[doc = "The `createView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] @@ -51,7 +55,7 @@ extern "C" { pub fn create_view(this: &GpuTexture) -> GpuTextureView; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuTextureView", feature = "GpuTextureViewDescriptor",))] - # [wasm_bindgen (method , structural , js_class = "GPUTexture" , js_name = createView)] + #[wasm_bindgen(method, structural, js_class = "GPUTexture", js_name = "createView")] #[doc = "The `createView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] @@ -65,7 +69,7 @@ extern "C" { descriptor: &GpuTextureViewDescriptor, ) -> GpuTextureView; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "GPUTexture" , js_name = destroy)] + #[wasm_bindgen(method, structural, js_class = "GPUTexture", js_name = "destroy")] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/destroy)"] diff --git a/crates/web-sys/src/features/gen_GpuTextureBindingLayout.rs b/crates/web-sys/src/features/gen_GpuTextureBindingLayout.rs index 621e6d23b65..e8a66d8027c 100644 --- a/crates/web-sys/src/features/gen_GpuTextureBindingLayout.rs +++ b/crates/web-sys/src/features/gen_GpuTextureBindingLayout.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureBindingLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTextureBindingLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureBindingLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs b/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs index c46f8887850..7a52317b040 100644 --- a/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTextureDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuTextureUsage.rs b/crates/web-sys/src/features/gen_GpuTextureUsage.rs index 208653c933e..2dfeb764b8d 100644 --- a/crates/web-sys/src/features/gen_GpuTextureUsage.rs +++ b/crates/web-sys/src/features/gen_GpuTextureUsage.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureUsage , typescript_type = "GPUTextureUsage")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUTextureUsage", + typescript_type = "GPUTextureUsage" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureUsage` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuTextureView.rs b/crates/web-sys/src/features/gen_GpuTextureView.rs index fceaf0e7ce0..79da8e37b08 100644 --- a/crates/web-sys/src/features/gen_GpuTextureView.rs +++ b/crates/web-sys/src/features/gen_GpuTextureView.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureView , typescript_type = "GPUTextureView")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUTextureView", + typescript_type = "GPUTextureView" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureView` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureView; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUTextureView" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUTextureView", + 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/GPUTextureView/label)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTextureView) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "GPUTextureView" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "GPUTextureView", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"] diff --git a/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs b/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs index acc8216ff5f..7e42b537f93 100644 --- a/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureViewDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUTextureViewDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureViewDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuUncapturedErrorEvent.rs b/crates/web-sys/src/features/gen_GpuUncapturedErrorEvent.rs index f1a4e654958..6d7d286a24c 100644 --- a/crates/web-sys/src/features/gen_GpuUncapturedErrorEvent.rs +++ b/crates/web-sys/src/features/gen_GpuUncapturedErrorEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEvent , typescript_type = "GPUUncapturedErrorEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "GPUUncapturedErrorEvent", + typescript_type = "GPUUncapturedErrorEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuUncapturedErrorEvent` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuUncapturedErrorEvent; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUUncapturedErrorEvent" , js_name = error)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUUncapturedErrorEvent", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent/error)"] diff --git a/crates/web-sys/src/features/gen_GpuUncapturedErrorEventInit.rs b/crates/web-sys/src/features/gen_GpuUncapturedErrorEventInit.rs index b554bcb72f8..533f42860cd 100644 --- a/crates/web-sys/src/features/gen_GpuUncapturedErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_GpuUncapturedErrorEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUUncapturedErrorEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuUncapturedErrorEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuValidationError.rs b/crates/web-sys/src/features/gen_GpuValidationError.rs index 48f16949365..db601d08389 100644 --- a/crates/web-sys/src/features/gen_GpuValidationError.rs +++ b/crates/web-sys/src/features/gen_GpuValidationError.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUValidationError , typescript_type = "GPUValidationError")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "GPUValidationError", + typescript_type = "GPUValidationError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuValidationError` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuValidationError; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "GPUValidationError" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "GPUValidationError", + 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/GPUValidationError/message)"] diff --git a/crates/web-sys/src/features/gen_GpuVertexAttribute.rs b/crates/web-sys/src/features/gen_GpuVertexAttribute.rs index 2fde6d181dd..5dbd02be0df 100644 --- a/crates/web-sys/src/features/gen_GpuVertexAttribute.rs +++ b/crates/web-sys/src/features/gen_GpuVertexAttribute.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexAttribute)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUVertexAttribute")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexAttribute` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuVertexBufferLayout.rs b/crates/web-sys/src/features/gen_GpuVertexBufferLayout.rs index e8843020fa2..0e9e9d0c6fc 100644 --- a/crates/web-sys/src/features/gen_GpuVertexBufferLayout.rs +++ b/crates/web-sys/src/features/gen_GpuVertexBufferLayout.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexBufferLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUVertexBufferLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexBufferLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuVertexState.rs b/crates/web-sys/src/features/gen_GpuVertexState.rs index 4086fe436a4..d8c1b5debfa 100644 --- a/crates/web-sys/src/features/gen_GpuVertexState.rs +++ b/crates/web-sys/src/features/gen_GpuVertexState.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexState)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GPUVertexState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexState` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GroupedHistoryEventInit.rs b/crates/web-sys/src/features/gen_GroupedHistoryEventInit.rs index c0e2441e7d4..fac9aa47f44 100644 --- a/crates/web-sys/src/features/gen_GroupedHistoryEventInit.rs +++ b/crates/web-sys/src/features/gen_GroupedHistoryEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GroupedHistoryEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "GroupedHistoryEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GroupedHistoryEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HalfOpenInfoDict.rs b/crates/web-sys/src/features/gen_HalfOpenInfoDict.rs index 6cef66fd8fc..138bfe0041d 100644 --- a/crates/web-sys/src/features/gen_HalfOpenInfoDict.rs +++ b/crates/web-sys/src/features/gen_HalfOpenInfoDict.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HalfOpenInfoDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HalfOpenInfoDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HalfOpenInfoDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HashChangeEvent.rs b/crates/web-sys/src/features/gen_HashChangeEvent.rs index 9623ed3338f..e7471c65175 100644 --- a/crates/web-sys/src/features/gen_HashChangeEvent.rs +++ b/crates/web-sys/src/features/gen_HashChangeEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = HashChangeEvent , typescript_type = "HashChangeEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "HashChangeEvent", + typescript_type = "HashChangeEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HashChangeEvent` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub type HashChangeEvent; - # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = oldURL)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HashChangeEvent", + js_name = "oldURL" + )] #[doc = "Getter for the `oldURL` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = newURL)] + #[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)"] @@ -43,14 +60,24 @@ extern "C" { type_: &str, event_init_dict: &HashChangeEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "HashChangeEvent", + js_name = "initHashChangeEvent" + )] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn init_hash_change_event(this: &HashChangeEvent, type_arg: &str); - # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "HashChangeEvent", + js_name = "initHashChangeEvent" + )] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] @@ -61,7 +88,12 @@ extern "C" { type_arg: &str, can_bubble_arg: bool, ); - # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "HashChangeEvent", + js_name = "initHashChangeEvent" + )] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] @@ -73,7 +105,12 @@ extern "C" { can_bubble_arg: bool, cancelable_arg: bool, ); - # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "HashChangeEvent", + js_name = "initHashChangeEvent" + )] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] @@ -86,7 +123,12 @@ extern "C" { cancelable_arg: bool, old_url_arg: &str, ); - # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "HashChangeEvent", + js_name = "initHashChangeEvent" + )] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] diff --git a/crates/web-sys/src/features/gen_HashChangeEventInit.rs b/crates/web-sys/src/features/gen_HashChangeEventInit.rs index 75e3f7f5cda..3dd2c8d5310 100644 --- a/crates/web-sys/src/features/gen_HashChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_HashChangeEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HashChangeEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HashChangeEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HashChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Headers.rs b/crates/web-sys/src/features/gen_Headers.rs index 47e0261ff01..34787397366 100644 --- a/crates/web-sys/src/features/gen_Headers.rs +++ b/crates/web-sys/src/features/gen_Headers.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Headers , typescript_type = "Headers")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Headers", + typescript_type = "Headers" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Headers` class."] #[doc = ""] @@ -34,35 +38,35 @@ extern "C" { pub fn new_with_str_sequence_sequence( init: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = append)] + #[wasm_bindgen(catch, method, structural, js_class = "Headers", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn append(this: &Headers, name: &str, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = delete)] + #[wasm_bindgen(catch, method, structural, js_class = "Headers", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn delete(this: &Headers, name: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = get)] + #[wasm_bindgen(catch, method, structural, js_class = "Headers", js_name = "get")] #[doc = "The `get()` method."] #[doc = ""] #[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>; - # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = has)] + #[wasm_bindgen(catch, method, structural, js_class = "Headers", js_name = "has")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn has(this: &Headers, name: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = set)] + #[wasm_bindgen(catch, method, structural, js_class = "Headers", js_name = "set")] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/set)"] diff --git a/crates/web-sys/src/features/gen_Hid.rs b/crates/web-sys/src/features/gen_Hid.rs index 1980c6d6523..a94c2234cdc 100644 --- a/crates/web-sys/src/features/gen_Hid.rs +++ b/crates/web-sys/src/features/gen_Hid.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = HID , typescript_type = "HID")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HID", + typescript_type = "HID" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Hid` class."] #[doc = ""] @@ -16,7 +21,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Hid; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HID" , js_name = onconnect)] + #[wasm_bindgen(structural, method, getter, js_class = "HID", js_name = "onconnect")] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/onconnect)"] @@ -27,7 +32,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onconnect(this: &Hid) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "HID" , js_name = onconnect)] + #[wasm_bindgen(structural, method, setter, js_class = "HID", js_name = "onconnect")] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/onconnect)"] @@ -38,7 +43,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onconnect(this: &Hid, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HID" , js_name = ondisconnect)] + #[wasm_bindgen(structural, method, getter, js_class = "HID", js_name = "ondisconnect")] #[doc = "Getter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/ondisconnect)"] @@ -49,7 +54,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondisconnect(this: &Hid) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "HID" , js_name = ondisconnect)] + #[wasm_bindgen(structural, method, setter, js_class = "HID", js_name = "ondisconnect")] #[doc = "Setter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/ondisconnect)"] @@ -60,7 +65,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondisconnect(this: &Hid, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HID" , js_name = getDevices)] + #[wasm_bindgen(method, structural, js_class = "HID", js_name = "getDevices")] #[doc = "The `getDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/getDevices)"] @@ -72,7 +77,7 @@ extern "C" { pub fn get_devices(this: &Hid) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDeviceRequestOptions")] - # [wasm_bindgen (method , structural , js_class = "HID" , js_name = requestDevice)] + #[wasm_bindgen(method, structural, js_class = "HID", js_name = "requestDevice")] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/requestDevice)"] diff --git a/crates/web-sys/src/features/gen_HidCollectionInfo.rs b/crates/web-sys/src/features/gen_HidCollectionInfo.rs index 41af4f16c17..4245556705e 100644 --- a/crates/web-sys/src/features/gen_HidCollectionInfo.rs +++ b/crates/web-sys/src/features/gen_HidCollectionInfo.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDCollectionInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HIDCollectionInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidCollectionInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HidConnectionEvent.rs b/crates/web-sys/src/features/gen_HidConnectionEvent.rs index 87dae4e4b4c..26596536413 100644 --- a/crates/web-sys/src/features/gen_HidConnectionEvent.rs +++ b/crates/web-sys/src/features/gen_HidConnectionEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = HIDConnectionEvent , typescript_type = "HIDConnectionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "HIDConnectionEvent", + typescript_type = "HIDConnectionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidConnectionEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type HidConnectionEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] - # [wasm_bindgen (structural , method , getter , js_class = "HIDConnectionEvent" , js_name = device)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDConnectionEvent", + js_name = "device" + )] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDConnectionEvent/device)"] diff --git a/crates/web-sys/src/features/gen_HidConnectionEventInit.rs b/crates/web-sys/src/features/gen_HidConnectionEventInit.rs index 09e6261d37b..2093c281c4f 100644 --- a/crates/web-sys/src/features/gen_HidConnectionEventInit.rs +++ b/crates/web-sys/src/features/gen_HidConnectionEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDConnectionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HIDConnectionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidConnectionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HidDevice.rs b/crates/web-sys/src/features/gen_HidDevice.rs index 5416e544d0c..78e40354c04 100644 --- a/crates/web-sys/src/features/gen_HidDevice.rs +++ b/crates/web-sys/src/features/gen_HidDevice.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = HIDDevice , typescript_type = "HIDDevice")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HIDDevice", + typescript_type = "HIDDevice" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidDevice` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidDevice; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = oninputreport)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDDevice", + js_name = "oninputreport" + )] #[doc = "Getter for the `oninputreport` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/oninputreport)"] @@ -27,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oninputreport(this: &HidDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "HIDDevice" , js_name = oninputreport)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HIDDevice", + js_name = "oninputreport" + )] #[doc = "Setter for the `oninputreport` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/oninputreport)"] @@ -38,7 +55,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oninputreport(this: &HidDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = opened)] + #[wasm_bindgen(structural, method, getter, js_class = "HIDDevice", js_name = "opened")] #[doc = "Getter for the `opened` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/opened)"] @@ -49,7 +66,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn opened(this: &HidDevice) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = vendorId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDDevice", + js_name = "vendorId" + )] #[doc = "Getter for the `vendorId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/vendorId)"] @@ -60,7 +83,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor_id(this: &HidDevice) -> u16; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = productId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDDevice", + js_name = "productId" + )] #[doc = "Getter for the `productId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/productId)"] @@ -71,7 +100,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_id(this: &HidDevice) -> u16; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = productName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDDevice", + js_name = "productName" + )] #[doc = "Getter for the `productName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/productName)"] @@ -82,7 +117,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = collections)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDDevice", + js_name = "collections" + )] #[doc = "Getter for the `collections` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/collections)"] @@ -93,7 +134,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn collections(this: &HidDevice) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "HIDDevice", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/close)"] @@ -104,7 +145,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &HidDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = open)] + #[wasm_bindgen(method, structural, js_class = "HIDDevice", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/open)"] @@ -115,7 +156,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn open(this: &HidDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = receiveFeatureReport)] + #[wasm_bindgen( + method, + structural, + js_class = "HIDDevice", + js_name = "receiveFeatureReport" + )] #[doc = "The `receiveFeatureReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/receiveFeatureReport)"] @@ -126,7 +172,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn receive_feature_report(this: &HidDevice, report_id: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = sendFeatureReport)] + #[wasm_bindgen( + method, + structural, + js_class = "HIDDevice", + js_name = "sendFeatureReport" + )] #[doc = "The `sendFeatureReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendFeatureReport)"] @@ -141,7 +192,12 @@ extern "C" { data: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = sendFeatureReport)] + #[wasm_bindgen( + method, + structural, + js_class = "HIDDevice", + js_name = "sendFeatureReport" + )] #[doc = "The `sendFeatureReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendFeatureReport)"] @@ -156,7 +212,7 @@ extern "C" { data: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = sendReport)] + #[wasm_bindgen(method, structural, js_class = "HIDDevice", js_name = "sendReport")] #[doc = "The `sendReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendReport)"] @@ -171,7 +227,7 @@ extern "C" { data: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = sendReport)] + #[wasm_bindgen(method, structural, js_class = "HIDDevice", js_name = "sendReport")] #[doc = "The `sendReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendReport)"] diff --git a/crates/web-sys/src/features/gen_HidDeviceFilter.rs b/crates/web-sys/src/features/gen_HidDeviceFilter.rs index 48b756484ea..9eb52c50e01 100644 --- a/crates/web-sys/src/features/gen_HidDeviceFilter.rs +++ b/crates/web-sys/src/features/gen_HidDeviceFilter.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDDeviceFilter)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HIDDeviceFilter")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidDeviceFilter` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HidDeviceRequestOptions.rs b/crates/web-sys/src/features/gen_HidDeviceRequestOptions.rs index 0dfe5999b61..b05b02e7d90 100644 --- a/crates/web-sys/src/features/gen_HidDeviceRequestOptions.rs +++ b/crates/web-sys/src/features/gen_HidDeviceRequestOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDDeviceRequestOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HIDDeviceRequestOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidDeviceRequestOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HidInputReportEvent.rs b/crates/web-sys/src/features/gen_HidInputReportEvent.rs index 95e57da6aa8..dbee10364b7 100644 --- a/crates/web-sys/src/features/gen_HidInputReportEvent.rs +++ b/crates/web-sys/src/features/gen_HidInputReportEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = HIDInputReportEvent , typescript_type = "HIDInputReportEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "HIDInputReportEvent", + typescript_type = "HIDInputReportEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidInputReportEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type HidInputReportEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] - # [wasm_bindgen (structural , method , getter , js_class = "HIDInputReportEvent" , js_name = device)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDInputReportEvent", + js_name = "device" + )] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDInputReportEvent/device)"] @@ -28,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &HidInputReportEvent) -> HidDevice; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDInputReportEvent" , js_name = reportId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDInputReportEvent", + js_name = "reportId" + )] #[doc = "Getter for the `reportId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDInputReportEvent/reportId)"] @@ -39,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn report_id(this: &HidInputReportEvent) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "HIDInputReportEvent" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HIDInputReportEvent", + 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/HIDInputReportEvent/data)"] diff --git a/crates/web-sys/src/features/gen_HidInputReportEventInit.rs b/crates/web-sys/src/features/gen_HidInputReportEventInit.rs index 7b0c9b54d5e..36b8958ba2d 100644 --- a/crates/web-sys/src/features/gen_HidInputReportEventInit.rs +++ b/crates/web-sys/src/features/gen_HidInputReportEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDInputReportEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HIDInputReportEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidInputReportEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HidReportInfo.rs b/crates/web-sys/src/features/gen_HidReportInfo.rs index 660093a8855..b4996b96d70 100644 --- a/crates/web-sys/src/features/gen_HidReportInfo.rs +++ b/crates/web-sys/src/features/gen_HidReportInfo.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDReportInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HIDReportInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidReportInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HidReportItem.rs b/crates/web-sys/src/features/gen_HidReportItem.rs index 51af5203b70..dfcf3e02cd0 100644 --- a/crates/web-sys/src/features/gen_HidReportItem.rs +++ b/crates/web-sys/src/features/gen_HidReportItem.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDReportItem)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HIDReportItem")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidReportItem` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HiddenPluginEventInit.rs b/crates/web-sys/src/features/gen_HiddenPluginEventInit.rs index 5ed75adecaf..e226e62d309 100644 --- a/crates/web-sys/src/features/gen_HiddenPluginEventInit.rs +++ b/crates/web-sys/src/features/gen_HiddenPluginEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HiddenPluginEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HiddenPluginEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HiddenPluginEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_History.rs b/crates/web-sys/src/features/gen_History.rs index 50d9b9ad0d1..cb07579632e 100644 --- a/crates/web-sys/src/features/gen_History.rs +++ b/crates/web-sys/src/features/gen_History.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = History , typescript_type = "History")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "History", + typescript_type = "History" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `History` class."] #[doc = ""] @@ -11,7 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub type History; - # [wasm_bindgen (structural , catch , method , getter , js_class = "History" , js_name = length)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "History", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/length)"] @@ -19,7 +30,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn length(this: &History) -> Result; #[cfg(feature = "ScrollRestoration")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "History" , js_name = scrollRestoration)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "History", + js_name = "scrollRestoration" + )] #[doc = "Getter for the `scrollRestoration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/scrollRestoration)"] @@ -27,49 +45,63 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `History`, `ScrollRestoration`*"] pub fn scroll_restoration(this: &History) -> Result; #[cfg(feature = "ScrollRestoration")] - # [wasm_bindgen (structural , catch , method , setter , js_class = "History" , js_name = scrollRestoration)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "History", + js_name = "scrollRestoration" + )] #[doc = "Setter for the `scrollRestoration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/scrollRestoration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`, `ScrollRestoration`*"] pub fn set_scroll_restoration(this: &History, value: ScrollRestoration) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "History" , js_name = state)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "History", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn state(this: &History) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = back)] + #[wasm_bindgen(catch, method, structural, js_class = "History", js_name = "back")] #[doc = "The `back()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/back)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn back(this: &History) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = forward)] + #[wasm_bindgen(catch, method, structural, js_class = "History", js_name = "forward")] #[doc = "The `forward()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/forward)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn forward(this: &History) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = go)] + #[wasm_bindgen(catch, method, structural, js_class = "History", js_name = "go")] #[doc = "The `go()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/go)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn go(this: &History) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = go)] + #[wasm_bindgen(catch, method, structural, js_class = "History", js_name = "go")] #[doc = "The `go()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/go)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn go_with_delta(this: &History, delta: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = pushState)] + #[wasm_bindgen(catch, method, structural, js_class = "History", js_name = "pushState")] #[doc = "The `pushState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState)"] @@ -80,7 +112,7 @@ extern "C" { data: &::wasm_bindgen::JsValue, title: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = pushState)] + #[wasm_bindgen(catch, method, structural, js_class = "History", js_name = "pushState")] #[doc = "The `pushState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState)"] @@ -92,7 +124,13 @@ extern "C" { title: &str, url: Option<&str>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = replaceState)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "History", + js_name = "replaceState" + )] #[doc = "The `replaceState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState)"] @@ -103,7 +141,13 @@ extern "C" { data: &::wasm_bindgen::JsValue, title: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = replaceState)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "History", + js_name = "replaceState" + )] #[doc = "The `replaceState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState)"] diff --git a/crates/web-sys/src/features/gen_HitRegionOptions.rs b/crates/web-sys/src/features/gen_HitRegionOptions.rs index a065409906f..c79e3afb4dc 100644 --- a/crates/web-sys/src/features/gen_HitRegionOptions.rs +++ b/crates/web-sys/src/features/gen_HitRegionOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HitRegionOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HitRegionOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HitRegionOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HkdfParams.rs b/crates/web-sys/src/features/gen_HkdfParams.rs index 059bbe35698..9ef3aa39631 100644 --- a/crates/web-sys/src/features/gen_HkdfParams.rs +++ b/crates/web-sys/src/features/gen_HkdfParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HkdfParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HkdfParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HkdfParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs b/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs index b1708bcff53..2bbb37976f6 100644 --- a/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs +++ b/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacDerivedKeyParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HmacDerivedKeyParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacDerivedKeyParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HmacImportParams.rs b/crates/web-sys/src/features/gen_HmacImportParams.rs index eb9489c059b..22d4eaf51a7 100644 --- a/crates/web-sys/src/features/gen_HmacImportParams.rs +++ b/crates/web-sys/src/features/gen_HmacImportParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacImportParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HmacImportParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacImportParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs b/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs index 5910552e337..5bca7e0058d 100644 --- a/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacKeyAlgorithm)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HmacKeyAlgorithm")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacKeyAlgorithm` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HmacKeyGenParams.rs b/crates/web-sys/src/features/gen_HmacKeyGenParams.rs index 3903d71a727..522198c9d93 100644 --- a/crates/web-sys/src/features/gen_HmacKeyGenParams.rs +++ b/crates/web-sys/src/features/gen_HmacKeyGenParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacKeyGenParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HmacKeyGenParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacKeyGenParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlAllCollection.rs b/crates/web-sys/src/features/gen_HtmlAllCollection.rs index 8510f7f4cf0..491ef20117f 100644 --- a/crates/web-sys/src/features/gen_HtmlAllCollection.rs +++ b/crates/web-sys/src/features/gen_HtmlAllCollection.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HTMLAllCollection , typescript_type = "HTMLAllCollection")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "HTMLAllCollection", + typescript_type = "HTMLAllCollection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAllCollection` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub type HtmlAllCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAllCollection" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAllCollection", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/length)"] @@ -19,21 +29,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub fn length(this: &HtmlAllCollection) -> u32; #[cfg(feature = "Node")] - # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"] pub fn item_with_index(this: &HtmlAllCollection, index: u32) -> Option; - # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub fn item_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>; - # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = namedItem)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLAllCollection", + js_name = "namedItem" + )] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/namedItem)"] diff --git a/crates/web-sys/src/features/gen_HtmlAnchorElement.rs b/crates/web-sys/src/features/gen_HtmlAnchorElement.rs index 0b953108c1f..eb7c94b8c9d 100644 --- a/crates/web-sys/src/features/gen_HtmlAnchorElement.rs +++ b/crates/web-sys/src/features/gen_HtmlAnchorElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAnchorElement , typescript_type = "HTMLAnchorElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLAnchorElement", + typescript_type = "HTMLAnchorElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAnchorElement` class."] #[doc = ""] @@ -11,70 +19,130 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub type HtmlAnchorElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "target" + )] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[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 set_target(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = download)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "download" + )] #[doc = "Getter for the `download` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = download)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "download" + )] #[doc = "Setter for the `download` field of this object."] #[doc = ""] #[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 set_download(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = ping)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "ping" + )] #[doc = "Getter for the `ping` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = ping)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "ping" + )] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] #[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 set_ping(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = rel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "rel" + )] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "rel" + )] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[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 set_rel(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "referrerPolicy" + )] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "referrerPolicy" + )] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"] @@ -82,266 +150,496 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_referrer_policy(this: &HtmlAnchorElement, value: &str); #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = relList)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "relList" + )] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAnchorElement`*"] pub fn rel_list(this: &HtmlAnchorElement) -> DomTokenList; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hreflang)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "hreflang" + )] #[doc = "Getter for the `hreflang` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hreflang)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "hreflang" + )] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] #[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 set_hreflang(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn type_(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLAnchorElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "text" + )] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLAnchorElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "text" + )] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[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 set_text(this: &HtmlAnchorElement, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = coords)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "coords" + )] #[doc = "Getter for the `coords` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = coords)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "coords" + )] #[doc = "Setter for the `coords` field of this object."] #[doc = ""] #[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 set_coords(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = charset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn charset(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = charset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "charset" + )] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] #[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 set_charset(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn name(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = rev)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "rev" + )] #[doc = "Getter for the `rev` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rev)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "rev" + )] #[doc = "Setter for the `rev` field of this object."] #[doc = ""] #[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 set_rev(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = shape)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "shape" + )] #[doc = "Getter for the `shape` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = shape)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "shape" + )] #[doc = "Setter for the `shape` field of this object."] #[doc = ""] #[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 set_shape(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn href(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "href" + )] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[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 set_href(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = origin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn origin(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = protocol)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = protocol)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "protocol" + )] #[doc = "Setter 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 set_protocol(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = username)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "username" + )] #[doc = "Getter for the `username` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = username)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "username" + )] #[doc = "Setter for the `username` field of this object."] #[doc = ""] #[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 set_username(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = password)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + js_name = "password" + )] #[doc = "Getter for the `password` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = password)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "password" + )] #[doc = "Setter for the `password` field of this object."] #[doc = ""] #[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 set_password(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = host)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn host(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = host)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "host" + )] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[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 set_host(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hostname)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn hostname(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hostname)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "hostname" + )] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[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 set_hostname(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = port)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn port(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = port)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "port" + )] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[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 set_port(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = pathname)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn pathname(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = pathname)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "pathname" + )] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[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 set_pathname(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = search)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn search(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = search)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "search" + )] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[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 set_search(this: &HtmlAnchorElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hash)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAnchorElement", + 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/HTMLAnchorElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn hash(this: &HtmlAnchorElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hash)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAnchorElement", + js_name = "hash" + )] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"] diff --git a/crates/web-sys/src/features/gen_HtmlAreaElement.rs b/crates/web-sys/src/features/gen_HtmlAreaElement.rs index 23a9ae2c757..e1d3769076f 100644 --- a/crates/web-sys/src/features/gen_HtmlAreaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlAreaElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAreaElement , typescript_type = "HTMLAreaElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLAreaElement", + typescript_type = "HTMLAreaElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAreaElement` class."] #[doc = ""] @@ -11,112 +19,208 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub type HtmlAreaElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = alt)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "alt" + )] #[doc = "Getter for the `alt` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = alt)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "alt" + )] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] #[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 set_alt(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = coords)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "coords" + )] #[doc = "Getter for the `coords` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = coords)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "coords" + )] #[doc = "Setter for the `coords` field of this object."] #[doc = ""] #[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 set_coords(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = shape)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "shape" + )] #[doc = "Getter for the `shape` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = shape)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "shape" + )] #[doc = "Setter for the `shape` field of this object."] #[doc = ""] #[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 set_shape(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "target" + )] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[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 set_target(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = download)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "download" + )] #[doc = "Getter for the `download` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = download)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "download" + )] #[doc = "Setter for the `download` field of this object."] #[doc = ""] #[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 set_download(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = ping)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "ping" + )] #[doc = "Getter for the `ping` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = ping)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "ping" + )] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] #[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 set_ping(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = rel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "rel" + )] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = rel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "rel" + )] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[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 set_rel(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "referrerPolicy" + )] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "referrerPolicy" + )] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"] @@ -124,168 +228,312 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_referrer_policy(this: &HtmlAreaElement, value: &str); #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = relList)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "relList" + )] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAreaElement`*"] pub fn rel_list(this: &HtmlAreaElement) -> DomTokenList; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = noHref)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "noHref" + )] #[doc = "Getter for the `noHref` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn no_href(this: &HtmlAreaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = noHref)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "noHref" + )] #[doc = "Setter for the `noHref` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_no_href(this: &HtmlAreaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn href(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "href" + )] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[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 set_href(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = origin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn origin(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = protocol)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = protocol)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "protocol" + )] #[doc = "Setter 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 set_protocol(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = username)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "username" + )] #[doc = "Getter for the `username` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = username)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "username" + )] #[doc = "Setter for the `username` field of this object."] #[doc = ""] #[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 set_username(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = password)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + js_name = "password" + )] #[doc = "Getter for the `password` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = password)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "password" + )] #[doc = "Setter for the `password` field of this object."] #[doc = ""] #[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 set_password(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = host)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn host(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = host)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "host" + )] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[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 set_host(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = hostname)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn hostname(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hostname)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "hostname" + )] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[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 set_hostname(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = port)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn port(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = port)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "port" + )] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[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 set_port(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = pathname)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn pathname(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = pathname)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "pathname" + )] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[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 set_pathname(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = search)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn search(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = search)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "search" + )] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[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 set_search(this: &HtmlAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = hash)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLAreaElement", + 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/HTMLAreaElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn hash(this: &HtmlAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hash)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLAreaElement", + js_name = "hash" + )] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"] diff --git a/crates/web-sys/src/features/gen_HtmlAudioElement.rs b/crates/web-sys/src/features/gen_HtmlAudioElement.rs index 03ea58ccf05..246015b828a 100644 --- a/crates/web-sys/src/features/gen_HtmlAudioElement.rs +++ b/crates/web-sys/src/features/gen_HtmlAudioElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlMediaElement , extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAudioElement , typescript_type = "HTMLAudioElement")] + #[wasm_bindgen( + extends = "HtmlMediaElement", + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLAudioElement", + typescript_type = "HTMLAudioElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAudioElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlBaseElement.rs b/crates/web-sys/src/features/gen_HtmlBaseElement.rs index d521cabb7d3..a2e2ba9eb00 100644 --- a/crates/web-sys/src/features/gen_HtmlBaseElement.rs +++ b/crates/web-sys/src/features/gen_HtmlBaseElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBaseElement , typescript_type = "HTMLBaseElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLBaseElement", + typescript_type = "HTMLBaseElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlBaseElement` class."] #[doc = ""] @@ -11,28 +19,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] pub type HtmlBaseElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBaseElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBaseElement", + 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/HTMLBaseElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] pub fn href(this: &HtmlBaseElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBaseElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBaseElement", + js_name = "href" + )] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[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 set_href(this: &HtmlBaseElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBaseElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBaseElement", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBaseElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBaseElement", + js_name = "target" + )] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"] diff --git a/crates/web-sys/src/features/gen_HtmlBodyElement.rs b/crates/web-sys/src/features/gen_HtmlBodyElement.rs index f7355c4c335..6287b1f8cf1 100644 --- a/crates/web-sys/src/features/gen_HtmlBodyElement.rs +++ b/crates/web-sys/src/features/gen_HtmlBodyElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBodyElement , typescript_type = "HTMLBodyElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLBodyElement", + typescript_type = "HTMLBodyElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlBodyElement` class."] #[doc = ""] @@ -11,280 +19,520 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub type HtmlBodyElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = text)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "text" + )] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = text)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "text" + )] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[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 set_text(this: &HtmlBodyElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = link)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "link" + )] #[doc = "Getter for the `link` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = link)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "link" + )] #[doc = "Setter for the `link` field of this object."] #[doc = ""] #[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 set_link(this: &HtmlBodyElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = vLink)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "vLink" + )] #[doc = "Getter for the `vLink` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = vLink)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "vLink" + )] #[doc = "Setter for the `vLink` field of this object."] #[doc = ""] #[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 set_v_link(this: &HtmlBodyElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = aLink)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "aLink" + )] #[doc = "Getter for the `aLink` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = aLink)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "aLink" + )] #[doc = "Setter for the `aLink` field of this object."] #[doc = ""] #[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 set_a_link(this: &HtmlBodyElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "bgColor" + )] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "bgColor" + )] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[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 set_bg_color(this: &HtmlBodyElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = background)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "background" + )] #[doc = "Getter for the `background` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = background)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "background" + )] #[doc = "Setter for the `background` field of this object."] #[doc = ""] #[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 set_background(this: &HtmlBodyElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onafterprint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onafterprint" + )] #[doc = "Getter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onafterprint(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onafterprint)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onafterprint" + )] #[doc = "Setter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onafterprint(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onbeforeprint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onbeforeprint" + )] #[doc = "Getter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onbeforeprint(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onbeforeprint)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onbeforeprint" + )] #[doc = "Setter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onbeforeprint(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onbeforeunload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onbeforeunload" + )] #[doc = "Getter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onbeforeunload(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onbeforeunload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onbeforeunload" + )] #[doc = "Setter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onbeforeunload(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onhashchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onhashchange" + )] #[doc = "Getter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onhashchange(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onhashchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onhashchange" + )] #[doc = "Setter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onhashchange(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onlanguagechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onlanguagechange" + )] #[doc = "Getter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onlanguagechange(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onlanguagechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onlanguagechange" + )] #[doc = "Setter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onlanguagechange(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onmessage(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onmessage(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onmessageerror" + )] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onmessageerror(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onmessageerror" + )] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onmessageerror(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onoffline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onoffline" + )] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onoffline(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onoffline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onoffline" + )] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onoffline(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = ononline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "ononline" + )] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn ononline(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = ononline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "ononline" + )] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_ononline(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpagehide)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onpagehide" + )] #[doc = "Getter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onpagehide(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpagehide)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onpagehide" + )] #[doc = "Setter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onpagehide(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpageshow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onpageshow" + )] #[doc = "Getter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onpageshow(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpageshow)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onpageshow" + )] #[doc = "Setter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onpageshow(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpopstate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onpopstate" + )] #[doc = "Getter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onpopstate(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpopstate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onpopstate" + )] #[doc = "Setter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onpopstate(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onstorage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onstorage" + )] #[doc = "Getter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onstorage(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onstorage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onstorage" + )] #[doc = "Setter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onstorage(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onunload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBodyElement", + js_name = "onunload" + )] #[doc = "Getter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onunload(this: &HtmlBodyElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onunload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBodyElement", + js_name = "onunload" + )] #[doc = "Setter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onunload)"] diff --git a/crates/web-sys/src/features/gen_HtmlBrElement.rs b/crates/web-sys/src/features/gen_HtmlBrElement.rs index aa332a90a5c..01795116172 100644 --- a/crates/web-sys/src/features/gen_HtmlBrElement.rs +++ b/crates/web-sys/src/features/gen_HtmlBrElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBRElement , typescript_type = "HTMLBRElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLBRElement", + typescript_type = "HTMLBRElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlBrElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] pub type HtmlBrElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLBRElement" , js_name = clear)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLBRElement", + js_name = "clear" + )] #[doc = "Getter for the `clear` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLBRElement" , js_name = clear)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLBRElement", + js_name = "clear" + )] #[doc = "Setter for the `clear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement/clear)"] diff --git a/crates/web-sys/src/features/gen_HtmlButtonElement.rs b/crates/web-sys/src/features/gen_HtmlButtonElement.rs index e8958b145f1..95fef2474b0 100644 --- a/crates/web-sys/src/features/gen_HtmlButtonElement.rs +++ b/crates/web-sys/src/features/gen_HtmlButtonElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLButtonElement , typescript_type = "HTMLButtonElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLButtonElement", + typescript_type = "HTMLButtonElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlButtonElement` class."] #[doc = ""] @@ -11,28 +19,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub type HtmlButtonElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "autofocus" + )] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn autofocus(this: &HtmlButtonElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "autofocus" + )] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_autofocus(this: &HtmlButtonElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn disabled(this: &HtmlButtonElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"] @@ -40,126 +72,234 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_disabled(this: &HtmlButtonElement, value: bool); #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `HtmlFormElement`*"] pub fn form(this: &HtmlButtonElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formAction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "formAction" + )] #[doc = "Getter for the `formAction` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formAction)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "formAction" + )] #[doc = "Setter for the `formAction` field of this object."] #[doc = ""] #[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 set_form_action(this: &HtmlButtonElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formEnctype)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "formEnctype" + )] #[doc = "Getter for the `formEnctype` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formEnctype)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "formEnctype" + )] #[doc = "Setter for the `formEnctype` field of this object."] #[doc = ""] #[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 set_form_enctype(this: &HtmlButtonElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formMethod)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "formMethod" + )] #[doc = "Getter for the `formMethod` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formMethod)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "formMethod" + )] #[doc = "Setter for the `formMethod` field of this object."] #[doc = ""] #[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 set_form_method(this: &HtmlButtonElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formNoValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "formNoValidate" + )] #[doc = "Getter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn form_no_validate(this: &HtmlButtonElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formNoValidate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "formNoValidate" + )] #[doc = "Setter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_form_no_validate(this: &HtmlButtonElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formTarget)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "formTarget" + )] #[doc = "Getter for the `formTarget` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formTarget)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "formTarget" + )] #[doc = "Setter for the `formTarget` field of this object."] #[doc = ""] #[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 set_form_target(this: &HtmlButtonElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + 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/HTMLButtonElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn name(this: &HtmlButtonElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlButtonElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + 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/HTMLButtonElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn type_(this: &HtmlButtonElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlButtonElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + 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/HTMLButtonElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn value(this: &HtmlButtonElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLButtonElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_value(this: &HtmlButtonElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = willValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "willValidate" + )] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/willValidate)"] @@ -167,14 +307,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn will_validate(this: &HtmlButtonElement) -> bool; #[cfg(feature = "ValidityState")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = validity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "validity" + )] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `ValidityState`*"] pub fn validity(this: &HtmlButtonElement) -> ValidityState; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLButtonElement" , js_name = validationMessage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "validationMessage" + )] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validationMessage)"] @@ -182,28 +335,49 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn validation_message(this: &HtmlButtonElement) -> Result; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = labels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLButtonElement", + js_name = "labels" + )] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `NodeList`*"] pub fn labels(this: &HtmlButtonElement) -> NodeList; - # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLButtonElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn check_validity(this: &HtmlButtonElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLButtonElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn report_validity(this: &HtmlButtonElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = setCustomValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLButtonElement", + js_name = "setCustomValidity" + )] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/setCustomValidity)"] diff --git a/crates/web-sys/src/features/gen_HtmlCanvasElement.rs b/crates/web-sys/src/features/gen_HtmlCanvasElement.rs index ff8ab7e2dce..5cd39c8a6b8 100644 --- a/crates/web-sys/src/features/gen_HtmlCanvasElement.rs +++ b/crates/web-sys/src/features/gen_HtmlCanvasElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLCanvasElement , typescript_type = "HTMLCanvasElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLCanvasElement", + typescript_type = "HTMLCanvasElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlCanvasElement` class."] #[doc = ""] @@ -11,35 +19,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub type HtmlCanvasElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLCanvasElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLCanvasElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn width(this: &HtmlCanvasElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLCanvasElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLCanvasElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn set_width(this: &HtmlCanvasElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLCanvasElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLCanvasElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn height(this: &HtmlCanvasElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLCanvasElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLCanvasElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn set_height(this: &HtmlCanvasElement, value: u32); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = getContext)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLCanvasElement", + js_name = "getContext" + )] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext)"] @@ -49,7 +87,13 @@ extern "C" { this: &HtmlCanvasElement, context_id: &str, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = getContext)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLCanvasElement", + js_name = "getContext" + )] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext)"] @@ -60,14 +104,26 @@ extern "C" { context_id: &str, context_options: &::wasm_bindgen::JsValue, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLCanvasElement", + js_name = "toBlob" + )] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn to_blob(this: &HtmlCanvasElement, callback: &::js_sys::Function) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLCanvasElement", + js_name = "toBlob" + )] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] @@ -78,7 +134,13 @@ extern "C" { callback: &::js_sys::Function, type_: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLCanvasElement", + js_name = "toBlob" + )] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] @@ -90,21 +152,39 @@ extern "C" { type_: &str, encoder_options: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] + #[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(this: &HtmlCanvasElement) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] + #[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; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] + #[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)"] @@ -116,7 +196,13 @@ extern "C" { encoder_options: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "OffscreenCanvas")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = transferControlToOffscreen)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLCanvasElement", + js_name = "transferControlToOffscreen" + )] #[doc = "The `transferControlToOffscreen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen)"] diff --git a/crates/web-sys/src/features/gen_HtmlCollection.rs b/crates/web-sys/src/features/gen_HtmlCollection.rs index cf3ff4fbea6..62946e9ec4f 100644 --- a/crates/web-sys/src/features/gen_HtmlCollection.rs +++ b/crates/web-sys/src/features/gen_HtmlCollection.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HTMLCollection , typescript_type = "HTMLCollection")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "HTMLCollection", + typescript_type = "HTMLCollection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlCollection` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"] pub type HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLCollection" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLCollection", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/length)"] @@ -19,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"] pub fn length(this: &HtmlCollection) -> u32; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "HTMLCollection" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "HTMLCollection", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/item)"] @@ -27,7 +37,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn item(this: &HtmlCollection, index: u32) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "HTMLCollection" , js_name = namedItem)] + #[wasm_bindgen(method, structural, js_class = "HTMLCollection", js_name = "namedItem")] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/namedItem)"] diff --git a/crates/web-sys/src/features/gen_HtmlDListElement.rs b/crates/web-sys/src/features/gen_HtmlDListElement.rs index 74fab306a26..e41b4ed2e98 100644 --- a/crates/web-sys/src/features/gen_HtmlDListElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDListElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDListElement , typescript_type = "HTMLDListElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDListElement", + typescript_type = "HTMLDListElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDListElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] pub type HtmlDListElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDListElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDListElement", + js_name = "compact" + )] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] pub fn compact(this: &HtmlDListElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDListElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDListElement", + js_name = "compact" + )] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement/compact)"] diff --git a/crates/web-sys/src/features/gen_HtmlDataElement.rs b/crates/web-sys/src/features/gen_HtmlDataElement.rs index f43586af65f..8c050326713 100644 --- a/crates/web-sys/src/features/gen_HtmlDataElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDataElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDataElement , typescript_type = "HTMLDataElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDataElement", + typescript_type = "HTMLDataElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDataElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] pub type HtmlDataElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDataElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDataElement", + 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/HTMLDataElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] pub fn value(this: &HtmlDataElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDataElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDataElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement/value)"] diff --git a/crates/web-sys/src/features/gen_HtmlDataListElement.rs b/crates/web-sys/src/features/gen_HtmlDataListElement.rs index b19b0c19e98..83a01508502 100644 --- a/crates/web-sys/src/features/gen_HtmlDataListElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDataListElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDataListElement , typescript_type = "HTMLDataListElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDataListElement", + typescript_type = "HTMLDataListElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDataListElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlDataListElement`*"] pub type HtmlDataListElement; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDataListElement" , js_name = options)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDataListElement", + js_name = "options" + )] #[doc = "Getter for the `options` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement/options)"] diff --git a/crates/web-sys/src/features/gen_HtmlDetailsElement.rs b/crates/web-sys/src/features/gen_HtmlDetailsElement.rs index a816f04e7ca..488739dd457 100644 --- a/crates/web-sys/src/features/gen_HtmlDetailsElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDetailsElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDetailsElement , typescript_type = "HTMLDetailsElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDetailsElement", + typescript_type = "HTMLDetailsElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDetailsElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] pub type HtmlDetailsElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDetailsElement" , js_name = open)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDetailsElement", + js_name = "open" + )] #[doc = "Getter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] pub fn open(this: &HtmlDetailsElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDetailsElement" , js_name = open)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDetailsElement", + js_name = "open" + )] #[doc = "Setter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement/open)"] diff --git a/crates/web-sys/src/features/gen_HtmlDialogElement.rs b/crates/web-sys/src/features/gen_HtmlDialogElement.rs index 9fda1ac7d15..885631ce250 100644 --- a/crates/web-sys/src/features/gen_HtmlDialogElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDialogElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDialogElement , typescript_type = "HTMLDialogElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDialogElement", + typescript_type = "HTMLDialogElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDialogElement` class."] #[doc = ""] @@ -11,56 +19,86 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub type HtmlDialogElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDialogElement" , js_name = open)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDialogElement", + js_name = "open" + )] #[doc = "Getter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn open(this: &HtmlDialogElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDialogElement" , js_name = open)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDialogElement", + js_name = "open" + )] #[doc = "Setter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn set_open(this: &HtmlDialogElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDialogElement" , js_name = returnValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDialogElement", + js_name = "returnValue" + )] #[doc = "Getter for the `returnValue` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDialogElement" , js_name = returnValue)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDialogElement", + js_name = "returnValue" + )] #[doc = "Setter for the `returnValue` field of this object."] #[doc = ""] #[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 set_return_value(this: &HtmlDialogElement, value: &str); - # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "HTMLDialogElement", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn close(this: &HtmlDialogElement); - # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "HTMLDialogElement", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn close_with_return_value(this: &HtmlDialogElement, return_value: &str); - # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = show)] + #[wasm_bindgen(method, structural, js_class = "HTMLDialogElement", js_name = "show")] #[doc = "The `show()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/show)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn show(this: &HtmlDialogElement); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDialogElement" , js_name = showModal)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDialogElement", + js_name = "showModal" + )] #[doc = "The `showModal()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)"] diff --git a/crates/web-sys/src/features/gen_HtmlDirectoryElement.rs b/crates/web-sys/src/features/gen_HtmlDirectoryElement.rs index 5302969c2b0..f78b8d2cf5c 100644 --- a/crates/web-sys/src/features/gen_HtmlDirectoryElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDirectoryElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDirectoryElement , typescript_type = "HTMLDirectoryElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDirectoryElement", + typescript_type = "HTMLDirectoryElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDirectoryElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] pub type HtmlDirectoryElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDirectoryElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDirectoryElement", + js_name = "compact" + )] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] pub fn compact(this: &HtmlDirectoryElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDirectoryElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDirectoryElement", + js_name = "compact" + )] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement/compact)"] diff --git a/crates/web-sys/src/features/gen_HtmlDivElement.rs b/crates/web-sys/src/features/gen_HtmlDivElement.rs index eadb4fb7db3..cadd8bf5ae5 100644 --- a/crates/web-sys/src/features/gen_HtmlDivElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDivElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDivElement , typescript_type = "HTMLDivElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDivElement", + typescript_type = "HTMLDivElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDivElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] pub type HtmlDivElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDivElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDivElement", + 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/HTMLDivElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] pub fn align(this: &HtmlDivElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDivElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDivElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement/align)"] diff --git a/crates/web-sys/src/features/gen_HtmlDocument.rs b/crates/web-sys/src/features/gen_HtmlDocument.rs index 94c2d0cdbb6..702cbfe162f 100644 --- a/crates/web-sys/src/features/gen_HtmlDocument.rs +++ b/crates/web-sys/src/features/gen_HtmlDocument.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Document , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDocument , typescript_type = "HTMLDocument")] + #[wasm_bindgen( + extends = "Document", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLDocument", + typescript_type = "HTMLDocument" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDocument` class."] #[doc = ""] @@ -11,112 +18,210 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub type HtmlDocument; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = domain)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDocument", + js_name = "domain" + )] #[doc = "Getter for the `domain` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = domain)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDocument", + js_name = "domain" + )] #[doc = "Setter for the `domain` field of this object."] #[doc = ""] #[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 set_domain(this: &HtmlDocument, value: &str); - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLDocument" , js_name = cookie)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLDocument", + js_name = "cookie" + )] #[doc = "Getter for the `cookie` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLDocument" , js_name = cookie)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLDocument", + js_name = "cookie" + )] #[doc = "Setter for the `cookie` field of this object."] #[doc = ""] #[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 set_cookie(this: &HtmlDocument, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = designMode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDocument", + js_name = "designMode" + )] #[doc = "Getter for the `designMode` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = designMode)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDocument", + js_name = "designMode" + )] #[doc = "Setter for the `designMode` field of this object."] #[doc = ""] #[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 set_design_mode(this: &HtmlDocument, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = fgColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDocument", + js_name = "fgColor" + )] #[doc = "Getter for the `fgColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = fgColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDocument", + js_name = "fgColor" + )] #[doc = "Setter for the `fgColor` field of this object."] #[doc = ""] #[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 set_fg_color(this: &HtmlDocument, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = linkColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDocument", + js_name = "linkColor" + )] #[doc = "Getter for the `linkColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = linkColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDocument", + js_name = "linkColor" + )] #[doc = "Setter for the `linkColor` field of this object."] #[doc = ""] #[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 set_link_color(this: &HtmlDocument, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = vlinkColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDocument", + js_name = "vlinkColor" + )] #[doc = "Getter for the `vlinkColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = vlinkColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDocument", + js_name = "vlinkColor" + )] #[doc = "Setter for the `vlinkColor` field of this object."] #[doc = ""] #[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 set_vlink_color(this: &HtmlDocument, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = alinkColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDocument", + js_name = "alinkColor" + )] #[doc = "Getter for the `alinkColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = alinkColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDocument", + js_name = "alinkColor" + )] #[doc = "Setter for the `alinkColor` field of this object."] #[doc = ""] #[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 set_alink_color(this: &HtmlDocument, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLDocument", + js_name = "bgColor" + )] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLDocument", + js_name = "bgColor" + )] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"] @@ -124,42 +229,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_bg_color(this: &HtmlDocument, value: &str); #[cfg(feature = "HtmlAllCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = all)] + #[wasm_bindgen(structural, method, getter, js_class = "HTMLDocument", js_name = "all")] #[doc = "Getter for the `all` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/all)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `HtmlDocument`*"] pub fn all(this: &HtmlDocument) -> HtmlAllCollection; - # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = captureEvents)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLDocument", + js_name = "captureEvents" + )] #[doc = "The `captureEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/captureEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn capture_events(this: &HtmlDocument); - # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = clear)] + #[wasm_bindgen(method, structural, js_class = "HTMLDocument", js_name = "clear")] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn clear(this: &HtmlDocument); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = close)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "close" + )] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn close(this: &HtmlDocument) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "execCommand" + )] #[doc = "The `execCommand()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn exec_command(this: &HtmlDocument, command_id: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "execCommand" + )] #[doc = "The `execCommand()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] @@ -170,7 +298,13 @@ extern "C" { command_id: &str, show_ui: bool, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "execCommand" + )] #[doc = "The `execCommand()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] @@ -182,21 +316,21 @@ extern "C" { show_ui: bool, value: &str, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn open(this: &HtmlDocument) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn open_with_type(this: &HtmlDocument, type_: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] @@ -208,7 +342,7 @@ extern "C" { replace: &str, ) -> Result; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] @@ -221,7 +355,7 @@ extern "C" { features: &str, ) -> Result, JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] @@ -234,77 +368,142 @@ extern "C" { features: &str, replace: bool, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandEnabled)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "queryCommandEnabled" + )] #[doc = "The `queryCommandEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_enabled(this: &HtmlDocument, command_id: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandIndeterm)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "queryCommandIndeterm" + )] #[doc = "The `queryCommandIndeterm()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandIndeterm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_indeterm(this: &HtmlDocument, command_id: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandState)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "queryCommandState" + )] #[doc = "The `queryCommandState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_state(this: &HtmlDocument, command_id: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = queryCommandSupported)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLDocument", + js_name = "queryCommandSupported" + )] #[doc = "The `queryCommandSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandSupported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_supported(this: &HtmlDocument, command_id: &str) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandValue)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "queryCommandValue" + )] #[doc = "The `queryCommandValue()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = releaseEvents)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLDocument", + js_name = "releaseEvents" + )] #[doc = "The `releaseEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/releaseEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn release_events(this: &HtmlDocument); - # [wasm_bindgen (catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_0(this: &HtmlDocument) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] @@ -316,7 +515,13 @@ extern "C" { text_2: &str, text_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] @@ -329,7 +534,13 @@ extern "C" { text_3: &str, text_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] @@ -343,7 +554,13 @@ extern "C" { text_4: &str, text_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] @@ -358,7 +575,13 @@ extern "C" { text_5: &str, text_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] @@ -374,35 +597,66 @@ extern "C" { text_6: &str, text_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_0(this: &HtmlDocument) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] @@ -414,7 +668,13 @@ extern "C" { text_2: &str, text_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] @@ -427,7 +687,13 @@ extern "C" { text_3: &str, text_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] @@ -441,7 +707,13 @@ extern "C" { text_4: &str, text_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] @@ -456,7 +728,13 @@ extern "C" { text_5: &str, text_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLDocument", + js_name = "writeln" + )] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] diff --git a/crates/web-sys/src/features/gen_HtmlElement.rs b/crates/web-sys/src/features/gen_HtmlElement.rs index b7850a6fce3..e3aca4c54c3 100644 --- a/crates/web-sys/src/features/gen_HtmlElement.rs +++ b/crates/web-sys/src/features/gen_HtmlElement.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLElement , typescript_type = "HTMLElement")] + #[wasm_bindgen( + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLElement", + typescript_type = "HTMLElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlElement` class."] #[doc = ""] @@ -11,70 +18,106 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub type HtmlElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = title)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + 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/HTMLElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn title(this: &HtmlElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = title)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "title" + )] #[doc = "Setter for the `title` field of this object."] #[doc = ""] #[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 set_title(this: &HtmlElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = scrollHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "scrollHeight" + )] #[doc = "Getter for the `scrollHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn scroll_height(this: &HtmlElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = scrollHeight)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "scrollHeight" + )] #[doc = "Setter for the `scrollHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_scroll_height(this: &HtmlElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = scrollTop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "scrollTop" + )] #[doc = "Getter for the `scrollTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn scroll_top(this: &HtmlElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = scrollTop)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "scrollTop" + )] #[doc = "Setter for the `scrollTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_scroll_top(this: &HtmlElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = lang)] + #[wasm_bindgen(structural, method, getter, js_class = "HTMLElement", 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/HTMLElement/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn lang(this: &HtmlElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = lang)] + #[wasm_bindgen(structural, method, setter, js_class = "HTMLElement", js_name = "lang")] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] #[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 set_lang(this: &HtmlElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = dir)] + #[wasm_bindgen(structural, method, getter, js_class = "HTMLElement", js_name = "dir")] #[doc = "Getter for the `dir` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = dir)] + #[wasm_bindgen(structural, method, setter, js_class = "HTMLElement", js_name = "dir")] #[doc = "Setter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir)"] @@ -82,119 +125,221 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_dir(this: &HtmlElement, value: &str); #[cfg(feature = "DomStringMap")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = dataset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "dataset" + )] #[doc = "Getter for the `dataset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `HtmlElement`*"] pub fn dataset(this: &HtmlElement) -> DomStringMap; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = innerText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "innerText" + )] #[doc = "Getter for the `innerText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = innerText)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "innerText" + )] #[doc = "Setter for the `innerText` field of this object."] #[doc = ""] #[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 set_inner_text(this: &HtmlElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = hidden)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "hidden" + )] #[doc = "Getter for the `hidden` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn hidden(this: &HtmlElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = hidden)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "hidden" + )] #[doc = "Setter for the `hidden` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_hidden(this: &HtmlElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = tabIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "tabIndex" + )] #[doc = "Getter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn tab_index(this: &HtmlElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = tabIndex)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "tabIndex" + )] #[doc = "Setter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_tab_index(this: &HtmlElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = accessKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "accessKey" + )] #[doc = "Getter for the `accessKey` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = accessKey)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "accessKey" + )] #[doc = "Setter for the `accessKey` field of this object."] #[doc = ""] #[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 set_access_key(this: &HtmlElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = accessKeyLabel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "accessKeyLabel" + )] #[doc = "Getter for the `accessKeyLabel` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = draggable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "draggable" + )] #[doc = "Getter for the `draggable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/draggable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn draggable(this: &HtmlElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = draggable)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "draggable" + )] #[doc = "Setter for the `draggable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/draggable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_draggable(this: &HtmlElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = contentEditable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "contentEditable" + )] #[doc = "Getter for the `contentEditable` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = contentEditable)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "contentEditable" + )] #[doc = "Setter for the `contentEditable` field of this object."] #[doc = ""] #[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 set_content_editable(this: &HtmlElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = isContentEditable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "isContentEditable" + )] #[doc = "Getter for the `isContentEditable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/isContentEditable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn is_content_editable(this: &HtmlElement) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = spellcheck)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "spellcheck" + )] #[doc = "Getter for the `spellcheck` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/spellcheck)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn spellcheck(this: &HtmlElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = spellcheck)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "spellcheck" + )] #[doc = "Setter for the `spellcheck` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/spellcheck)"] @@ -202,1323 +347,2439 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_spellcheck(this: &HtmlElement, value: bool); #[cfg(feature = "CssStyleDeclaration")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = style)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "style" + )] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `HtmlElement`*"] pub fn style(this: &HtmlElement) -> CssStyleDeclaration; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetParent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "offsetParent" + )] #[doc = "Getter for the `offsetParent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_parent(this: &HtmlElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetTop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "offsetTop" + )] #[doc = "Getter for the `offsetTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_top(this: &HtmlElement) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetLeft)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "offsetLeft" + )] #[doc = "Getter for the `offsetLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_left(this: &HtmlElement) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "offsetWidth" + )] #[doc = "Getter for the `offsetWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_width(this: &HtmlElement) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "offsetHeight" + )] #[doc = "Getter for the `offsetHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_height(this: &HtmlElement) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncopy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "oncopy" + )] #[doc = "Getter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncopy(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncopy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "oncopy" + )] #[doc = "Setter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncopy(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncut)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "oncut" + )] #[doc = "Getter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncut(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncut)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "oncut" + )] #[doc = "Setter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncut(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpaste)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpaste" + )] #[doc = "Getter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpaste(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpaste)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpaste" + )] #[doc = "Setter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpaste(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onabort(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onabort(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onblur)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onblur" + )] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onblur(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onblur)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onblur" + )] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onblur(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onfocus)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onfocus" + )] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onfocus(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onfocus)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onfocus" + )] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onfocus(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onauxclick" + )] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onauxclick(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onauxclick" + )] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onauxclick(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncanplay)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "oncanplay" + )] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncanplay(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncanplay)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "oncanplay" + )] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncanplay(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "oncanplaythrough" + )] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncanplaythrough(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "oncanplaythrough" + )] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncanplaythrough(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onchange(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onchange(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onclick" + )] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onclick(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onclick" + )] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onclick(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onclose(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onclose(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "oncontextmenu" + )] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncontextmenu(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "oncontextmenu" + )] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncontextmenu(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondblclick" + )] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondblclick(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondblclick" + )] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondblclick(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondrag)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondrag" + )] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondrag(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondrag)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondrag" + )] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondrag(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondragend" + )] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondragend" + )] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondragenter" + )] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragenter(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondragenter" + )] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragenter(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondragexit" + )] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragexit(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondragexit" + )] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragexit(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondragleave" + )] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragleave(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondragleave" + )] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragleave(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondragover" + )] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragover(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondragover" + )] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragover(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondragstart" + )] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragstart(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondragstart" + )] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragstart(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondrop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondrop" + )] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondrop(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondrop)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondrop" + )] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondrop(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ondurationchange" + )] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondurationchange(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ondurationchange" + )] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondurationchange(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onemptied)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onemptied" + )] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onemptied(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onemptied)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onemptied" + )] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onemptied(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onended" + )] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onended(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onended" + )] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onended(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oninput)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "oninput" + )] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oninput(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oninput)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "oninput" + )] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oninput(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oninvalid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "oninvalid" + )] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oninvalid(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oninvalid)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "oninvalid" + )] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oninvalid(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onkeydown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onkeydown" + )] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onkeydown(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onkeydown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onkeydown" + )] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onkeydown(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onkeypress" + )] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onkeypress(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onkeypress" + )] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onkeypress(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onkeyup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onkeyup" + )] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onkeyup(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onkeyup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onkeyup" + )] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onkeyup(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onload" + )] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onload(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onload" + )] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onload(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onloadeddata" + )] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadeddata(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onloadeddata" + )] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadeddata(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onloadedmetadata" + )] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadedmetadata(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onloadedmetadata" + )] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadedmetadata(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onloadend" + )] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onloadend" + )] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onloadstart" + )] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadstart(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onloadstart" + )] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadstart(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onmousedown" + )] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmousedown(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onmousedown" + )] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmousedown(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onmouseenter" + )] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseenter(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onmouseenter" + )] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseenter(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onmouseleave" + )] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseleave(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onmouseleave" + )] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseleave(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onmousemove" + )] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmousemove(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onmousemove" + )] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmousemove(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onmouseout" + )] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseout(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onmouseout" + )] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseout(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onmouseover" + )] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseover(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onmouseover" + )] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseover(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onmouseup" + )] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseup(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onmouseup" + )] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseup(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwheel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onwheel" + )] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwheel(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwheel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onwheel" + )] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwheel(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpause)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpause" + )] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpause(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpause)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpause" + )] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpause(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onplay)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onplay" + )] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onplay(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onplay)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onplay" + )] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onplay(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onplaying)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onplaying" + )] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onplaying(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onplaying)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onplaying" + )] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onplaying(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onprogress(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onprogress(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onratechange" + )] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onratechange(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onratechange" + )] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onratechange(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onreset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onreset" + )] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onreset(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onreset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onreset" + )] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onreset(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onresize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onresize" + )] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onresize(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onresize)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onresize" + )] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onresize(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onscroll)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onscroll" + )] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onscroll(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onscroll)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onscroll" + )] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onscroll(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onseeked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onseeked" + )] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onseeked(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onseeked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onseeked" + )] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onseeked(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onseeking)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onseeking" + )] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onseeking(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onseeking)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onseeking" + )] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onseeking(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onselect" + )] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onselect(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onselect" + )] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onselect(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onshow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onshow" + )] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onshow(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onshow)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onshow" + )] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onshow(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onstalled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onstalled" + )] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onstalled(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onstalled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onstalled" + )] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onstalled(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onsubmit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onsubmit" + )] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onsubmit(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onsubmit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onsubmit" + )] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onsubmit(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onsuspend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onsuspend" + )] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onsuspend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onsuspend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onsuspend" + )] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onsuspend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontimeupdate" + )] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontimeupdate(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontimeupdate" + )] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontimeupdate(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onvolumechange" + )] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onvolumechange(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onvolumechange" + )] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onvolumechange(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwaiting)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onwaiting" + )] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwaiting(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwaiting)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onwaiting" + )] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwaiting(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onselectstart" + )] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onselectstart(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onselectstart" + )] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onselectstart(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontoggle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontoggle" + )] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontoggle(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontoggle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontoggle" + )] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontoggle(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointercancel" + )] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointercancel(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointercancel" + )] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointercancel(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointerdown" + )] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerdown(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointerdown" + )] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerdown(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointerup" + )] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerup(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointerup" + )] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerup(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointermove" + )] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointermove(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointermove" + )] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointermove(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointerout" + )] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerout(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointerout" + )] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerout(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointerover" + )] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerover(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointerover" + )] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerover(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointerenter" + )] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerenter(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointerenter" + )] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerenter(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onpointerleave" + )] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerleave(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onpointerleave" + )] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerleave(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ongotpointercapture" + )] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ongotpointercapture(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ongotpointercapture" + )] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ongotpointercapture(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onlostpointercapture" + )] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onlostpointercapture(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onlostpointercapture" + )] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onlostpointercapture(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onanimationcancel" + )] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationcancel(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onanimationcancel" + )] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationcancel(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onanimationend" + )] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onanimationend" + )] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onanimationiteration" + )] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationiteration(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onanimationiteration" + )] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationiteration(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onanimationstart" + )] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationstart(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onanimationstart" + )] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationstart(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontransitioncancel" + )] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitioncancel(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontransitioncancel" + )] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitioncancel(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontransitionend" + )] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitionend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontransitionend" + )] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitionend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontransitionrun" + )] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitionrun(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontransitionrun" + )] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitionrun(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontransitionstart" + )] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitionstart(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontransitionstart" + )] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitionstart(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onwebkitanimationend" + )] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkitanimationend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onwebkitanimationend" + )] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkitanimationend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onwebkitanimationiteration" + )] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkitanimationiteration(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onwebkitanimationiteration" + )] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkitanimationiteration(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onwebkitanimationstart" + )] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkitanimationstart(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onwebkitanimationstart" + )] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkitanimationstart(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onwebkittransitionend" + )] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkittransitionend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onwebkittransitionend" + )] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkittransitionend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onerror(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onerror(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontouchstart" + )] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchstart(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontouchstart" + )] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchstart(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontouchend" + )] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchend(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontouchend" + )] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchend(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontouchmove" + )] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchmove(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontouchmove" + )] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchmove(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLElement", + js_name = "ontouchcancel" + )] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchcancel(this: &HtmlElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLElement", + js_name = "ontouchcancel" + )] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchcancel(this: &HtmlElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = blur)] + #[wasm_bindgen(catch, method, structural, js_class = "HTMLElement", js_name = "blur")] #[doc = "The `blur()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn blur(this: &HtmlElement) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "HTMLElement" , js_name = click)] + #[wasm_bindgen(method, structural, js_class = "HTMLElement", js_name = "click")] #[doc = "The `click()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn click(this: &HtmlElement); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = focus)] + #[wasm_bindgen(catch, method, structural, js_class = "HTMLElement", js_name = "focus")] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus)"] diff --git a/crates/web-sys/src/features/gen_HtmlEmbedElement.rs b/crates/web-sys/src/features/gen_HtmlEmbedElement.rs index 704b7d1257c..eb73131ad4e 100644 --- a/crates/web-sys/src/features/gen_HtmlEmbedElement.rs +++ b/crates/web-sys/src/features/gen_HtmlEmbedElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLEmbedElement , typescript_type = "HTMLEmbedElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLEmbedElement", + typescript_type = "HTMLEmbedElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlEmbedElement` class."] #[doc = ""] @@ -11,84 +19,156 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub type HtmlEmbedElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLEmbedElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLEmbedElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlEmbedElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLEmbedElement", + 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/HTMLEmbedElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn type_(this: &HtmlEmbedElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLEmbedElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlEmbedElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLEmbedElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLEmbedElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[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 set_width(this: &HtmlEmbedElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLEmbedElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLEmbedElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[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 set_height(this: &HtmlEmbedElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLEmbedElement", + 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/HTMLEmbedElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn align(this: &HtmlEmbedElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLEmbedElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlEmbedElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLEmbedElement", + 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/HTMLEmbedElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn name(this: &HtmlEmbedElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLEmbedElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"] @@ -96,7 +176,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn set_name(this: &HtmlEmbedElement, value: &str); #[cfg(feature = "Document")] - # [wasm_bindgen (method , structural , js_class = "HTMLEmbedElement" , js_name = getSVGDocument)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLEmbedElement", + js_name = "getSVGDocument" + )] #[doc = "The `getSVGDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/getSVGDocument)"] diff --git a/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs b/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs index 8c32c017118..f3136d97546 100644 --- a/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFieldSetElement , typescript_type = "HTMLFieldSetElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLFieldSetElement", + typescript_type = "HTMLFieldSetElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFieldSetElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub type HtmlFieldSetElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFieldSetElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn disabled(this: &HtmlFieldSetElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFieldSetElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"] @@ -26,28 +46,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn set_disabled(this: &HtmlFieldSetElement, value: bool); #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFieldSetElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `HtmlFormElement`*"] pub fn form(this: &HtmlFieldSetElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFieldSetElement", + 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/HTMLFieldSetElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn name(this: &HtmlFieldSetElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFieldSetElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlFieldSetElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFieldSetElement", + 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/HTMLFieldSetElement/type)"] @@ -55,14 +99,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn type_(this: &HtmlFieldSetElement) -> String; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = elements)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFieldSetElement", + js_name = "elements" + )] #[doc = "Getter for the `elements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/elements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFieldSetElement`*"] pub fn elements(this: &HtmlFieldSetElement) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = willValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFieldSetElement", + js_name = "willValidate" + )] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/willValidate)"] @@ -70,35 +126,63 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn will_validate(this: &HtmlFieldSetElement) -> bool; #[cfg(feature = "ValidityState")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = validity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFieldSetElement", + js_name = "validity" + )] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `ValidityState`*"] pub fn validity(this: &HtmlFieldSetElement) -> ValidityState; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLFieldSetElement" , js_name = validationMessage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLFieldSetElement", + js_name = "validationMessage" + )] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLFieldSetElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn check_validity(this: &HtmlFieldSetElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLFieldSetElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn report_validity(this: &HtmlFieldSetElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = setCustomValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLFieldSetElement", + js_name = "setCustomValidity" + )] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/setCustomValidity)"] diff --git a/crates/web-sys/src/features/gen_HtmlFontElement.rs b/crates/web-sys/src/features/gen_HtmlFontElement.rs index d12ce40cceb..4f8124247f2 100644 --- a/crates/web-sys/src/features/gen_HtmlFontElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFontElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFontElement , typescript_type = "HTMLFontElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLFontElement", + typescript_type = "HTMLFontElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFontElement` class."] #[doc = ""] @@ -11,42 +19,78 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub type HtmlFontElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFontElement" , js_name = color)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFontElement", + js_name = "color" + )] #[doc = "Getter for the `color` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = color)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFontElement", + js_name = "color" + )] #[doc = "Setter for the `color` field of this object."] #[doc = ""] #[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 set_color(this: &HtmlFontElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFontElement" , js_name = face)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFontElement", + js_name = "face" + )] #[doc = "Getter for the `face` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = face)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFontElement", + js_name = "face" + )] #[doc = "Setter for the `face` field of this object."] #[doc = ""] #[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 set_face(this: &HtmlFontElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFontElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFontElement", + js_name = "size" + )] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFontElement", + js_name = "size" + )] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/size)"] diff --git a/crates/web-sys/src/features/gen_HtmlFormControlsCollection.rs b/crates/web-sys/src/features/gen_HtmlFormControlsCollection.rs index 1972cc54b0f..844a928638d 100644 --- a/crates/web-sys/src/features/gen_HtmlFormControlsCollection.rs +++ b/crates/web-sys/src/features/gen_HtmlFormControlsCollection.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlCollection , extends = :: js_sys :: Object , js_name = HTMLFormControlsCollection , typescript_type = "HTMLFormControlsCollection")] + #[wasm_bindgen( + extends = "HtmlCollection", + extends = "::js_sys::Object", + js_name = "HTMLFormControlsCollection", + typescript_type = "HTMLFormControlsCollection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFormControlsCollection` class."] #[doc = ""] @@ -11,7 +16,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormControlsCollection`*"] pub type HtmlFormControlsCollection; - # [wasm_bindgen (method , structural , js_class = "HTMLFormControlsCollection" , js_name = namedItem)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLFormControlsCollection", + js_name = "namedItem" + )] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection/namedItem)"] diff --git a/crates/web-sys/src/features/gen_HtmlFormElement.rs b/crates/web-sys/src/features/gen_HtmlFormElement.rs index 0b8e49735ab..a5c68e38b23 100644 --- a/crates/web-sys/src/features/gen_HtmlFormElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFormElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFormElement , typescript_type = "HTMLFormElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLFormElement", + typescript_type = "HTMLFormElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFormElement` class."] #[doc = ""] @@ -11,126 +19,234 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub type HtmlFormElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = acceptCharset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "acceptCharset" + )] #[doc = "Getter for the `acceptCharset` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = acceptCharset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "acceptCharset" + )] #[doc = "Setter for the `acceptCharset` field of this object."] #[doc = ""] #[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 set_accept_charset(this: &HtmlFormElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = action)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "action" + )] #[doc = "Getter for the `action` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = action)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "action" + )] #[doc = "Setter for the `action` field of this object."] #[doc = ""] #[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 set_action(this: &HtmlFormElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "autocomplete" + )] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "autocomplete" + )] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[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 set_autocomplete(this: &HtmlFormElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = enctype)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "enctype" + )] #[doc = "Getter for the `enctype` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = enctype)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "enctype" + )] #[doc = "Setter for the `enctype` field of this object."] #[doc = ""] #[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 set_enctype(this: &HtmlFormElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = encoding)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "encoding" + )] #[doc = "Getter for the `encoding` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = encoding)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "encoding" + )] #[doc = "Setter for the `encoding` field of this object."] #[doc = ""] #[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 set_encoding(this: &HtmlFormElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = method)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "method" + )] #[doc = "Getter for the `method` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = method)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "method" + )] #[doc = "Setter for the `method` field of this object."] #[doc = ""] #[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 set_method(this: &HtmlFormElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + 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/HTMLFormElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn name(this: &HtmlFormElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlFormElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = noValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "noValidate" + )] #[doc = "Getter for the `noValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn no_validate(this: &HtmlFormElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = noValidate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "noValidate" + )] #[doc = "Setter for the `noValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_no_validate(this: &HtmlFormElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFormElement", + js_name = "target" + )] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"] @@ -138,42 +254,70 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_target(this: &HtmlFormElement, value: &str); #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = elements)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "elements" + )] #[doc = "Getter for the `elements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFormElement`*"] pub fn elements(this: &HtmlFormElement) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFormElement", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn length(this: &HtmlFormElement) -> i32; - # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLFormElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn check_validity(this: &HtmlFormElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLFormElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn report_validity(this: &HtmlFormElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "HTMLFormElement", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn reset(this: &HtmlFormElement); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = submit)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLFormElement", + js_name = "submit" + )] #[doc = "The `submit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit)"] diff --git a/crates/web-sys/src/features/gen_HtmlFrameElement.rs b/crates/web-sys/src/features/gen_HtmlFrameElement.rs index 6f7b5afc430..bff6bbd7afc 100644 --- a/crates/web-sys/src/features/gen_HtmlFrameElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFrameElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFrameElement , typescript_type = "HTMLFrameElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLFrameElement", + typescript_type = "HTMLFrameElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFrameElement` class."] #[doc = ""] @@ -11,84 +19,156 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub type HtmlFrameElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + 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/HTMLFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn name(this: &HtmlFrameElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = scrolling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "scrolling" + )] #[doc = "Getter for the `scrolling` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = scrolling)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "scrolling" + )] #[doc = "Setter for the `scrolling` field of this object."] #[doc = ""] #[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 set_scrolling(this: &HtmlFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = frameBorder)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "frameBorder" + )] #[doc = "Getter for the `frameBorder` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = frameBorder)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "frameBorder" + )] #[doc = "Setter for the `frameBorder` field of this object."] #[doc = ""] #[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 set_frame_border(this: &HtmlFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = longDesc)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "longDesc" + )] #[doc = "Getter for the `longDesc` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = longDesc)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "longDesc" + )] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] #[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 set_long_desc(this: &HtmlFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = noResize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "noResize" + )] #[doc = "Getter for the `noResize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn no_resize(this: &HtmlFrameElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = noResize)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "noResize" + )] #[doc = "Setter for the `noResize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"] @@ -96,7 +176,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_no_resize(this: &HtmlFrameElement, value: bool); #[cfg(feature = "Document")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = contentDocument)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "contentDocument" + )] #[doc = "Getter for the `contentDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentDocument)"] @@ -104,35 +190,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlFrameElement`*"] pub fn content_document(this: &HtmlFrameElement) -> Option; #[cfg(feature = "Window")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = contentWindow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "contentWindow" + )] #[doc = "Getter for the `contentWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`, `Window`*"] pub fn content_window(this: &HtmlFrameElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = marginHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "marginHeight" + )] #[doc = "Getter for the `marginHeight` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginHeight)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "marginHeight" + )] #[doc = "Setter for the `marginHeight` field of this object."] #[doc = ""] #[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 set_margin_height(this: &HtmlFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = marginWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameElement", + js_name = "marginWidth" + )] #[doc = "Getter for the `marginWidth` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginWidth)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameElement", + js_name = "marginWidth" + )] #[doc = "Setter for the `marginWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"] diff --git a/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs b/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs index eeda63cfabb..4caf8520d9f 100644 --- a/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFrameSetElement , typescript_type = "HTMLFrameSetElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLFrameSetElement", + typescript_type = "HTMLFrameSetElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFrameSetElement` class."] #[doc = ""] @@ -11,224 +19,416 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub type HtmlFrameSetElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = cols)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "cols" + )] #[doc = "Getter for the `cols` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = cols)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "cols" + )] #[doc = "Setter for the `cols` field of this object."] #[doc = ""] #[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 set_cols(this: &HtmlFrameSetElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = rows)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "rows" + )] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = rows)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "rows" + )] #[doc = "Setter for the `rows` field of this object."] #[doc = ""] #[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 set_rows(this: &HtmlFrameSetElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onafterprint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onafterprint" + )] #[doc = "Getter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onafterprint(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onafterprint)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onafterprint" + )] #[doc = "Setter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onafterprint(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onbeforeprint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onbeforeprint" + )] #[doc = "Getter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onbeforeprint(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onbeforeprint)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onbeforeprint" + )] #[doc = "Setter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onbeforeprint(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onbeforeunload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onbeforeunload" + )] #[doc = "Getter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onbeforeunload(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onbeforeunload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onbeforeunload" + )] #[doc = "Setter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onbeforeunload(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onhashchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onhashchange" + )] #[doc = "Getter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onhashchange(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onhashchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onhashchange" + )] #[doc = "Setter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onhashchange(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onlanguagechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onlanguagechange" + )] #[doc = "Getter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onlanguagechange(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onlanguagechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onlanguagechange" + )] #[doc = "Setter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onlanguagechange(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onmessage(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onmessage(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onmessageerror" + )] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onmessageerror(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onmessageerror" + )] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onmessageerror(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onoffline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onoffline" + )] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onoffline(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onoffline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onoffline" + )] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onoffline(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = ononline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "ononline" + )] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn ononline(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = ononline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "ononline" + )] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_ononline(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpagehide)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onpagehide" + )] #[doc = "Getter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onpagehide(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpagehide)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onpagehide" + )] #[doc = "Setter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onpagehide(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpageshow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onpageshow" + )] #[doc = "Getter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onpageshow(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpageshow)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onpageshow" + )] #[doc = "Setter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onpageshow(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpopstate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onpopstate" + )] #[doc = "Getter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onpopstate(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpopstate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onpopstate" + )] #[doc = "Setter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onpopstate(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onstorage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onstorage" + )] #[doc = "Getter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onstorage(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onstorage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onstorage" + )] #[doc = "Setter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onstorage(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onunload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLFrameSetElement", + js_name = "onunload" + )] #[doc = "Getter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onunload(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onunload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLFrameSetElement", + js_name = "onunload" + )] #[doc = "Setter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onunload)"] diff --git a/crates/web-sys/src/features/gen_HtmlHeadElement.rs b/crates/web-sys/src/features/gen_HtmlHeadElement.rs index 23fbca796fb..70315855447 100644 --- a/crates/web-sys/src/features/gen_HtmlHeadElement.rs +++ b/crates/web-sys/src/features/gen_HtmlHeadElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHeadElement , typescript_type = "HTMLHeadElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLHeadElement", + typescript_type = "HTMLHeadElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHeadElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlHeadingElement.rs b/crates/web-sys/src/features/gen_HtmlHeadingElement.rs index 0819e7dd80e..80c2e39e550 100644 --- a/crates/web-sys/src/features/gen_HtmlHeadingElement.rs +++ b/crates/web-sys/src/features/gen_HtmlHeadingElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHeadingElement , typescript_type = "HTMLHeadingElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLHeadingElement", + typescript_type = "HTMLHeadingElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHeadingElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] pub type HtmlHeadingElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLHeadingElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLHeadingElement", + 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/HTMLHeadingElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] pub fn align(this: &HtmlHeadingElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLHeadingElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLHeadingElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement/align)"] diff --git a/crates/web-sys/src/features/gen_HtmlHrElement.rs b/crates/web-sys/src/features/gen_HtmlHrElement.rs index 90b7b9b3523..386351267cd 100644 --- a/crates/web-sys/src/features/gen_HtmlHrElement.rs +++ b/crates/web-sys/src/features/gen_HtmlHrElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHRElement , typescript_type = "HTMLHRElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLHRElement", + typescript_type = "HTMLHRElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHrElement` class."] #[doc = ""] @@ -11,70 +19,130 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub type HtmlHrElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLHRElement", + 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/HTMLHRElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn align(this: &HtmlHrElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLHRElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlHrElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = color)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLHRElement", + js_name = "color" + )] #[doc = "Getter for the `color` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = color)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLHRElement", + js_name = "color" + )] #[doc = "Setter for the `color` field of this object."] #[doc = ""] #[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 set_color(this: &HtmlHrElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = noShade)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLHRElement", + js_name = "noShade" + )] #[doc = "Getter for the `noShade` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn no_shade(this: &HtmlHrElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = noShade)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLHRElement", + js_name = "noShade" + )] #[doc = "Setter for the `noShade` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn set_no_shade(this: &HtmlHrElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLHRElement", + js_name = "size" + )] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLHRElement", + js_name = "size" + )] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[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 set_size(this: &HtmlHrElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLHRElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLHRElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"] diff --git a/crates/web-sys/src/features/gen_HtmlHtmlElement.rs b/crates/web-sys/src/features/gen_HtmlHtmlElement.rs index f3f8c63e35d..5d43155e459 100644 --- a/crates/web-sys/src/features/gen_HtmlHtmlElement.rs +++ b/crates/web-sys/src/features/gen_HtmlHtmlElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHtmlElement , typescript_type = "HTMLHtmlElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLHtmlElement", + typescript_type = "HTMLHtmlElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHtmlElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] pub type HtmlHtmlElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLHtmlElement" , js_name = version)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLHtmlElement", + 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/HTMLHtmlElement/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] pub fn version(this: &HtmlHtmlElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLHtmlElement" , js_name = version)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLHtmlElement", + js_name = "version" + )] #[doc = "Setter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement/version)"] diff --git a/crates/web-sys/src/features/gen_HtmlIFrameElement.rs b/crates/web-sys/src/features/gen_HtmlIFrameElement.rs index 5a284529311..b76c9731e6f 100644 --- a/crates/web-sys/src/features/gen_HtmlIFrameElement.rs +++ b/crates/web-sys/src/features/gen_HtmlIFrameElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLIFrameElement , typescript_type = "HTMLIFrameElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLIFrameElement", + typescript_type = "HTMLIFrameElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlIFrameElement` class."] #[doc = ""] @@ -11,42 +19,78 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub type HtmlIFrameElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = srcdoc)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "srcdoc" + )] #[doc = "Getter for the `srcdoc` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = srcdoc)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "srcdoc" + )] #[doc = "Setter for the `srcdoc` field of this object."] #[doc = ""] #[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 set_srcdoc(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + 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/HTMLIFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn name(this: &HtmlIFrameElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"] @@ -54,77 +98,143 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_name(this: &HtmlIFrameElement, value: &str); #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = sandbox)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "sandbox" + )] #[doc = "Getter for the `sandbox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/sandbox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlIFrameElement`*"] pub fn sandbox(this: &HtmlIFrameElement) -> DomTokenList; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "allowFullscreen" + )] #[doc = "Getter for the `allowFullscreen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn allow_fullscreen(this: &HtmlIFrameElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "allowFullscreen" + )] #[doc = "Setter for the `allowFullscreen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_allow_fullscreen(this: &HtmlIFrameElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "allowPaymentRequest" + )] #[doc = "Getter for the `allowPaymentRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn allow_payment_request(this: &HtmlIFrameElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "allowPaymentRequest" + )] #[doc = "Setter for the `allowPaymentRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_allow_payment_request(this: &HtmlIFrameElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[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 set_width(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[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 set_height(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "referrerPolicy" + )] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "referrerPolicy" + )] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"] @@ -132,7 +242,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_referrer_policy(this: &HtmlIFrameElement, value: &str); #[cfg(feature = "Document")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentDocument)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "contentDocument" + )] #[doc = "Getter for the `contentDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentDocument)"] @@ -140,91 +256,169 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"] pub fn content_document(this: &HtmlIFrameElement) -> Option; #[cfg(feature = "Window")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentWindow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "contentWindow" + )] #[doc = "Getter for the `contentWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`, `Window`*"] pub fn content_window(this: &HtmlIFrameElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + 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/HTMLIFrameElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn align(this: &HtmlIFrameElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = scrolling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "scrolling" + )] #[doc = "Getter for the `scrolling` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = scrolling)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "scrolling" + )] #[doc = "Setter for the `scrolling` field of this object."] #[doc = ""] #[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 set_scrolling(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = frameBorder)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "frameBorder" + )] #[doc = "Getter for the `frameBorder` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = frameBorder)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "frameBorder" + )] #[doc = "Setter for the `frameBorder` field of this object."] #[doc = ""] #[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 set_frame_border(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = longDesc)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "longDesc" + )] #[doc = "Getter for the `longDesc` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = longDesc)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "longDesc" + )] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] #[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 set_long_desc(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "marginHeight" + )] #[doc = "Getter for the `marginHeight` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginHeight)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "marginHeight" + )] #[doc = "Setter for the `marginHeight` field of this object."] #[doc = ""] #[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 set_margin_height(this: &HtmlIFrameElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLIFrameElement", + js_name = "marginWidth" + )] #[doc = "Getter for the `marginWidth` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginWidth)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLIFrameElement", + js_name = "marginWidth" + )] #[doc = "Setter for the `marginWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"] @@ -232,7 +426,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_margin_width(this: &HtmlIFrameElement, value: &str); #[cfg(feature = "Document")] - # [wasm_bindgen (method , structural , js_class = "HTMLIFrameElement" , js_name = getSVGDocument)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLIFrameElement", + js_name = "getSVGDocument" + )] #[doc = "The `getSVGDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/getSVGDocument)"] diff --git a/crates/web-sys/src/features/gen_HtmlImageElement.rs b/crates/web-sys/src/features/gen_HtmlImageElement.rs index 692dc64b63b..ba5e5e38bf6 100644 --- a/crates/web-sys/src/features/gen_HtmlImageElement.rs +++ b/crates/web-sys/src/features/gen_HtmlImageElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLImageElement , typescript_type = "HTMLImageElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLImageElement", + typescript_type = "HTMLImageElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlImageElement` class."] #[doc = ""] @@ -11,266 +19,494 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub type HtmlImageElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = alt)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "alt" + )] #[doc = "Getter for the `alt` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = alt)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "alt" + )] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] #[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 set_alt(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = srcset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "srcset" + )] #[doc = "Getter for the `srcset` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = srcset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "srcset" + )] #[doc = "Setter for the `srcset` field of this object."] #[doc = ""] #[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 set_srcset(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "crossOrigin" + )] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "crossOrigin" + )] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[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 set_cross_origin(this: &HtmlImageElement, value: Option<&str>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = useMap)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "useMap" + )] #[doc = "Getter for the `useMap` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = useMap)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "useMap" + )] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] #[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 set_use_map(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "referrerPolicy" + )] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "referrerPolicy" + )] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[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 set_referrer_policy(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = isMap)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "isMap" + )] #[doc = "Getter for the `isMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/isMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn is_map(this: &HtmlImageElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = isMap)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "isMap" + )] #[doc = "Setter for the `isMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/isMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_is_map(this: &HtmlImageElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn width(this: &HtmlImageElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_width(this: &HtmlImageElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn height(this: &HtmlImageElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_height(this: &HtmlImageElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = decoding)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "decoding" + )] #[doc = "Getter for the `decoding` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = decoding)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "decoding" + )] #[doc = "Setter for the `decoding` field of this object."] #[doc = ""] #[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 set_decoding(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = naturalWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "naturalWidth" + )] #[doc = "Getter for the `naturalWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn natural_width(this: &HtmlImageElement) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = naturalHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "naturalHeight" + )] #[doc = "Getter for the `naturalHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn natural_height(this: &HtmlImageElement) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = complete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "complete" + )] #[doc = "Getter for the `complete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn complete(this: &HtmlImageElement) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + 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/HTMLImageElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn name(this: &HtmlImageElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + 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/HTMLImageElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn align(this: &HtmlImageElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = hspace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "hspace" + )] #[doc = "Getter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn hspace(this: &HtmlImageElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = hspace)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "hspace" + )] #[doc = "Setter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_hspace(this: &HtmlImageElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = vspace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "vspace" + )] #[doc = "Getter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn vspace(this: &HtmlImageElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = vspace)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "vspace" + )] #[doc = "Setter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_vspace(this: &HtmlImageElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = longDesc)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "longDesc" + )] #[doc = "Getter for the `longDesc` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = longDesc)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "longDesc" + )] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] #[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 set_long_desc(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = border)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "border" + )] #[doc = "Getter for the `border` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = border)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "border" + )] #[doc = "Setter for the `border` field of this object."] #[doc = ""] #[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 set_border(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = sizes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "sizes" + )] #[doc = "Getter for the `sizes` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = sizes)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLImageElement", + js_name = "sizes" + )] #[doc = "Setter for the `sizes` field of this object."] #[doc = ""] #[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 set_sizes(this: &HtmlImageElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = currentSrc)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLImageElement", + js_name = "currentSrc" + )] #[doc = "Getter for the `currentSrc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/currentSrc)"] @@ -298,7 +534,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn new_with_width_and_height(width: u32, height: u32) -> Result; - # [wasm_bindgen (method , structural , js_class = "HTMLImageElement" , js_name = decode)] + #[wasm_bindgen(method, structural, js_class = "HTMLImageElement", js_name = "decode")] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decode)"] diff --git a/crates/web-sys/src/features/gen_HtmlInputElement.rs b/crates/web-sys/src/features/gen_HtmlInputElement.rs index 4c51bf220a6..bc4f9fcf66b 100644 --- a/crates/web-sys/src/features/gen_HtmlInputElement.rs +++ b/crates/web-sys/src/features/gen_HtmlInputElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLInputElement , typescript_type = "HTMLInputElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLInputElement", + typescript_type = "HTMLInputElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlInputElement` class."] #[doc = ""] @@ -11,98 +19,182 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub type HtmlInputElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = accept)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "accept" + )] #[doc = "Getter for the `accept` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = accept)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "accept" + )] #[doc = "Setter for the `accept` field of this object."] #[doc = ""] #[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 set_accept(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = alt)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "alt" + )] #[doc = "Getter for the `alt` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = alt)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "alt" + )] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] #[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 set_alt(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "autocomplete" + )] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "autocomplete" + )] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[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 set_autocomplete(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "autofocus" + )] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn autofocus(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "autofocus" + )] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_autofocus(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultChecked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "defaultChecked" + )] #[doc = "Getter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn default_checked(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultChecked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "defaultChecked" + )] #[doc = "Setter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_default_checked(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = checked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "checked" + )] #[doc = "Getter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn checked(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = checked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "checked" + )] #[doc = "Setter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_checked(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn disabled(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)"] @@ -110,7 +202,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_disabled(this: &HtmlInputElement, value: bool); #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/form)"] @@ -118,7 +216,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlInputElement`*"] pub fn form(this: &HtmlInputElement) -> Option; #[cfg(feature = "FileList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = files)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "files" + )] #[doc = "Getter for the `files` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)"] @@ -126,385 +230,715 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*"] pub fn files(this: &HtmlInputElement) -> Option; #[cfg(feature = "FileList")] - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = files)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "files" + )] #[doc = "Setter for the `files` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*"] pub fn set_files(this: &HtmlInputElement, value: Option<&FileList>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formAction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "formAction" + )] #[doc = "Getter for the `formAction` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formAction)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "formAction" + )] #[doc = "Setter for the `formAction` field of this object."] #[doc = ""] #[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 set_form_action(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formEnctype)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "formEnctype" + )] #[doc = "Getter for the `formEnctype` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formEnctype)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "formEnctype" + )] #[doc = "Setter for the `formEnctype` field of this object."] #[doc = ""] #[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 set_form_enctype(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formMethod)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "formMethod" + )] #[doc = "Getter for the `formMethod` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formMethod)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "formMethod" + )] #[doc = "Setter for the `formMethod` field of this object."] #[doc = ""] #[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 set_form_method(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formNoValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "formNoValidate" + )] #[doc = "Getter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn form_no_validate(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formNoValidate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "formNoValidate" + )] #[doc = "Setter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_form_no_validate(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formTarget)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "formTarget" + )] #[doc = "Getter for the `formTarget` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formTarget)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "formTarget" + )] #[doc = "Setter for the `formTarget` field of this object."] #[doc = ""] #[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 set_form_target(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn height(this: &HtmlInputElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_height(this: &HtmlInputElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = indeterminate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "indeterminate" + )] #[doc = "Getter for the `indeterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn indeterminate(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = indeterminate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "indeterminate" + )] #[doc = "Setter for the `indeterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_indeterminate(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = inputMode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "inputMode" + )] #[doc = "Getter for the `inputMode` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = inputMode)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "inputMode" + )] #[doc = "Setter for the `inputMode` field of this object."] #[doc = ""] #[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 set_input_mode(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = list)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "list" + )] #[doc = "Getter for the `list` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/list)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn list(this: &HtmlInputElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = max)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "max" + )] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = max)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "max" + )] #[doc = "Setter for the `max` field of this object."] #[doc = ""] #[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 set_max(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = maxLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "maxLength" + )] #[doc = "Getter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn max_length(this: &HtmlInputElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = maxLength)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "maxLength" + )] #[doc = "Setter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_max_length(this: &HtmlInputElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = min)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "min" + )] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = min)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "min" + )] #[doc = "Setter for the `min` field of this object."] #[doc = ""] #[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 set_min(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = minLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "minLength" + )] #[doc = "Getter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn min_length(this: &HtmlInputElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = minLength)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "minLength" + )] #[doc = "Setter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_min_length(this: &HtmlInputElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = multiple)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "multiple" + )] #[doc = "Getter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn multiple(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = multiple)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "multiple" + )] #[doc = "Setter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_multiple(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + 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/HTMLInputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn name(this: &HtmlInputElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = pattern)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "pattern" + )] #[doc = "Getter for the `pattern` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = pattern)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "pattern" + )] #[doc = "Setter for the `pattern` field of this object."] #[doc = ""] #[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 set_pattern(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = placeholder)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "placeholder" + )] #[doc = "Getter for the `placeholder` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = placeholder)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "placeholder" + )] #[doc = "Setter for the `placeholder` field of this object."] #[doc = ""] #[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 set_placeholder(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = readOnly)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "readOnly" + )] #[doc = "Getter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn read_only(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = readOnly)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "readOnly" + )] #[doc = "Setter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_read_only(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = required)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "required" + )] #[doc = "Getter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn required(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = required)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "required" + )] #[doc = "Setter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_required(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "size" + )] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn size(this: &HtmlInputElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "size" + )] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_size(this: &HtmlInputElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = step)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "step" + )] #[doc = "Getter for the `step` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = step)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "step" + )] #[doc = "Setter for the `step` field of this object."] #[doc = ""] #[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 set_step(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + 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/HTMLInputElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn type_(this: &HtmlInputElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + 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/HTMLInputElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn default_value(this: &HtmlInputElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultValue)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "defaultValue" + )] #[doc = "Setter for the `defaultValue` field of this object."] #[doc = ""] #[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 set_default_value(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + 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/HTMLInputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn value(this: &HtmlInputElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_value(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = valueAsNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "valueAsNumber" + )] #[doc = "Getter for the `valueAsNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn value_as_number(this: &HtmlInputElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = valueAsNumber)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "valueAsNumber" + )] #[doc = "Setter for the `valueAsNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_value_as_number(this: &HtmlInputElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn width(this: &HtmlInputElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_width(this: &HtmlInputElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = willValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "willValidate" + )] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/willValidate)"] @@ -512,14 +946,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn will_validate(this: &HtmlInputElement) -> bool; #[cfg(feature = "ValidityState")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = validity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "validity" + )] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `ValidityState`*"] pub fn validity(this: &HtmlInputElement) -> ValidityState; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = validationMessage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLInputElement", + js_name = "validationMessage" + )] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage)"] @@ -527,49 +974,97 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn validation_message(this: &HtmlInputElement) -> Result; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = labels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "labels" + )] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `NodeList`*"] pub fn labels(this: &HtmlInputElement) -> Option; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionStart)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLInputElement", + js_name = "selectionStart" + )] #[doc = "Getter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn selection_start(this: &HtmlInputElement) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionStart)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLInputElement", + js_name = "selectionStart" + )] #[doc = "Setter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_selection_start(this: &HtmlInputElement, value: Option) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionEnd)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLInputElement", + js_name = "selectionEnd" + )] #[doc = "Getter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn selection_end(this: &HtmlInputElement) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionEnd)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLInputElement", + js_name = "selectionEnd" + )] #[doc = "Setter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_selection_end(this: &HtmlInputElement, value: Option) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionDirection)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLInputElement", + js_name = "selectionDirection" + )] #[doc = "Getter for the `selectionDirection` field of this object."] #[doc = ""] #[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>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionDirection)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLInputElement", + js_name = "selectionDirection" + )] #[doc = "Setter for the `selectionDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)"] @@ -579,91 +1074,160 @@ extern "C" { this: &HtmlInputElement, value: Option<&str>, ) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + 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/HTMLInputElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn align(this: &HtmlInputElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = useMap)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "useMap" + )] #[doc = "Getter for the `useMap` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = useMap)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "useMap" + )] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] #[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 set_use_map(this: &HtmlInputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitEntries)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "webkitEntries" + )] #[doc = "Getter for the `webkitEntries` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn webkit_entries(this: &HtmlInputElement) -> ::js_sys::Array; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitdirectory)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLInputElement", + js_name = "webkitdirectory" + )] #[doc = "Getter for the `webkitdirectory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn webkitdirectory(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = webkitdirectory)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLInputElement", + js_name = "webkitdirectory" + )] #[doc = "Setter for the `webkitdirectory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_webkitdirectory(this: &HtmlInputElement, value: bool); - # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLInputElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn check_validity(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLInputElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn report_validity(this: &HtmlInputElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = select)] + #[wasm_bindgen(method, structural, js_class = "HTMLInputElement", js_name = "select")] #[doc = "The `select()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn select(this: &HtmlInputElement); - # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = setCustomValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLInputElement", + js_name = "setCustomValidity" + )] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_custom_validity(this: &HtmlInputElement, error: &str); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLInputElement", + js_name = "setRangeText" + )] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_range_text(this: &HtmlInputElement, replacement: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLInputElement", + js_name = "setRangeText" + )] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)"] @@ -675,7 +1239,13 @@ extern "C" { start: u32, end: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLInputElement", + js_name = "setSelectionRange" + )] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)"] @@ -686,7 +1256,13 @@ extern "C" { start: u32, end: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLInputElement", + js_name = "setSelectionRange" + )] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)"] diff --git a/crates/web-sys/src/features/gen_HtmlLabelElement.rs b/crates/web-sys/src/features/gen_HtmlLabelElement.rs index 184ce648f6d..ab872f197f4 100644 --- a/crates/web-sys/src/features/gen_HtmlLabelElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLabelElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLabelElement , typescript_type = "HTMLLabelElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLLabelElement", + typescript_type = "HTMLLabelElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLabelElement` class."] #[doc = ""] @@ -12,28 +20,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] pub type HtmlLabelElement; #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLabelElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLabelElement`*"] pub fn form(this: &HtmlLabelElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = htmlFor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLabelElement", + js_name = "htmlFor" + )] #[doc = "Getter for the `htmlFor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLabelElement" , js_name = htmlFor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLabelElement", + js_name = "htmlFor" + )] #[doc = "Setter for the `htmlFor` field of this object."] #[doc = ""] #[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 set_html_for(this: &HtmlLabelElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = control)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLabelElement", + js_name = "control" + )] #[doc = "Getter for the `control` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control)"] diff --git a/crates/web-sys/src/features/gen_HtmlLegendElement.rs b/crates/web-sys/src/features/gen_HtmlLegendElement.rs index 36ce3bda001..48c804b0528 100644 --- a/crates/web-sys/src/features/gen_HtmlLegendElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLegendElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLegendElement , typescript_type = "HTMLLegendElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLLegendElement", + typescript_type = "HTMLLegendElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLegendElement` class."] #[doc = ""] @@ -12,21 +20,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] pub type HtmlLegendElement; #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLegendElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLegendElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLegendElement`*"] pub fn form(this: &HtmlLegendElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLegendElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLegendElement", + 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/HTMLLegendElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] pub fn align(this: &HtmlLegendElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLegendElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLegendElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"] diff --git a/crates/web-sys/src/features/gen_HtmlLiElement.rs b/crates/web-sys/src/features/gen_HtmlLiElement.rs index 3a5db06c89d..cf1a542c472 100644 --- a/crates/web-sys/src/features/gen_HtmlLiElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLiElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLIElement , typescript_type = "HTMLLIElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLLIElement", + typescript_type = "HTMLLIElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLiElement` class."] #[doc = ""] @@ -11,28 +19,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub type HtmlLiElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLIElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLIElement", + 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/HTMLLIElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub fn value(this: &HtmlLiElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLIElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLIElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub fn set_value(this: &HtmlLiElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLIElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLIElement", + 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/HTMLLIElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub fn type_(this: &HtmlLiElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLIElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLIElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/type)"] diff --git a/crates/web-sys/src/features/gen_HtmlLinkElement.rs b/crates/web-sys/src/features/gen_HtmlLinkElement.rs index c947f16c059..dcbeac8f5d3 100644 --- a/crates/web-sys/src/features/gen_HtmlLinkElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLinkElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLinkElement , typescript_type = "HTMLLinkElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLLinkElement", + typescript_type = "HTMLLinkElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLinkElement` class."] #[doc = ""] @@ -11,56 +19,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub type HtmlLinkElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn disabled(this: &HtmlLinkElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_disabled(this: &HtmlLinkElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + 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/HTMLLinkElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn href(this: &HtmlLinkElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "href" + )] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[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 set_href(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "crossOrigin" + )] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "crossOrigin" + )] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[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 set_cross_origin(this: &HtmlLinkElement, value: Option<&str>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = rel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "rel" + )] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "rel" + )] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"] @@ -68,63 +124,117 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_rel(this: &HtmlLinkElement, value: &str); #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = relList)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "relList" + )] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"] pub fn rel_list(this: &HtmlLinkElement) -> DomTokenList; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "media" + )] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[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 set_media(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = hreflang)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "hreflang" + )] #[doc = "Getter for the `hreflang` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = hreflang)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "hreflang" + )] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] #[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 set_hreflang(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + 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/HTMLLinkElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn type_(this: &HtmlLinkElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "referrerPolicy" + )] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "referrerPolicy" + )] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"] @@ -132,77 +242,143 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_referrer_policy(this: &HtmlLinkElement, value: &str); #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = sizes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "sizes" + )] #[doc = "Getter for the `sizes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"] pub fn sizes(this: &HtmlLinkElement) -> DomTokenList; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = charset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + 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/HTMLLinkElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn charset(this: &HtmlLinkElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = charset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "charset" + )] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] #[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 set_charset(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = rev)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "rev" + )] #[doc = "Getter for the `rev` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rev)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "rev" + )] #[doc = "Setter for the `rev` field of this object."] #[doc = ""] #[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 set_rev(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "target" + )] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[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 set_target(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = integrity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "integrity" + )] #[doc = "Getter for the `integrity` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = integrity)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "integrity" + )] #[doc = "Setter for the `integrity` field of this object."] #[doc = ""] #[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 set_integrity(this: &HtmlLinkElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = as)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "as" + )] #[doc = "Getter for the `as` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = as)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLLinkElement", + js_name = "as" + )] #[doc = "Setter for the `as` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"] @@ -210,7 +386,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_as(this: &HtmlLinkElement, value: &str); #[cfg(feature = "StyleSheet")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = sheet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLLinkElement", + js_name = "sheet" + )] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sheet)"] diff --git a/crates/web-sys/src/features/gen_HtmlMapElement.rs b/crates/web-sys/src/features/gen_HtmlMapElement.rs index f7dcc17ce47..b69c4f3333c 100644 --- a/crates/web-sys/src/features/gen_HtmlMapElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMapElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMapElement , typescript_type = "HTMLMapElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLMapElement", + typescript_type = "HTMLMapElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMapElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] pub type HtmlMapElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMapElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMapElement", + 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/HTMLMapElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] pub fn name(this: &HtmlMapElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMapElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMapElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"] @@ -26,7 +46,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] pub fn set_name(this: &HtmlMapElement, value: &str); #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMapElement" , js_name = areas)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMapElement", + js_name = "areas" + )] #[doc = "Getter for the `areas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/areas)"] diff --git a/crates/web-sys/src/features/gen_HtmlMediaElement.rs b/crates/web-sys/src/features/gen_HtmlMediaElement.rs index 8fba170edf2..b5e8cbd80b2 100644 --- a/crates/web-sys/src/features/gen_HtmlMediaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMediaElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMediaElement , typescript_type = "HTMLMediaElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLMediaElement", + typescript_type = "HTMLMediaElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMediaElement` class."] #[doc = ""] @@ -12,28 +20,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub type HtmlMediaElement; #[cfg(feature = "MediaError")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = error)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaError`*"] pub fn error(this: &HtmlMediaElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlMediaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = currentSrc)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "currentSrc" + )] #[doc = "Getter for the `currentSrc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentSrc)"] @@ -41,7 +73,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn current_src(this: &HtmlMediaElement) -> String; #[cfg(feature = "MediaStream")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = srcObject)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "srcObject" + )] #[doc = "Getter for the `srcObject` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject)"] @@ -49,42 +87,78 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaStream`*"] pub fn src_object(this: &HtmlMediaElement) -> Option; #[cfg(feature = "MediaStream")] - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = srcObject)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "srcObject" + )] #[doc = "Setter for the `srcObject` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaStream`*"] pub fn set_src_object(this: &HtmlMediaElement, value: Option<&MediaStream>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "crossOrigin" + )] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "crossOrigin" + )] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[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 set_cross_origin(this: &HtmlMediaElement, value: Option<&str>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = networkState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "networkState" + )] #[doc = "Getter for the `networkState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/networkState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn network_state(this: &HtmlMediaElement) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = preload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "preload" + )] #[doc = "Getter for the `preload` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = preload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "preload" + )] #[doc = "Setter for the `preload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preload)"] @@ -92,77 +166,143 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_preload(this: &HtmlMediaElement, value: &str); #[cfg(feature = "TimeRanges")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = buffered)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "buffered" + )] #[doc = "Getter for the `buffered` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/buffered)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] pub fn buffered(this: &HtmlMediaElement) -> TimeRanges; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + 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/HTMLMediaElement/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn ready_state(this: &HtmlMediaElement) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = seeking)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "seeking" + )] #[doc = "Getter for the `seeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn seeking(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn current_time(this: &HtmlMediaElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "currentTime" + )] #[doc = "Setter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_current_time(this: &HtmlMediaElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn duration(this: &HtmlMediaElement) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = paused)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "paused" + )] #[doc = "Getter for the `paused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/paused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn paused(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = defaultPlaybackRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "defaultPlaybackRate" + )] #[doc = "Getter for the `defaultPlaybackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn default_playback_rate(this: &HtmlMediaElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = defaultPlaybackRate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "defaultPlaybackRate" + )] #[doc = "Setter for the `defaultPlaybackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_default_playback_rate(this: &HtmlMediaElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = playbackRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "playbackRate" + )] #[doc = "Getter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn playback_rate(this: &HtmlMediaElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = playbackRate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "playbackRate" + )] #[doc = "Setter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate)"] @@ -170,7 +310,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_playback_rate(this: &HtmlMediaElement, value: f64); #[cfg(feature = "TimeRanges")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = played)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "played" + )] #[doc = "Getter for the `played` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/played)"] @@ -178,98 +324,182 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] pub fn played(this: &HtmlMediaElement) -> TimeRanges; #[cfg(feature = "TimeRanges")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = seekable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "seekable" + )] #[doc = "Getter for the `seekable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] pub fn seekable(this: &HtmlMediaElement) -> TimeRanges; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = ended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "ended" + )] #[doc = "Getter for the `ended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/ended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn ended(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = autoplay)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "autoplay" + )] #[doc = "Getter for the `autoplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/autoplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn autoplay(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = autoplay)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "autoplay" + )] #[doc = "Setter for the `autoplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/autoplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_autoplay(this: &HtmlMediaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = loop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "loop" + )] #[doc = "Getter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn loop_(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = loop)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "loop" + )] #[doc = "Setter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_loop(this: &HtmlMediaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = controls)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "controls" + )] #[doc = "Getter for the `controls` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controls)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn controls(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = controls)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "controls" + )] #[doc = "Setter for the `controls` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controls)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_controls(this: &HtmlMediaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = volume)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "volume" + )] #[doc = "Getter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn volume(this: &HtmlMediaElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = volume)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "volume" + )] #[doc = "Setter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_volume(this: &HtmlMediaElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = muted)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "muted" + )] #[doc = "Getter for the `muted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn muted(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = muted)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "muted" + )] #[doc = "Setter for the `muted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_muted(this: &HtmlMediaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = defaultMuted)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "defaultMuted" + )] #[doc = "Getter for the `defaultMuted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn default_muted(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = defaultMuted)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "defaultMuted" + )] #[doc = "Setter for the `defaultMuted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted)"] @@ -277,7 +507,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_default_muted(this: &HtmlMediaElement, value: bool); #[cfg(feature = "AudioTrackList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = audioTracks)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "audioTracks" + )] #[doc = "Getter for the `audioTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/audioTracks)"] @@ -285,7 +521,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`, `HtmlMediaElement`*"] pub fn audio_tracks(this: &HtmlMediaElement) -> AudioTrackList; #[cfg(feature = "VideoTrackList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = videoTracks)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "videoTracks" + )] #[doc = "Getter for the `videoTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/videoTracks)"] @@ -293,7 +535,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `VideoTrackList`*"] pub fn video_tracks(this: &HtmlMediaElement) -> VideoTrackList; #[cfg(feature = "TextTrackList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = textTracks)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "textTracks" + )] #[doc = "Getter for the `textTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/textTracks)"] @@ -301,35 +549,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrackList`*"] pub fn text_tracks(this: &HtmlMediaElement) -> Option; #[cfg(feature = "MediaKeys")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = mediaKeys)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "mediaKeys" + )] #[doc = "Getter for the `mediaKeys` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/mediaKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaKeys`*"] pub fn media_keys(this: &HtmlMediaElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = onencrypted)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "onencrypted" + )] #[doc = "Getter for the `onencrypted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn onencrypted(this: &HtmlMediaElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = onencrypted)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "onencrypted" + )] #[doc = "Setter for the `onencrypted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_onencrypted(this: &HtmlMediaElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = onwaitingforkey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMediaElement", + js_name = "onwaitingforkey" + )] #[doc = "Getter for the `onwaitingforkey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onwaitingforkey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn onwaitingforkey(this: &HtmlMediaElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = onwaitingforkey)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMediaElement", + js_name = "onwaitingforkey" + )] #[doc = "Setter for the `onwaitingforkey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onwaitingforkey)"] @@ -337,7 +615,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_onwaitingforkey(this: &HtmlMediaElement, value: Option<&::js_sys::Function>); #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLMediaElement", + js_name = "addTextTrack" + )] #[doc = "The `addTextTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] @@ -345,7 +628,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrack`, `TextTrackKind`*"] pub fn add_text_track(this: &HtmlMediaElement, kind: TextTrackKind) -> TextTrack; #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLMediaElement", + js_name = "addTextTrack" + )] #[doc = "The `addTextTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] @@ -357,7 +645,12 @@ extern "C" { label: &str, ) -> TextTrack; #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLMediaElement", + js_name = "addTextTrack" + )] #[doc = "The `addTextTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] @@ -369,49 +662,83 @@ extern "C" { label: &str, language: &str, ) -> TextTrack; - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = canPlayType)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLMediaElement", + js_name = "canPlayType" + )] #[doc = "The `canPlayType()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = fastSeek)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLMediaElement", + js_name = "fastSeek" + )] #[doc = "The `fastSeek()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/fastSeek)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn fast_seek(this: &HtmlMediaElement, time: f64) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = hasSuspendTaint)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLMediaElement", + js_name = "hasSuspendTaint" + )] #[doc = "The `hasSuspendTaint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/hasSuspendTaint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn has_suspend_taint(this: &HtmlMediaElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = load)] + #[wasm_bindgen(method, structural, js_class = "HTMLMediaElement", js_name = "load")] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn load(this: &HtmlMediaElement); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = pause)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLMediaElement", + js_name = "pause" + )] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn pause(this: &HtmlMediaElement) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = play)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLMediaElement", + js_name = "play" + )] #[doc = "The `play()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn play(this: &HtmlMediaElement) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = seekToNextFrame)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLMediaElement", + js_name = "seekToNextFrame" + )] #[doc = "The `seekToNextFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekToNextFrame)"] @@ -419,7 +746,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn seek_to_next_frame(this: &HtmlMediaElement) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MediaKeys")] - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = setMediaKeys)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLMediaElement", + js_name = "setMediaKeys" + )] #[doc = "The `setMediaKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setMediaKeys)"] @@ -429,7 +761,12 @@ extern "C" { this: &HtmlMediaElement, media_keys: Option<&MediaKeys>, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = setVisible)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLMediaElement", + js_name = "setVisible" + )] #[doc = "The `setVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setVisible)"] diff --git a/crates/web-sys/src/features/gen_HtmlMenuElement.rs b/crates/web-sys/src/features/gen_HtmlMenuElement.rs index a271be1fa99..faac96eb3a6 100644 --- a/crates/web-sys/src/features/gen_HtmlMenuElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMenuElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMenuElement , typescript_type = "HTMLMenuElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLMenuElement", + typescript_type = "HTMLMenuElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMenuElement` class."] #[doc = ""] @@ -11,42 +19,78 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub type HtmlMenuElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuElement", + 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/HTMLMenuElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn type_(this: &HtmlMenuElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlMenuElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuElement", + 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/HTMLMenuElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn label(this: &HtmlMenuElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuElement", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[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 set_label(this: &HtmlMenuElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuElement", + js_name = "compact" + )] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn compact(this: &HtmlMenuElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuElement", + js_name = "compact" + )] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/compact)"] diff --git a/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs b/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs index 87a7753745d..84cfea5086e 100644 --- a/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMenuItemElement , typescript_type = "HTMLMenuItemElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLMenuItemElement", + typescript_type = "HTMLMenuItemElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMenuItemElement` class."] #[doc = ""] @@ -11,98 +19,182 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub type HtmlMenuItemElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuItemElement", + 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/HTMLMenuItemElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn type_(this: &HtmlMenuItemElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuItemElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_type(this: &HtmlMenuItemElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuItemElement", + 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/HTMLMenuItemElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn label(this: &HtmlMenuItemElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuItemElement", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_label(this: &HtmlMenuItemElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = icon)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuItemElement", + 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/HTMLMenuItemElement/icon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn icon(this: &HtmlMenuItemElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = icon)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuItemElement", + js_name = "icon" + )] #[doc = "Setter for the `icon` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/icon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_icon(this: &HtmlMenuItemElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuItemElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn disabled(this: &HtmlMenuItemElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuItemElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_disabled(this: &HtmlMenuItemElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = checked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuItemElement", + js_name = "checked" + )] #[doc = "Getter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn checked(this: &HtmlMenuItemElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = checked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuItemElement", + js_name = "checked" + )] #[doc = "Setter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_checked(this: &HtmlMenuItemElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = radiogroup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuItemElement", + js_name = "radiogroup" + )] #[doc = "Getter for the `radiogroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn radiogroup(this: &HtmlMenuItemElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = radiogroup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuItemElement", + js_name = "radiogroup" + )] #[doc = "Setter for the `radiogroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_radiogroup(this: &HtmlMenuItemElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMenuItemElement", + js_name = "defaultChecked" + )] #[doc = "Getter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn default_checked(this: &HtmlMenuItemElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMenuItemElement", + js_name = "defaultChecked" + )] #[doc = "Setter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"] diff --git a/crates/web-sys/src/features/gen_HtmlMetaElement.rs b/crates/web-sys/src/features/gen_HtmlMetaElement.rs index 5a1d570ea1d..246df3d71b4 100644 --- a/crates/web-sys/src/features/gen_HtmlMetaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMetaElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMetaElement , typescript_type = "HTMLMetaElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLMetaElement", + typescript_type = "HTMLMetaElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMetaElement` class."] #[doc = ""] @@ -11,56 +19,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub type HtmlMetaElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMetaElement", + 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/HTMLMetaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn name(this: &HtmlMetaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMetaElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlMetaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = httpEquiv)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMetaElement", + js_name = "httpEquiv" + )] #[doc = "Getter for the `httpEquiv` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = httpEquiv)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMetaElement", + js_name = "httpEquiv" + )] #[doc = "Setter for the `httpEquiv` field of this object."] #[doc = ""] #[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 set_http_equiv(this: &HtmlMetaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = content)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMetaElement", + js_name = "content" + )] #[doc = "Getter for the `content` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = content)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMetaElement", + js_name = "content" + )] #[doc = "Setter for the `content` field of this object."] #[doc = ""] #[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 set_content(this: &HtmlMetaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = scheme)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMetaElement", + js_name = "scheme" + )] #[doc = "Getter for the `scheme` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = scheme)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMetaElement", + js_name = "scheme" + )] #[doc = "Setter for the `scheme` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/scheme)"] diff --git a/crates/web-sys/src/features/gen_HtmlMeterElement.rs b/crates/web-sys/src/features/gen_HtmlMeterElement.rs index 99724563621..5f4ca0aaf14 100644 --- a/crates/web-sys/src/features/gen_HtmlMeterElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMeterElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMeterElement , typescript_type = "HTMLMeterElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLMeterElement", + typescript_type = "HTMLMeterElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMeterElement` class."] #[doc = ""] @@ -11,84 +19,156 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub type HtmlMeterElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMeterElement", + 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/HTMLMeterElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn value(this: &HtmlMeterElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMeterElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_value(this: &HtmlMeterElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = min)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMeterElement", + js_name = "min" + )] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn min(this: &HtmlMeterElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = min)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMeterElement", + js_name = "min" + )] #[doc = "Setter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_min(this: &HtmlMeterElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = max)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMeterElement", + js_name = "max" + )] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn max(this: &HtmlMeterElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = max)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMeterElement", + js_name = "max" + )] #[doc = "Setter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_max(this: &HtmlMeterElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = low)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMeterElement", + js_name = "low" + )] #[doc = "Getter for the `low` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/low)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn low(this: &HtmlMeterElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = low)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMeterElement", + js_name = "low" + )] #[doc = "Setter for the `low` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/low)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_low(this: &HtmlMeterElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = high)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMeterElement", + js_name = "high" + )] #[doc = "Getter for the `high` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/high)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn high(this: &HtmlMeterElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = high)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMeterElement", + js_name = "high" + )] #[doc = "Setter for the `high` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/high)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_high(this: &HtmlMeterElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = optimum)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMeterElement", + js_name = "optimum" + )] #[doc = "Getter for the `optimum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/optimum)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn optimum(this: &HtmlMeterElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = optimum)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLMeterElement", + js_name = "optimum" + )] #[doc = "Setter for the `optimum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/optimum)"] @@ -96,7 +176,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_optimum(this: &HtmlMeterElement, value: f64); #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = labels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLMeterElement", + js_name = "labels" + )] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/labels)"] diff --git a/crates/web-sys/src/features/gen_HtmlModElement.rs b/crates/web-sys/src/features/gen_HtmlModElement.rs index 7ce1087a24b..cd3a47af452 100644 --- a/crates/web-sys/src/features/gen_HtmlModElement.rs +++ b/crates/web-sys/src/features/gen_HtmlModElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLModElement , typescript_type = "HTMLModElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLModElement", + typescript_type = "HTMLModElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlModElement` class."] #[doc = ""] @@ -11,28 +19,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] pub type HtmlModElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLModElement" , js_name = cite)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLModElement", + js_name = "cite" + )] #[doc = "Getter for the `cite` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLModElement" , js_name = cite)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLModElement", + js_name = "cite" + )] #[doc = "Setter for the `cite` field of this object."] #[doc = ""] #[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 set_cite(this: &HtmlModElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLModElement" , js_name = dateTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLModElement", + js_name = "dateTime" + )] #[doc = "Getter for the `dateTime` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLModElement" , js_name = dateTime)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLModElement", + js_name = "dateTime" + )] #[doc = "Setter for the `dateTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/dateTime)"] diff --git a/crates/web-sys/src/features/gen_HtmlOListElement.rs b/crates/web-sys/src/features/gen_HtmlOListElement.rs index d57eb9a3578..c001bd3e271 100644 --- a/crates/web-sys/src/features/gen_HtmlOListElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOListElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOListElement , typescript_type = "HTMLOListElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLOListElement", + typescript_type = "HTMLOListElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOListElement` class."] #[doc = ""] @@ -11,56 +19,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub type HtmlOListElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = reversed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOListElement", + js_name = "reversed" + )] #[doc = "Getter for the `reversed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/reversed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn reversed(this: &HtmlOListElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = reversed)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOListElement", + js_name = "reversed" + )] #[doc = "Setter for the `reversed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/reversed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn set_reversed(this: &HtmlOListElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = start)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOListElement", + js_name = "start" + )] #[doc = "Getter for the `start` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn start(this: &HtmlOListElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = start)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOListElement", + js_name = "start" + )] #[doc = "Setter for the `start` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn set_start(this: &HtmlOListElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOListElement", + 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/HTMLOListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn type_(this: &HtmlOListElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOListElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlOListElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOListElement", + js_name = "compact" + )] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn compact(this: &HtmlOListElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOListElement", + js_name = "compact" + )] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/compact)"] diff --git a/crates/web-sys/src/features/gen_HtmlObjectElement.rs b/crates/web-sys/src/features/gen_HtmlObjectElement.rs index 8ef2219a708..dfd3baccb86 100644 --- a/crates/web-sys/src/features/gen_HtmlObjectElement.rs +++ b/crates/web-sys/src/features/gen_HtmlObjectElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLObjectElement , typescript_type = "HTMLObjectElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLObjectElement", + typescript_type = "HTMLObjectElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlObjectElement` class."] #[doc = ""] @@ -11,70 +19,130 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub type HtmlObjectElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + 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/HTMLObjectElement/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn data(this: &HtmlObjectElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = data)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "data" + )] #[doc = "Setter for the `data` field of this object."] #[doc = ""] #[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 set_data(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + 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/HTMLObjectElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn type_(this: &HtmlObjectElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = typeMustMatch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "typeMustMatch" + )] #[doc = "Getter for the `typeMustMatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn type_must_match(this: &HtmlObjectElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = typeMustMatch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "typeMustMatch" + )] #[doc = "Setter for the `typeMustMatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_type_must_match(this: &HtmlObjectElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + 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/HTMLObjectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn name(this: &HtmlObjectElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = useMap)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "useMap" + )] #[doc = "Getter for the `useMap` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = useMap)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "useMap" + )] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"] @@ -82,35 +150,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_use_map(this: &HtmlObjectElement, value: &str); #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlObjectElement`*"] pub fn form(this: &HtmlObjectElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[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 set_width(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/height)"] @@ -118,7 +216,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_height(this: &HtmlObjectElement, value: &str); #[cfg(feature = "Document")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentDocument)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "contentDocument" + )] #[doc = "Getter for the `contentDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentDocument)"] @@ -126,14 +230,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"] pub fn content_document(this: &HtmlObjectElement) -> Option; #[cfg(feature = "Window")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentWindow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "contentWindow" + )] #[doc = "Getter for the `contentWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `Window`*"] pub fn content_window(this: &HtmlObjectElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = willValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "willValidate" + )] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate)"] @@ -141,161 +257,299 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn will_validate(this: &HtmlObjectElement) -> bool; #[cfg(feature = "ValidityState")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = validity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "validity" + )] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `ValidityState`*"] pub fn validity(this: &HtmlObjectElement) -> ValidityState; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLObjectElement" , js_name = validationMessage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "validationMessage" + )] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = align)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "align" + )] #[doc = "Setter 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 set_align(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = archive)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "archive" + )] #[doc = "Getter for the `archive` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = archive)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "archive" + )] #[doc = "Setter for the `archive` field of this object."] #[doc = ""] #[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 set_archive(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = code)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + 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/HTMLObjectElement/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn code(this: &HtmlObjectElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = code)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "code" + )] #[doc = "Setter for the `code` field of this object."] #[doc = ""] #[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 set_code(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = declare)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "declare" + )] #[doc = "Getter for the `declare` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn declare(this: &HtmlObjectElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = declare)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "declare" + )] #[doc = "Setter for the `declare` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_declare(this: &HtmlObjectElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = hspace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "hspace" + )] #[doc = "Getter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn hspace(this: &HtmlObjectElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = hspace)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "hspace" + )] #[doc = "Setter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_hspace(this: &HtmlObjectElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = standby)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "standby" + )] #[doc = "Getter for the `standby` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = standby)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "standby" + )] #[doc = "Setter for the `standby` field of this object."] #[doc = ""] #[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 set_standby(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = vspace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "vspace" + )] #[doc = "Getter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn vspace(this: &HtmlObjectElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = vspace)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "vspace" + )] #[doc = "Setter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_vspace(this: &HtmlObjectElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeBase)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "codeBase" + )] #[doc = "Getter for the `codeBase` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeBase)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "codeBase" + )] #[doc = "Setter for the `codeBase` field of this object."] #[doc = ""] #[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 set_code_base(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "codeType" + )] #[doc = "Getter for the `codeType` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeType)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "codeType" + )] #[doc = "Setter for the `codeType` field of this object."] #[doc = ""] #[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 set_code_type(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = border)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLObjectElement", + js_name = "border" + )] #[doc = "Getter for the `border` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = border)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLObjectElement", + js_name = "border" + )] #[doc = "Setter for the `border` field of this object."] #[doc = ""] #[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 set_border(this: &HtmlObjectElement, value: &str); - # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLObjectElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/checkValidity)"] @@ -303,21 +557,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn check_validity(this: &HtmlObjectElement) -> bool; #[cfg(feature = "Document")] - # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = getSVGDocument)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLObjectElement", + js_name = "getSVGDocument" + )] #[doc = "The `getSVGDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/getSVGDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"] pub fn get_svg_document(this: &HtmlObjectElement) -> Option; - # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLObjectElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn report_validity(this: &HtmlObjectElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = setCustomValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLObjectElement", + js_name = "setCustomValidity" + )] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity)"] diff --git a/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs b/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs index a6510ff5be7..06755b2f785 100644 --- a/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOptGroupElement , typescript_type = "HTMLOptGroupElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLOptGroupElement", + typescript_type = "HTMLOptGroupElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOptGroupElement` class."] #[doc = ""] @@ -11,28 +19,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub type HtmlOptGroupElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptGroupElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptGroupElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub fn disabled(this: &HtmlOptGroupElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptGroupElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptGroupElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub fn set_disabled(this: &HtmlOptGroupElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptGroupElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptGroupElement", + 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/HTMLOptGroupElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub fn label(this: &HtmlOptGroupElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptGroupElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptGroupElement", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/label)"] diff --git a/crates/web-sys/src/features/gen_HtmlOptionElement.rs b/crates/web-sys/src/features/gen_HtmlOptionElement.rs index 5d34d0dc25a..6c0f2bbd4e9 100644 --- a/crates/web-sys/src/features/gen_HtmlOptionElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOptionElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOptionElement , typescript_type = "HTMLOptionElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLOptionElement", + typescript_type = "HTMLOptionElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOptionElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub type HtmlOptionElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn disabled(this: &HtmlOptionElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptionElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"] @@ -26,84 +46,156 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_disabled(this: &HtmlOptionElement, value: bool); #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOptionElement`*"] pub fn form(this: &HtmlOptionElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + 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/HTMLOptionElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn label(this: &HtmlOptionElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptionElement", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[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 set_label(this: &HtmlOptionElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = defaultSelected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + js_name = "defaultSelected" + )] #[doc = "Getter for the `defaultSelected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn default_selected(this: &HtmlOptionElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = defaultSelected)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptionElement", + js_name = "defaultSelected" + )] #[doc = "Setter for the `defaultSelected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_default_selected(this: &HtmlOptionElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = selected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + js_name = "selected" + )] #[doc = "Getter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn selected(this: &HtmlOptionElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = selected)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptionElement", + js_name = "selected" + )] #[doc = "Setter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_selected(this: &HtmlOptionElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + 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/HTMLOptionElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn value(this: &HtmlOptionElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptionElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_value(this: &HtmlOptionElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = text)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + js_name = "text" + )] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = text)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptionElement", + js_name = "text" + )] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[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 set_text(this: &HtmlOptionElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = index)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionElement", + js_name = "index" + )] #[doc = "Getter for the `index` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/index)"] diff --git a/crates/web-sys/src/features/gen_HtmlOptionsCollection.rs b/crates/web-sys/src/features/gen_HtmlOptionsCollection.rs index 2dca06380a6..65038ad9859 100644 --- a/crates/web-sys/src/features/gen_HtmlOptionsCollection.rs +++ b/crates/web-sys/src/features/gen_HtmlOptionsCollection.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlCollection , extends = :: js_sys :: Object , js_name = HTMLOptionsCollection , typescript_type = "HTMLOptionsCollection")] + #[wasm_bindgen( + extends = "HtmlCollection", + extends = "::js_sys::Object", + js_name = "HTMLOptionsCollection", + typescript_type = "HTMLOptionsCollection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOptionsCollection` class."] #[doc = ""] @@ -11,28 +16,54 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub type HtmlOptionsCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionsCollection" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOptionsCollection", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn length(this: &HtmlOptionsCollection) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionsCollection" , js_name = length)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOptionsCollection", + js_name = "length" + )] #[doc = "Setter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn set_length(this: &HtmlOptionsCollection, value: u32); - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLOptionsCollection", + js_name = "selectedIndex" + )] #[doc = "Getter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn selected_index(this: &HtmlOptionsCollection) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLOptionsCollection", + js_name = "selectedIndex" + )] #[doc = "Setter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"] @@ -40,7 +71,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn set_selected_index(this: &HtmlOptionsCollection, value: i32) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] @@ -51,7 +88,13 @@ extern "C" { element: &HtmlOptionElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] @@ -62,7 +105,13 @@ extern "C" { element: &HtmlOptGroupElement, ) -> Result<(), JsValue>; #[cfg(all(feature = "HtmlElement", feature = "HtmlOptionElement",))] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] @@ -74,7 +123,13 @@ extern "C" { before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(all(feature = "HtmlElement", feature = "HtmlOptGroupElement",))] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] @@ -86,7 +141,13 @@ extern "C" { before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] @@ -98,7 +159,13 @@ extern "C" { before: Option, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] @@ -109,7 +176,13 @@ extern "C" { element: &HtmlOptGroupElement, before: Option, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/remove)"] diff --git a/crates/web-sys/src/features/gen_HtmlOutputElement.rs b/crates/web-sys/src/features/gen_HtmlOutputElement.rs index 8cb89808001..d1f707cdf21 100644 --- a/crates/web-sys/src/features/gen_HtmlOutputElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOutputElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOutputElement , typescript_type = "HTMLOutputElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLOutputElement", + typescript_type = "HTMLOutputElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOutputElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub type HtmlOutputElement; #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = htmlFor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + js_name = "htmlFor" + )] #[doc = "Getter for the `htmlFor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/htmlFor)"] @@ -20,63 +34,117 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlOutputElement`*"] pub fn html_for(this: &HtmlOutputElement) -> DomTokenList; #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOutputElement`*"] pub fn form(this: &HtmlOutputElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + 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/HTMLOutputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn name(this: &HtmlOutputElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOutputElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlOutputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + 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/HTMLOutputElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn type_(this: &HtmlOutputElement) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = defaultValue)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = defaultValue)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOutputElement", + js_name = "defaultValue" + )] #[doc = "Setter 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 set_default_value(this: &HtmlOutputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + 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/HTMLOutputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn value(this: &HtmlOutputElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLOutputElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn set_value(this: &HtmlOutputElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = willValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + js_name = "willValidate" + )] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/willValidate)"] @@ -84,14 +152,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn will_validate(this: &HtmlOutputElement) -> bool; #[cfg(feature = "ValidityState")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = validity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + js_name = "validity" + )] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `ValidityState`*"] pub fn validity(this: &HtmlOutputElement) -> ValidityState; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLOutputElement" , js_name = validationMessage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLOutputElement", + js_name = "validationMessage" + )] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validationMessage)"] @@ -99,28 +180,49 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn validation_message(this: &HtmlOutputElement) -> Result; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = labels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLOutputElement", + js_name = "labels" + )] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `NodeList`*"] pub fn labels(this: &HtmlOutputElement) -> NodeList; - # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLOutputElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn check_validity(this: &HtmlOutputElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLOutputElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn report_validity(this: &HtmlOutputElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = setCustomValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLOutputElement", + js_name = "setCustomValidity" + )] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/setCustomValidity)"] diff --git a/crates/web-sys/src/features/gen_HtmlParagraphElement.rs b/crates/web-sys/src/features/gen_HtmlParagraphElement.rs index 51e139c1c59..355b02563cc 100644 --- a/crates/web-sys/src/features/gen_HtmlParagraphElement.rs +++ b/crates/web-sys/src/features/gen_HtmlParagraphElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLParagraphElement , typescript_type = "HTMLParagraphElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLParagraphElement", + typescript_type = "HTMLParagraphElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlParagraphElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] pub type HtmlParagraphElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLParagraphElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLParagraphElement", + 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/HTMLParagraphElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] pub fn align(this: &HtmlParagraphElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLParagraphElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLParagraphElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement/align)"] diff --git a/crates/web-sys/src/features/gen_HtmlParamElement.rs b/crates/web-sys/src/features/gen_HtmlParamElement.rs index a6ea0d41118..6379af61d87 100644 --- a/crates/web-sys/src/features/gen_HtmlParamElement.rs +++ b/crates/web-sys/src/features/gen_HtmlParamElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLParamElement , typescript_type = "HTMLParamElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLParamElement", + typescript_type = "HTMLParamElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlParamElement` class."] #[doc = ""] @@ -11,56 +19,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub type HtmlParamElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLParamElement", + 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/HTMLParamElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn name(this: &HtmlParamElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLParamElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlParamElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLParamElement", + 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/HTMLParamElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn value(this: &HtmlParamElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLParamElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn set_value(this: &HtmlParamElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLParamElement", + 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/HTMLParamElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn type_(this: &HtmlParamElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLParamElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlParamElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = valueType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLParamElement", + js_name = "valueType" + )] #[doc = "Getter for the `valueType` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = valueType)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLParamElement", + js_name = "valueType" + )] #[doc = "Setter for the `valueType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/valueType)"] diff --git a/crates/web-sys/src/features/gen_HtmlPictureElement.rs b/crates/web-sys/src/features/gen_HtmlPictureElement.rs index 26112ae99ad..6af2335048c 100644 --- a/crates/web-sys/src/features/gen_HtmlPictureElement.rs +++ b/crates/web-sys/src/features/gen_HtmlPictureElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLPictureElement , typescript_type = "HTMLPictureElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLPictureElement", + typescript_type = "HTMLPictureElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlPictureElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlPreElement.rs b/crates/web-sys/src/features/gen_HtmlPreElement.rs index 5ce97ef3f1c..15c56c177ab 100644 --- a/crates/web-sys/src/features/gen_HtmlPreElement.rs +++ b/crates/web-sys/src/features/gen_HtmlPreElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLPreElement , typescript_type = "HTMLPreElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLPreElement", + typescript_type = "HTMLPreElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlPreElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] pub type HtmlPreElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLPreElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLPreElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] pub fn width(this: &HtmlPreElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLPreElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLPreElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement/width)"] diff --git a/crates/web-sys/src/features/gen_HtmlProgressElement.rs b/crates/web-sys/src/features/gen_HtmlProgressElement.rs index ba5c6a7caf0..fab3a25e867 100644 --- a/crates/web-sys/src/features/gen_HtmlProgressElement.rs +++ b/crates/web-sys/src/features/gen_HtmlProgressElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLProgressElement , typescript_type = "HTMLProgressElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLProgressElement", + typescript_type = "HTMLProgressElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlProgressElement` class."] #[doc = ""] @@ -11,35 +19,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub type HtmlProgressElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLProgressElement", + 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/HTMLProgressElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn value(this: &HtmlProgressElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLProgressElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLProgressElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn set_value(this: &HtmlProgressElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = max)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLProgressElement", + js_name = "max" + )] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn max(this: &HtmlProgressElement) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLProgressElement" , js_name = max)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLProgressElement", + js_name = "max" + )] #[doc = "Setter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn set_max(this: &HtmlProgressElement, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = position)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLProgressElement", + js_name = "position" + )] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/position)"] @@ -47,7 +85,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn position(this: &HtmlProgressElement) -> f64; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = labels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLProgressElement", + js_name = "labels" + )] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/labels)"] diff --git a/crates/web-sys/src/features/gen_HtmlQuoteElement.rs b/crates/web-sys/src/features/gen_HtmlQuoteElement.rs index 9d18e13826e..cbea2fa1eaf 100644 --- a/crates/web-sys/src/features/gen_HtmlQuoteElement.rs +++ b/crates/web-sys/src/features/gen_HtmlQuoteElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLQuoteElement , typescript_type = "HTMLQuoteElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLQuoteElement", + typescript_type = "HTMLQuoteElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlQuoteElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] pub type HtmlQuoteElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLQuoteElement" , js_name = cite)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLQuoteElement", + js_name = "cite" + )] #[doc = "Getter for the `cite` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLQuoteElement" , js_name = cite)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLQuoteElement", + js_name = "cite" + )] #[doc = "Setter for the `cite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement/cite)"] diff --git a/crates/web-sys/src/features/gen_HtmlScriptElement.rs b/crates/web-sys/src/features/gen_HtmlScriptElement.rs index 21198eb7949..d5df54ae9b3 100644 --- a/crates/web-sys/src/features/gen_HtmlScriptElement.rs +++ b/crates/web-sys/src/features/gen_HtmlScriptElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLScriptElement , typescript_type = "HTMLScriptElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLScriptElement", + typescript_type = "HTMLScriptElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlScriptElement` class."] #[doc = ""] @@ -11,154 +19,288 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub type HtmlScriptElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlScriptElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + 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/HTMLScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn type_(this: &HtmlScriptElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlScriptElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = noModule)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "noModule" + )] #[doc = "Getter for the `noModule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn no_module(this: &HtmlScriptElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = noModule)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "noModule" + )] #[doc = "Setter for the `noModule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_no_module(this: &HtmlScriptElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = charset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + 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/HTMLScriptElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn charset(this: &HtmlScriptElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = charset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "charset" + )] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] #[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 set_charset(this: &HtmlScriptElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = async)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "async" + )] #[doc = "Getter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn r#async(this: &HtmlScriptElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = async)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "async" + )] #[doc = "Setter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_async(this: &HtmlScriptElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = defer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "defer" + )] #[doc = "Getter for the `defer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn defer(this: &HtmlScriptElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = defer)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "defer" + )] #[doc = "Setter for the `defer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_defer(this: &HtmlScriptElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "crossOrigin" + )] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "crossOrigin" + )] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[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 set_cross_origin(this: &HtmlScriptElement, value: Option<&str>); - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLScriptElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "text" + )] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLScriptElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "text" + )] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[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 set_text(this: &HtmlScriptElement, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = event)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "event" + )] #[doc = "Getter for the `event` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = event)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "event" + )] #[doc = "Setter for the `event` field of this object."] #[doc = ""] #[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 set_event(this: &HtmlScriptElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = htmlFor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "htmlFor" + )] #[doc = "Getter for the `htmlFor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = htmlFor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "htmlFor" + )] #[doc = "Setter for the `htmlFor` field of this object."] #[doc = ""] #[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 set_html_for(this: &HtmlScriptElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = integrity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLScriptElement", + js_name = "integrity" + )] #[doc = "Getter for the `integrity` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = integrity)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLScriptElement", + js_name = "integrity" + )] #[doc = "Setter for the `integrity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"] diff --git a/crates/web-sys/src/features/gen_HtmlSelectElement.rs b/crates/web-sys/src/features/gen_HtmlSelectElement.rs index 87f3ddd7abd..b23b4a8e27f 100644 --- a/crates/web-sys/src/features/gen_HtmlSelectElement.rs +++ b/crates/web-sys/src/features/gen_HtmlSelectElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSelectElement , typescript_type = "HTMLSelectElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLSelectElement", + typescript_type = "HTMLSelectElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSelectElement` class."] #[doc = ""] @@ -11,42 +19,78 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub type HtmlSelectElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "autofocus" + )] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn autofocus(this: &HtmlSelectElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "autofocus" + )] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_autofocus(this: &HtmlSelectElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "autocomplete" + )] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "autocomplete" + )] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[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 set_autocomplete(this: &HtmlSelectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn disabled(this: &HtmlSelectElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"] @@ -54,70 +98,130 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_disabled(this: &HtmlSelectElement, value: bool); #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlSelectElement`*"] pub fn form(this: &HtmlSelectElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = multiple)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "multiple" + )] #[doc = "Getter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn multiple(this: &HtmlSelectElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = multiple)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "multiple" + )] #[doc = "Setter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_multiple(this: &HtmlSelectElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + 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/HTMLSelectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn name(this: &HtmlSelectElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlSelectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = required)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "required" + )] #[doc = "Getter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn required(this: &HtmlSelectElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = required)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "required" + )] #[doc = "Setter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_required(this: &HtmlSelectElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "size" + )] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn size(this: &HtmlSelectElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = size)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "size" + )] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_size(this: &HtmlSelectElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + 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/HTMLSelectElement/type)"] @@ -125,21 +229,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn type_(this: &HtmlSelectElement) -> String; #[cfg(feature = "HtmlOptionsCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = options)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "options" + )] #[doc = "Getter for the `options` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/options)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`, `HtmlSelectElement`*"] pub fn options(this: &HtmlSelectElement) -> HtmlOptionsCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn length(this: &HtmlSelectElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = length)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "length" + )] #[doc = "Setter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"] @@ -147,42 +269,78 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_length(this: &HtmlSelectElement, value: u32); #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = selectedOptions)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "selectedOptions" + )] #[doc = "Getter for the `selectedOptions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlSelectElement`*"] pub fn selected_options(this: &HtmlSelectElement) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = selectedIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "selectedIndex" + )] #[doc = "Getter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn selected_index(this: &HtmlSelectElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = selectedIndex)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "selectedIndex" + )] #[doc = "Setter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_selected_index(this: &HtmlSelectElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + 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/HTMLSelectElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn value(this: &HtmlSelectElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSelectElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_value(this: &HtmlSelectElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = willValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "willValidate" + )] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/willValidate)"] @@ -190,14 +348,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn will_validate(this: &HtmlSelectElement) -> bool; #[cfg(feature = "ValidityState")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = validity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "validity" + )] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `ValidityState`*"] pub fn validity(this: &HtmlSelectElement) -> ValidityState; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLSelectElement" , js_name = validationMessage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "validationMessage" + )] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validationMessage)"] @@ -205,7 +376,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn validation_message(this: &HtmlSelectElement) -> Result; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = labels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSelectElement", + js_name = "labels" + )] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/labels)"] @@ -213,7 +390,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `NodeList`*"] pub fn labels(this: &HtmlSelectElement) -> NodeList; #[cfg(feature = "HtmlOptionElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLSelectElement", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] @@ -224,7 +407,13 @@ extern "C" { element: &HtmlOptionElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLSelectElement", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] @@ -235,7 +424,13 @@ extern "C" { element: &HtmlOptGroupElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLSelectElement", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] @@ -247,7 +442,13 @@ extern "C" { before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLSelectElement", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] @@ -259,7 +460,13 @@ extern "C" { before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLSelectElement", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] @@ -271,7 +478,13 @@ extern "C" { before: Option, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] - # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLSelectElement", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] @@ -282,14 +495,19 @@ extern "C" { element: &HtmlOptGroupElement, before: Option, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLSelectElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn check_validity(this: &HtmlSelectElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "HTMLSelectElement", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/item)"] @@ -297,35 +515,50 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn item(this: &HtmlSelectElement, index: u32) -> Option; #[cfg(feature = "HtmlOptionElement")] - # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = namedItem)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLSelectElement", + js_name = "namedItem" + )] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] pub fn named_item(this: &HtmlSelectElement, name: &str) -> Option; - # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = remove)] + #[wasm_bindgen(method, structural, js_class = "HTMLSelectElement", js_name = "remove")] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn remove_with_index(this: &HtmlSelectElement, index: i32); - # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = remove)] + #[wasm_bindgen(method, structural, js_class = "HTMLSelectElement", js_name = "remove")] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn remove(this: &HtmlSelectElement); - # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLSelectElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn report_validity(this: &HtmlSelectElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = setCustomValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLSelectElement", + js_name = "setCustomValidity" + )] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/setCustomValidity)"] diff --git a/crates/web-sys/src/features/gen_HtmlSlotElement.rs b/crates/web-sys/src/features/gen_HtmlSlotElement.rs index c822a2ee4cf..982b700f2f6 100644 --- a/crates/web-sys/src/features/gen_HtmlSlotElement.rs +++ b/crates/web-sys/src/features/gen_HtmlSlotElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSlotElement , typescript_type = "HTMLSlotElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLSlotElement", + typescript_type = "HTMLSlotElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSlotElement` class."] #[doc = ""] @@ -11,21 +19,38 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] pub type HtmlSlotElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSlotElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSlotElement", + 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/HTMLSlotElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] pub fn name(this: &HtmlSlotElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSlotElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSlotElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlSlotElement, value: &str); - # [wasm_bindgen (method , structural , js_class = "HTMLSlotElement" , js_name = assignedNodes)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLSlotElement", + js_name = "assignedNodes" + )] #[doc = "The `assignedNodes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"] @@ -33,7 +58,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] pub fn assigned_nodes(this: &HtmlSlotElement) -> ::js_sys::Array; #[cfg(feature = "AssignedNodesOptions")] - # [wasm_bindgen (method , structural , js_class = "HTMLSlotElement" , js_name = assignedNodes)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLSlotElement", + js_name = "assignedNodes" + )] #[doc = "The `assignedNodes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"] diff --git a/crates/web-sys/src/features/gen_HtmlSourceElement.rs b/crates/web-sys/src/features/gen_HtmlSourceElement.rs index fd01150d9a2..2169860a599 100644 --- a/crates/web-sys/src/features/gen_HtmlSourceElement.rs +++ b/crates/web-sys/src/features/gen_HtmlSourceElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSourceElement , typescript_type = "HTMLSourceElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLSourceElement", + typescript_type = "HTMLSourceElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSourceElement` class."] #[doc = ""] @@ -11,70 +19,130 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub type HtmlSourceElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSourceElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSourceElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlSourceElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSourceElement", + 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/HTMLSourceElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn type_(this: &HtmlSourceElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSourceElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &HtmlSourceElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = srcset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSourceElement", + js_name = "srcset" + )] #[doc = "Getter for the `srcset` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = srcset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSourceElement", + js_name = "srcset" + )] #[doc = "Setter for the `srcset` field of this object."] #[doc = ""] #[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 set_srcset(this: &HtmlSourceElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = sizes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSourceElement", + js_name = "sizes" + )] #[doc = "Getter for the `sizes` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = sizes)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSourceElement", + js_name = "sizes" + )] #[doc = "Setter for the `sizes` field of this object."] #[doc = ""] #[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 set_sizes(this: &HtmlSourceElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLSourceElement", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLSourceElement", + js_name = "media" + )] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"] diff --git a/crates/web-sys/src/features/gen_HtmlSpanElement.rs b/crates/web-sys/src/features/gen_HtmlSpanElement.rs index fee20cc82fe..c94f3b20044 100644 --- a/crates/web-sys/src/features/gen_HtmlSpanElement.rs +++ b/crates/web-sys/src/features/gen_HtmlSpanElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSpanElement , typescript_type = "HTMLSpanElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLSpanElement", + typescript_type = "HTMLSpanElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSpanElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlStyleElement.rs b/crates/web-sys/src/features/gen_HtmlStyleElement.rs index a8082b11cdb..372f143c286 100644 --- a/crates/web-sys/src/features/gen_HtmlStyleElement.rs +++ b/crates/web-sys/src/features/gen_HtmlStyleElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLStyleElement , typescript_type = "HTMLStyleElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLStyleElement", + typescript_type = "HTMLStyleElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlStyleElement` class."] #[doc = ""] @@ -11,42 +19,78 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub type HtmlStyleElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLStyleElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn disabled(this: &HtmlStyleElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLStyleElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn set_disabled(this: &HtmlStyleElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLStyleElement", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLStyleElement", + js_name = "media" + )] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[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 set_media(this: &HtmlStyleElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLStyleElement", + 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/HTMLStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn type_(this: &HtmlStyleElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLStyleElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/type)"] @@ -54,7 +98,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn set_type(this: &HtmlStyleElement, value: &str); #[cfg(feature = "StyleSheet")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = sheet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLStyleElement", + js_name = "sheet" + )] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/sheet)"] diff --git a/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs b/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs index a3051b715b3..802af0dc704 100644 --- a/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableCaptionElement , typescript_type = "HTMLTableCaptionElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTableCaptionElement", + typescript_type = "HTMLTableCaptionElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableCaptionElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] pub type HtmlTableCaptionElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCaptionElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCaptionElement", + 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/HTMLTableCaptionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] pub fn align(this: &HtmlTableCaptionElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCaptionElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCaptionElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement/align)"] diff --git a/crates/web-sys/src/features/gen_HtmlTableCellElement.rs b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs index 343b94349d1..78e19ad7b0b 100644 --- a/crates/web-sys/src/features/gen_HtmlTableCellElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableCellElement , typescript_type = "HTMLTableCellElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTableCellElement", + typescript_type = "HTMLTableCellElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableCellElement` class."] #[doc = ""] @@ -11,175 +19,325 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub type HtmlTableCellElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = colSpan)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "colSpan" + )] #[doc = "Getter for the `colSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/colSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn col_span(this: &HtmlTableCellElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = colSpan)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "colSpan" + )] #[doc = "Setter for the `colSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/colSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_col_span(this: &HtmlTableCellElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = rowSpan)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "rowSpan" + )] #[doc = "Getter for the `rowSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/rowSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn row_span(this: &HtmlTableCellElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = rowSpan)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "rowSpan" + )] #[doc = "Setter for the `rowSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/rowSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_row_span(this: &HtmlTableCellElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = headers)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "headers" + )] #[doc = "Getter for the `headers` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = headers)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "headers" + )] #[doc = "Setter for the `headers` field of this object."] #[doc = ""] #[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 set_headers(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = cellIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "cellIndex" + )] #[doc = "Getter for the `cellIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/cellIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn cell_index(this: &HtmlTableCellElement) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + 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/HTMLTableCellElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn align(this: &HtmlTableCellElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = axis)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "axis" + )] #[doc = "Getter for the `axis` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = axis)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "axis" + )] #[doc = "Setter for the `axis` field of this object."] #[doc = ""] #[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 set_axis(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[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 set_height(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[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 set_width(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "ch" + )] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "ch" + )] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[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 set_ch(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "chOff" + )] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "chOff" + )] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[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 set_ch_off(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = noWrap)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "noWrap" + )] #[doc = "Getter for the `noWrap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/noWrap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn no_wrap(this: &HtmlTableCellElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = noWrap)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "noWrap" + )] #[doc = "Setter for the `noWrap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/noWrap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_no_wrap(this: &HtmlTableCellElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "vAlign" + )] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "vAlign" + )] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[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 set_v_align(this: &HtmlTableCellElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableCellElement", + js_name = "bgColor" + )] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableCellElement", + js_name = "bgColor" + )] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/bgColor)"] diff --git a/crates/web-sys/src/features/gen_HtmlTableColElement.rs b/crates/web-sys/src/features/gen_HtmlTableColElement.rs index d2e4e771ae1..e5f4646fd3f 100644 --- a/crates/web-sys/src/features/gen_HtmlTableColElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableColElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableColElement , typescript_type = "HTMLTableColElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTableColElement", + typescript_type = "HTMLTableColElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableColElement` class."] #[doc = ""] @@ -11,84 +19,156 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub type HtmlTableColElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = span)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableColElement", + js_name = "span" + )] #[doc = "Getter for the `span` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/span)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn span(this: &HtmlTableColElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = span)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableColElement", + js_name = "span" + )] #[doc = "Setter for the `span` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/span)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn set_span(this: &HtmlTableColElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableColElement", + 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/HTMLTableColElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn align(this: &HtmlTableColElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableColElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlTableColElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableColElement", + js_name = "ch" + )] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableColElement", + js_name = "ch" + )] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[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 set_ch(this: &HtmlTableColElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableColElement", + js_name = "chOff" + )] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableColElement", + js_name = "chOff" + )] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[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 set_ch_off(this: &HtmlTableColElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableColElement", + js_name = "vAlign" + )] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableColElement", + js_name = "vAlign" + )] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[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 set_v_align(this: &HtmlTableColElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableColElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableColElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/width)"] diff --git a/crates/web-sys/src/features/gen_HtmlTableElement.rs b/crates/web-sys/src/features/gen_HtmlTableElement.rs index 036e2ab88c2..7ae3e25e516 100644 --- a/crates/web-sys/src/features/gen_HtmlTableElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableElement , typescript_type = "HTMLTableElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTableElement", + typescript_type = "HTMLTableElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub type HtmlTableElement; #[cfg(feature = "HtmlTableCaptionElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = caption)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "caption" + )] #[doc = "Getter for the `caption` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"] pub fn caption(this: &HtmlTableElement) -> Option; #[cfg(feature = "HtmlTableCaptionElement")] - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = caption)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "caption" + )] #[doc = "Setter for the `caption` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"] pub fn set_caption(this: &HtmlTableElement, value: Option<&HtmlTableCaptionElement>); #[cfg(feature = "HtmlTableSectionElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = tHead)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "tHead" + )] #[doc = "Getter for the `tHead` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn t_head(this: &HtmlTableElement) -> Option; #[cfg(feature = "HtmlTableSectionElement")] - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = tHead)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "tHead" + )] #[doc = "Setter for the `tHead` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn set_t_head(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>); #[cfg(feature = "HtmlTableSectionElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = tFoot)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "tFoot" + )] #[doc = "Getter for the `tFoot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn t_foot(this: &HtmlTableElement) -> Option; #[cfg(feature = "HtmlTableSectionElement")] - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = tFoot)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "tFoot" + )] #[doc = "Setter for the `tFoot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn set_t_foot(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>); #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = tBodies)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "tBodies" + )] #[doc = "Getter for the `tBodies` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tBodies)"] @@ -68,203 +118,370 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"] pub fn t_bodies(this: &HtmlTableElement) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = rows)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "rows" + )] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"] pub fn rows(this: &HtmlTableElement) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + 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/HTMLTableElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn align(this: &HtmlTableElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = border)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "border" + )] #[doc = "Getter for the `border` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = border)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "border" + )] #[doc = "Setter for the `border` field of this object."] #[doc = ""] #[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 set_border(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = frame)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "frame" + )] #[doc = "Getter for the `frame` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = frame)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "frame" + )] #[doc = "Setter for the `frame` field of this object."] #[doc = ""] #[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 set_frame(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = rules)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "rules" + )] #[doc = "Getter for the `rules` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = rules)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "rules" + )] #[doc = "Setter for the `rules` field of this object."] #[doc = ""] #[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 set_rules(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = summary)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "summary" + )] #[doc = "Getter for the `summary` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = summary)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "summary" + )] #[doc = "Setter for the `summary` field of this object."] #[doc = ""] #[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 set_summary(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[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 set_width(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "bgColor" + )] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "bgColor" + )] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[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 set_bg_color(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = cellPadding)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "cellPadding" + )] #[doc = "Getter for the `cellPadding` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = cellPadding)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "cellPadding" + )] #[doc = "Setter for the `cellPadding` field of this object."] #[doc = ""] #[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 set_cell_padding(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = cellSpacing)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableElement", + js_name = "cellSpacing" + )] #[doc = "Getter for the `cellSpacing` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = cellSpacing)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableElement", + js_name = "cellSpacing" + )] #[doc = "Setter for the `cellSpacing` field of this object."] #[doc = ""] #[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 set_cell_spacing(this: &HtmlTableElement, value: &str); - # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createCaption)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTableElement", + js_name = "createCaption" + )] #[doc = "The `createCaption()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createCaption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_caption(this: &HtmlTableElement) -> HtmlElement; - # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createTBody)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTableElement", + js_name = "createTBody" + )] #[doc = "The `createTBody()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTBody)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_t_body(this: &HtmlTableElement) -> HtmlElement; - # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createTFoot)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTableElement", + js_name = "createTFoot" + )] #[doc = "The `createTFoot()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTFoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_t_foot(this: &HtmlTableElement) -> HtmlElement; - # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createTHead)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTableElement", + js_name = "createTHead" + )] #[doc = "The `createTHead()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTHead)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_t_head(this: &HtmlTableElement) -> HtmlElement; - # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = deleteCaption)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTableElement", + js_name = "deleteCaption" + )] #[doc = "The `deleteCaption()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteCaption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_caption(this: &HtmlTableElement); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableElement" , js_name = deleteRow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableElement", + js_name = "deleteRow" + )] #[doc = "The `deleteRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_row(this: &HtmlTableElement, index: i32) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = deleteTFoot)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTableElement", + js_name = "deleteTFoot" + )] #[doc = "The `deleteTFoot()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTFoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_t_foot(this: &HtmlTableElement); - # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = deleteTHead)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTableElement", + js_name = "deleteTHead" + )] #[doc = "The `deleteTHead()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTHead)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_t_head(this: &HtmlTableElement); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableElement" , js_name = insertRow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableElement", + js_name = "insertRow" + )] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn insert_row(this: &HtmlTableElement) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableElement" , js_name = insertRow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableElement", + js_name = "insertRow" + )] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"] diff --git a/crates/web-sys/src/features/gen_HtmlTableRowElement.rs b/crates/web-sys/src/features/gen_HtmlTableRowElement.rs index 222d7b0df84..2fca06a81de 100644 --- a/crates/web-sys/src/features/gen_HtmlTableRowElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableRowElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableRowElement , typescript_type = "HTMLTableRowElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTableRowElement", + typescript_type = "HTMLTableRowElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableRowElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub type HtmlTableRowElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = rowIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + js_name = "rowIndex" + )] #[doc = "Getter for the `rowIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/rowIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn row_index(this: &HtmlTableRowElement) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = sectionRowIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + js_name = "sectionRowIndex" + )] #[doc = "Getter for the `sectionRowIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/sectionRowIndex)"] @@ -26,98 +46,182 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn section_row_index(this: &HtmlTableRowElement) -> i32; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = cells)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + js_name = "cells" + )] #[doc = "Getter for the `cells` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/cells)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableRowElement`*"] pub fn cells(this: &HtmlTableRowElement) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + 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/HTMLTableRowElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn align(this: &HtmlTableRowElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableRowElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlTableRowElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + js_name = "ch" + )] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableRowElement", + js_name = "ch" + )] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[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 set_ch(this: &HtmlTableRowElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + js_name = "chOff" + )] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableRowElement", + js_name = "chOff" + )] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[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 set_ch_off(this: &HtmlTableRowElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + js_name = "vAlign" + )] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableRowElement", + js_name = "vAlign" + )] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[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 set_v_align(this: &HtmlTableRowElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableRowElement", + js_name = "bgColor" + )] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = bgColor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableRowElement", + js_name = "bgColor" + )] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[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 set_bg_color(this: &HtmlTableRowElement, value: &str); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = deleteCell)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableRowElement", + js_name = "deleteCell" + )] #[doc = "The `deleteCell()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/deleteCell)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn delete_cell(this: &HtmlTableRowElement, index: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableRowElement", + js_name = "insertCell" + )] #[doc = "The `insertCell()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn insert_cell(this: &HtmlTableRowElement) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableRowElement", + js_name = "insertCell" + )] #[doc = "The `insertCell()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"] diff --git a/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs b/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs index 503f2245ed9..0cd5404f975 100644 --- a/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableSectionElement , typescript_type = "HTMLTableSectionElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTableSectionElement", + typescript_type = "HTMLTableSectionElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableSectionElement` class."] #[doc = ""] @@ -12,84 +20,156 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub type HtmlTableSectionElement; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = rows)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableSectionElement", + js_name = "rows" + )] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableSectionElement`*"] pub fn rows(this: &HtmlTableSectionElement) -> HtmlCollection; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableSectionElement", + 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/HTMLTableSectionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn align(this: &HtmlTableSectionElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableSectionElement", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[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 set_align(this: &HtmlTableSectionElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableSectionElement", + js_name = "ch" + )] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = ch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableSectionElement", + js_name = "ch" + )] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[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 set_ch(this: &HtmlTableSectionElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableSectionElement", + js_name = "chOff" + )] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = chOff)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableSectionElement", + js_name = "chOff" + )] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[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 set_ch_off(this: &HtmlTableSectionElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTableSectionElement", + js_name = "vAlign" + )] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = vAlign)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTableSectionElement", + js_name = "vAlign" + )] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[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 set_v_align(this: &HtmlTableSectionElement, value: &str); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = deleteRow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableSectionElement", + js_name = "deleteRow" + )] #[doc = "The `deleteRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/deleteRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn delete_row(this: &HtmlTableSectionElement, index: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = insertRow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableSectionElement", + js_name = "insertRow" + )] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn insert_row(this: &HtmlTableSectionElement) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = insertRow)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTableSectionElement", + js_name = "insertRow" + )] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"] diff --git a/crates/web-sys/src/features/gen_HtmlTemplateElement.rs b/crates/web-sys/src/features/gen_HtmlTemplateElement.rs index dba10b0c044..38f0d13de7f 100644 --- a/crates/web-sys/src/features/gen_HtmlTemplateElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTemplateElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTemplateElement , typescript_type = "HTMLTemplateElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTemplateElement", + typescript_type = "HTMLTemplateElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTemplateElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTemplateElement`*"] pub type HtmlTemplateElement; #[cfg(feature = "DocumentFragment")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTemplateElement" , js_name = content)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTemplateElement", + js_name = "content" + )] #[doc = "Getter for the `content` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement/content)"] diff --git a/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs b/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs index b21d4758a52..bdd7d28ca0f 100644 --- a/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTextAreaElement , typescript_type = "HTMLTextAreaElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTextAreaElement", + typescript_type = "HTMLTextAreaElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTextAreaElement` class."] #[doc = ""] @@ -11,56 +19,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub type HtmlTextAreaElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "autocomplete" + )] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autocomplete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "autocomplete" + )] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[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 set_autocomplete(this: &HtmlTextAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "autofocus" + )] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn autofocus(this: &HtmlTextAreaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autofocus)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "autofocus" + )] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_autofocus(this: &HtmlTextAreaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = cols)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "cols" + )] #[doc = "Getter for the `cols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn cols(this: &HtmlTextAreaElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = cols)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "cols" + )] #[doc = "Setter for the `cols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_cols(this: &HtmlTextAreaElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn disabled(this: &HtmlTextAreaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"] @@ -68,168 +124,314 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_disabled(this: &HtmlTextAreaElement, value: bool); #[cfg(feature = "HtmlFormElement")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = form)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "form" + )] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlTextAreaElement`*"] pub fn form(this: &HtmlTextAreaElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = maxLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "maxLength" + )] #[doc = "Getter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn max_length(this: &HtmlTextAreaElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = maxLength)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "maxLength" + )] #[doc = "Setter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_max_length(this: &HtmlTextAreaElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = minLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "minLength" + )] #[doc = "Getter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn min_length(this: &HtmlTextAreaElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = minLength)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "minLength" + )] #[doc = "Setter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_min_length(this: &HtmlTextAreaElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + 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/HTMLTextAreaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn name(this: &HtmlTextAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &HtmlTextAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = placeholder)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "placeholder" + )] #[doc = "Getter for the `placeholder` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = placeholder)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "placeholder" + )] #[doc = "Setter for the `placeholder` field of this object."] #[doc = ""] #[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 set_placeholder(this: &HtmlTextAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = readOnly)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "readOnly" + )] #[doc = "Getter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn read_only(this: &HtmlTextAreaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = readOnly)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "readOnly" + )] #[doc = "Setter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_read_only(this: &HtmlTextAreaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = required)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "required" + )] #[doc = "Getter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn required(this: &HtmlTextAreaElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = required)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "required" + )] #[doc = "Setter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_required(this: &HtmlTextAreaElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = rows)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "rows" + )] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn rows(this: &HtmlTextAreaElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = rows)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "rows" + )] #[doc = "Setter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_rows(this: &HtmlTextAreaElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = wrap)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "wrap" + )] #[doc = "Getter for the `wrap` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = wrap)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "wrap" + )] #[doc = "Setter for the `wrap` field of this object."] #[doc = ""] #[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 set_wrap(this: &HtmlTextAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + 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/HTMLTextAreaElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn type_(this: &HtmlTextAreaElement) -> String; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = defaultValue)] + #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = defaultValue)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "defaultValue" + )] #[doc = "Setter 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 set_default_value(this: &HtmlTextAreaElement, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + 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/HTMLTextAreaElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn value(this: &HtmlTextAreaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_value(this: &HtmlTextAreaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = textLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "textLength" + )] #[doc = "Getter for the `textLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/textLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn text_length(this: &HtmlTextAreaElement) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = willValidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "willValidate" + )] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/willValidate)"] @@ -237,14 +439,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn will_validate(this: &HtmlTextAreaElement) -> bool; #[cfg(feature = "ValidityState")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = validity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "validity" + )] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `ValidityState`*"] pub fn validity(this: &HtmlTextAreaElement) -> ValidityState; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = validationMessage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "validationMessage" + )] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validationMessage)"] @@ -252,21 +467,41 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn validation_message(this: &HtmlTextAreaElement) -> Result; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = labels)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "labels" + )] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `NodeList`*"] pub fn labels(this: &HtmlTextAreaElement) -> NodeList; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionStart)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "selectionStart" + )] #[doc = "Getter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn selection_start(this: &HtmlTextAreaElement) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionStart)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "selectionStart" + )] #[doc = "Setter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"] @@ -276,14 +511,28 @@ extern "C" { this: &HtmlTextAreaElement, value: Option, ) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionEnd)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "selectionEnd" + )] #[doc = "Getter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn selection_end(this: &HtmlTextAreaElement) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionEnd)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "selectionEnd" + )] #[doc = "Setter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"] @@ -291,14 +540,28 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_selection_end(this: &HtmlTextAreaElement, value: Option) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionDirection)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLTextAreaElement", + js_name = "selectionDirection" + )] #[doc = "Getter for the `selectionDirection` field of this object."] #[doc = ""] #[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>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionDirection)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLTextAreaElement", + js_name = "selectionDirection" + )] #[doc = "Setter for the `selectionDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"] @@ -308,42 +571,74 @@ extern "C" { this: &HtmlTextAreaElement, value: Option<&str>, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = checkValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "checkValidity" + )] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn check_validity(this: &HtmlTextAreaElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = reportValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "reportValidity" + )] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn report_validity(this: &HtmlTextAreaElement) -> bool; - # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = select)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "select" + )] #[doc = "The `select()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/select)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn select(this: &HtmlTextAreaElement); - # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = setCustomValidity)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "setCustomValidity" + )] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_custom_validity(this: &HtmlTextAreaElement, error: &str); - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setRangeText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "setRangeText" + )] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_range_text(this: &HtmlTextAreaElement, replacement: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setRangeText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "setRangeText" + )] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"] @@ -355,7 +650,13 @@ extern "C" { start: u32, end: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setSelectionRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "setSelectionRange" + )] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"] @@ -366,7 +667,13 @@ extern "C" { start: u32, end: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setSelectionRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLTextAreaElement", + js_name = "setSelectionRange" + )] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"] diff --git a/crates/web-sys/src/features/gen_HtmlTimeElement.rs b/crates/web-sys/src/features/gen_HtmlTimeElement.rs index 58b916fb692..dde4d7eb75d 100644 --- a/crates/web-sys/src/features/gen_HtmlTimeElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTimeElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTimeElement , typescript_type = "HTMLTimeElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTimeElement", + typescript_type = "HTMLTimeElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTimeElement` class."] #[doc = ""] @@ -11,14 +19,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] pub type HtmlTimeElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTimeElement" , js_name = dateTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTimeElement", + js_name = "dateTime" + )] #[doc = "Getter for the `dateTime` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTimeElement" , js_name = dateTime)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTimeElement", + js_name = "dateTime" + )] #[doc = "Setter for the `dateTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime)"] diff --git a/crates/web-sys/src/features/gen_HtmlTitleElement.rs b/crates/web-sys/src/features/gen_HtmlTitleElement.rs index 7c3f6e78bb1..1052554f88c 100644 --- a/crates/web-sys/src/features/gen_HtmlTitleElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTitleElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTitleElement , typescript_type = "HTMLTitleElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTitleElement", + typescript_type = "HTMLTitleElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTitleElement` class."] #[doc = ""] @@ -11,14 +19,28 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] pub type HtmlTitleElement; - # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTitleElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "HTMLTitleElement", + js_name = "text" + )] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTitleElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "HTMLTitleElement", + js_name = "text" + )] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"] diff --git a/crates/web-sys/src/features/gen_HtmlTrackElement.rs b/crates/web-sys/src/features/gen_HtmlTrackElement.rs index e1dbf4b5ab0..d67b7b2927a 100644 --- a/crates/web-sys/src/features/gen_HtmlTrackElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTrackElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTrackElement , typescript_type = "HTMLTrackElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLTrackElement", + typescript_type = "HTMLTrackElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTrackElement` class."] #[doc = ""] @@ -11,77 +19,143 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub type HtmlTrackElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = kind)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTrackElement", + 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/HTMLTrackElement/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn kind(this: &HtmlTrackElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = kind)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTrackElement", + js_name = "kind" + )] #[doc = "Setter for the `kind` field of this object."] #[doc = ""] #[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 set_kind(this: &HtmlTrackElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTrackElement", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = src)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTrackElement", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &HtmlTrackElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = srclang)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTrackElement", + js_name = "srclang" + )] #[doc = "Getter for the `srclang` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = srclang)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTrackElement", + js_name = "srclang" + )] #[doc = "Setter for the `srclang` field of this object."] #[doc = ""] #[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 set_srclang(this: &HtmlTrackElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTrackElement", + 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/HTMLTrackElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn label(this: &HtmlTrackElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = label)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTrackElement", + js_name = "label" + )] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[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 set_label(this: &HtmlTrackElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = default)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTrackElement", + js_name = "default" + )] #[doc = "Getter for the `default` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn default(this: &HtmlTrackElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = default)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLTrackElement", + js_name = "default" + )] #[doc = "Setter for the `default` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn set_default(this: &HtmlTrackElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTrackElement", + 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/HTMLTrackElement/readyState)"] @@ -89,7 +163,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn ready_state(this: &HtmlTrackElement) -> u16; #[cfg(feature = "TextTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = track)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLTrackElement", + js_name = "track" + )] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/track)"] diff --git a/crates/web-sys/src/features/gen_HtmlUListElement.rs b/crates/web-sys/src/features/gen_HtmlUListElement.rs index 484925a6c46..5104f78ea5e 100644 --- a/crates/web-sys/src/features/gen_HtmlUListElement.rs +++ b/crates/web-sys/src/features/gen_HtmlUListElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLUListElement , typescript_type = "HTMLUListElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLUListElement", + typescript_type = "HTMLUListElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlUListElement` class."] #[doc = ""] @@ -11,28 +19,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub type HtmlUListElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLUListElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLUListElement", + js_name = "compact" + )] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub fn compact(this: &HtmlUListElement) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLUListElement" , js_name = compact)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLUListElement", + js_name = "compact" + )] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub fn set_compact(this: &HtmlUListElement, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLUListElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLUListElement", + 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/HTMLUListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub fn type_(this: &HtmlUListElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLUListElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLUListElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/type)"] diff --git a/crates/web-sys/src/features/gen_HtmlUnknownElement.rs b/crates/web-sys/src/features/gen_HtmlUnknownElement.rs index 63a86e4e532..9670c19ba8f 100644 --- a/crates/web-sys/src/features/gen_HtmlUnknownElement.rs +++ b/crates/web-sys/src/features/gen_HtmlUnknownElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLUnknownElement , typescript_type = "HTMLUnknownElement")] + #[wasm_bindgen( + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLUnknownElement", + typescript_type = "HTMLUnknownElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlUnknownElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlVideoElement.rs b/crates/web-sys/src/features/gen_HtmlVideoElement.rs index 3301d64f582..5c310847a1b 100644 --- a/crates/web-sys/src/features/gen_HtmlVideoElement.rs +++ b/crates/web-sys/src/features/gen_HtmlVideoElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = HtmlMediaElement , extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLVideoElement , typescript_type = "HTMLVideoElement")] + #[wasm_bindgen( + extends = "HtmlMediaElement", + extends = "HtmlElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "HTMLVideoElement", + typescript_type = "HTMLVideoElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlVideoElement` class."] #[doc = ""] @@ -11,56 +20,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub type HtmlVideoElement; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLVideoElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn width(this: &HtmlVideoElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLVideoElement", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn set_width(this: &HtmlVideoElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLVideoElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn height(this: &HtmlVideoElement) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLVideoElement", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn set_height(this: &HtmlVideoElement, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLVideoElement", + js_name = "videoWidth" + )] #[doc = "Getter for the `videoWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn video_width(this: &HtmlVideoElement) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLVideoElement", + js_name = "videoHeight" + )] #[doc = "Getter for the `videoHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn video_height(this: &HtmlVideoElement) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = poster)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "HTMLVideoElement", + js_name = "poster" + )] #[doc = "Getter for the `poster` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = poster)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "HTMLVideoElement", + js_name = "poster" + )] #[doc = "Setter for the `poster` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"] @@ -68,7 +125,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn set_poster(this: &HtmlVideoElement, value: &str); #[cfg(feature = "VideoPlaybackQuality")] - # [wasm_bindgen (method , structural , js_class = "HTMLVideoElement" , js_name = getVideoPlaybackQuality)] + #[wasm_bindgen( + method, + structural, + js_class = "HTMLVideoElement", + js_name = "getVideoPlaybackQuality" + )] #[doc = "The `getVideoPlaybackQuality()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)"] diff --git a/crates/web-sys/src/features/gen_HttpConnDict.rs b/crates/web-sys/src/features/gen_HttpConnDict.rs index 87eea9edc9a..932b76f61de 100644 --- a/crates/web-sys/src/features/gen_HttpConnDict.rs +++ b/crates/web-sys/src/features/gen_HttpConnDict.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HttpConnDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HttpConnDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HttpConnDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HttpConnInfo.rs b/crates/web-sys/src/features/gen_HttpConnInfo.rs index 987420ebc1b..482b22f0d66 100644 --- a/crates/web-sys/src/features/gen_HttpConnInfo.rs +++ b/crates/web-sys/src/features/gen_HttpConnInfo.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HttpConnInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HttpConnInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HttpConnInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HttpConnectionElement.rs b/crates/web-sys/src/features/gen_HttpConnectionElement.rs index 5fef1331ae6..783f69d5342 100644 --- a/crates/web-sys/src/features/gen_HttpConnectionElement.rs +++ b/crates/web-sys/src/features/gen_HttpConnectionElement.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HttpConnectionElement)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "HttpConnectionElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HttpConnectionElement` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdbCursor.rs b/crates/web-sys/src/features/gen_IdbCursor.rs index f7d124d03e7..d1e74c7eb6d 100644 --- a/crates/web-sys/src/features/gen_IdbCursor.rs +++ b/crates/web-sys/src/features/gen_IdbCursor.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBCursor , typescript_type = "IDBCursor")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IDBCursor", + typescript_type = "IDBCursor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbCursor` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub type IdbCursor; - # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = source)] + #[wasm_bindgen(structural, method, getter, js_class = "IDBCursor", js_name = "source")] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/source)"] @@ -19,21 +23,41 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn source(this: &IdbCursor) -> ::js_sys::Object; #[cfg(feature = "IdbCursorDirection")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = direction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBCursor", + js_name = "direction" + )] #[doc = "Getter for the `direction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/direction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbCursorDirection`*"] pub fn direction(this: &IdbCursor) -> IdbCursorDirection; - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = key)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBCursor", + js_name = "key" + )] #[doc = "Getter for the `key` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = primaryKey)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBCursor", + js_name = "primaryKey" + )] #[doc = "Getter for the `primaryKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/primaryKey)"] @@ -41,28 +65,46 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn primary_key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = request)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBCursor", + js_name = "request" + )] #[doc = "Getter for the `request` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"] pub fn request(this: &IdbCursor) -> IdbRequest; - # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = advance)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBCursor", js_name = "advance")] #[doc = "The `advance()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/advance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn advance(this: &IdbCursor, count: u32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBCursor", + js_name = "continue" + )] #[doc = "The `continue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn continue_(this: &IdbCursor) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBCursor", + js_name = "continue" + )] #[doc = "The `continue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"] @@ -72,7 +114,13 @@ extern "C" { this: &IdbCursor, key: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continuePrimaryKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBCursor", + js_name = "continuePrimaryKey" + )] #[doc = "The `continuePrimaryKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continuePrimaryKey)"] @@ -84,7 +132,7 @@ extern "C" { primary_key: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = delete)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBCursor", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/delete)"] @@ -92,7 +140,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"] pub fn delete(this: &IdbCursor) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = update)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBCursor", js_name = "update")] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/update)"] diff --git a/crates/web-sys/src/features/gen_IdbCursorWithValue.rs b/crates/web-sys/src/features/gen_IdbCursorWithValue.rs index 2f66c5a93aa..7053ed75421 100644 --- a/crates/web-sys/src/features/gen_IdbCursorWithValue.rs +++ b/crates/web-sys/src/features/gen_IdbCursorWithValue.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = IdbCursor , extends = :: js_sys :: Object , js_name = IDBCursorWithValue , typescript_type = "IDBCursorWithValue")] + #[wasm_bindgen( + extends = "IdbCursor", + extends = "::js_sys::Object", + js_name = "IDBCursorWithValue", + typescript_type = "IDBCursorWithValue" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbCursorWithValue` class."] #[doc = ""] @@ -11,7 +16,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorWithValue`*"] pub type IdbCursorWithValue; - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursorWithValue" , js_name = value)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBCursorWithValue", + 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/IDBCursorWithValue/value)"] diff --git a/crates/web-sys/src/features/gen_IdbDatabase.rs b/crates/web-sys/src/features/gen_IdbDatabase.rs index ebcb2f62757..008c7a6ea77 100644 --- a/crates/web-sys/src/features/gen_IdbDatabase.rs +++ b/crates/web-sys/src/features/gen_IdbDatabase.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBDatabase , typescript_type = "IDBDatabase")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IDBDatabase", + typescript_type = "IDBDatabase" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbDatabase` class."] #[doc = ""] @@ -11,14 +16,20 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub type IdbDatabase; - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "IDBDatabase", 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/IDBDatabase/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn name(this: &IdbDatabase) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = version)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBDatabase", + 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/IDBDatabase/version)"] @@ -26,63 +37,117 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn version(this: &IdbDatabase) -> f64; #[cfg(feature = "DomStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = objectStoreNames)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBDatabase", + js_name = "objectStoreNames" + )] #[doc = "Getter for the `objectStoreNames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/objectStoreNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbDatabase`*"] pub fn object_store_names(this: &IdbDatabase) -> DomStringList; - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBDatabase", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onabort(this: &IdbDatabase) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBDatabase", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onabort(this: &IdbDatabase, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBDatabase", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onclose(this: &IdbDatabase) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBDatabase", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onclose(this: &IdbDatabase, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBDatabase", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onerror(this: &IdbDatabase) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBDatabase", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onerror(this: &IdbDatabase, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onversionchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBDatabase", + js_name = "onversionchange" + )] #[doc = "Getter for the `onversionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onversionchange(this: &IdbDatabase) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onversionchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBDatabase", + js_name = "onversionchange" + )] #[doc = "Setter for the `onversionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] @@ -90,14 +155,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onversionchange(this: &IdbDatabase, value: Option<&::js_sys::Function>); #[cfg(feature = "StorageType")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = storage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBDatabase", + js_name = "storage" + )] #[doc = "Getter for the `storage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/storage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `StorageType`*"] pub fn storage(this: &IdbDatabase) -> StorageType; - # [wasm_bindgen (method , structural , js_class = "IDBDatabase" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "IDBDatabase", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close)"] @@ -105,7 +176,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn close(this: &IdbDatabase); #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "createMutableFile" + )] #[doc = "The `createMutableFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] @@ -113,7 +190,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"] pub fn create_mutable_file(this: &IdbDatabase, name: &str) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "createMutableFile" + )] #[doc = "The `createMutableFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] @@ -125,7 +208,13 @@ extern "C" { type_: &str, ) -> Result; #[cfg(feature = "IdbObjectStore")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "createObjectStore" + )] #[doc = "The `createObjectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] @@ -133,7 +222,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`*"] pub fn create_object_store(this: &IdbDatabase, name: &str) -> Result; #[cfg(all(feature = "IdbObjectStore", feature = "IdbObjectStoreParameters",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "createObjectStore" + )] #[doc = "The `createObjectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] @@ -144,7 +239,13 @@ extern "C" { name: &str, optional_parameters: &IdbObjectStoreParameters, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = deleteObjectStore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "deleteObjectStore" + )] #[doc = "The `deleteObjectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/deleteObjectStore)"] @@ -152,7 +253,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn delete_object_store(this: &IdbDatabase, name: &str) -> Result<(), JsValue>; #[cfg(feature = "IdbTransaction")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "transaction" + )] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] @@ -163,7 +270,13 @@ extern "C" { store_names: &str, ) -> Result; #[cfg(feature = "IdbTransaction")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "transaction" + )] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] @@ -174,7 +287,13 @@ extern "C" { store_names: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "transaction" + )] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] @@ -186,7 +305,13 @@ extern "C" { mode: IdbTransactionMode, ) -> Result; #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBDatabase", + js_name = "transaction" + )] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] diff --git a/crates/web-sys/src/features/gen_IdbFactory.rs b/crates/web-sys/src/features/gen_IdbFactory.rs index 30fac16d7a0..920e9bbb3cb 100644 --- a/crates/web-sys/src/features/gen_IdbFactory.rs +++ b/crates/web-sys/src/features/gen_IdbFactory.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBFactory , typescript_type = "IDBFactory")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IDBFactory", + typescript_type = "IDBFactory" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFactory` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`*"] pub type IdbFactory; - # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = cmp)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBFactory", js_name = "cmp")] #[doc = "The `cmp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/cmp)"] @@ -23,7 +27,13 @@ extern "C" { second: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = deleteDatabase)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFactory", + js_name = "deleteDatabase" + )] #[doc = "The `deleteDatabase()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"] @@ -31,7 +41,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] pub fn delete_database(this: &IdbFactory, name: &str) -> Result; #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = deleteDatabase)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFactory", + js_name = "deleteDatabase" + )] #[doc = "The `deleteDatabase()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"] @@ -43,7 +59,7 @@ extern "C" { options: &IdbOpenDbOptions, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBFactory", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] @@ -55,7 +71,7 @@ extern "C" { version: u32, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBFactory", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] @@ -67,7 +83,7 @@ extern "C" { version: f64, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBFactory", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] @@ -75,7 +91,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] pub fn open(this: &IdbFactory, name: &str) -> Result; #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBFactory", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] diff --git a/crates/web-sys/src/features/gen_IdbFileHandle.rs b/crates/web-sys/src/features/gen_IdbFileHandle.rs index 0e395303bf5..55274864463 100644 --- a/crates/web-sys/src/features/gen_IdbFileHandle.rs +++ b/crates/web-sys/src/features/gen_IdbFileHandle.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBFileHandle , typescript_type = "IDBFileHandle")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IDBFileHandle", + typescript_type = "IDBFileHandle" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFileHandle` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub type IdbFileHandle; #[cfg(feature = "IdbMutableFile")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = mutableFile)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileHandle", + js_name = "mutableFile" + )] #[doc = "Getter for the `mutableFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/mutableFile)"] @@ -20,77 +31,143 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] pub fn mutable_file(this: &IdbFileHandle) -> Option; #[cfg(feature = "IdbMutableFile")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = fileHandle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileHandle", + js_name = "fileHandle" + )] #[doc = "Getter for the `fileHandle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/fileHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] pub fn file_handle(this: &IdbFileHandle) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = active)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileHandle", + js_name = "active" + )] #[doc = "Getter for the `active` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/active)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn active(this: &IdbFileHandle) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = location)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileHandle", + js_name = "location" + )] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn location(this: &IdbFileHandle) -> Option; - # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = location)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBFileHandle", + js_name = "location" + )] #[doc = "Setter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_location(this: &IdbFileHandle, value: Option); - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = oncomplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileHandle", + js_name = "oncomplete" + )] #[doc = "Getter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn oncomplete(this: &IdbFileHandle) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = oncomplete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBFileHandle", + js_name = "oncomplete" + )] #[doc = "Setter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_oncomplete(this: &IdbFileHandle, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileHandle", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn onabort(this: &IdbFileHandle) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBFileHandle", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_onabort(this: &IdbFileHandle, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileHandle", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn onerror(this: &IdbFileHandle) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBFileHandle", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_onerror(this: &IdbFileHandle, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = abort)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "abort" + )] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/abort)"] @@ -98,7 +175,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn abort(this: &IdbFileHandle) -> Result<(), JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] @@ -109,7 +192,13 @@ extern "C" { value: &str, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] @@ -120,7 +209,13 @@ extern "C" { value: &::js_sys::ArrayBuffer, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] @@ -131,7 +226,13 @@ extern "C" { value: &::js_sys::Object, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] @@ -142,7 +243,13 @@ extern "C" { value: &mut [u8], ) -> Result, JsValue>; #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "append" + )] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] @@ -153,7 +260,13 @@ extern "C" { value: &Blob, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = flush)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "flush" + )] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/flush)"] @@ -161,7 +274,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn flush(this: &IdbFileHandle) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "getMetadata" + )] #[doc = "The `getMetadata()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"] @@ -169,7 +288,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn get_metadata(this: &IdbFileHandle) -> Result, JsValue>; #[cfg(all(feature = "IdbFileMetadataParameters", feature = "IdbFileRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "getMetadata" + )] #[doc = "The `getMetadata()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"] @@ -180,7 +305,13 @@ extern "C" { parameters: &IdbFileMetadataParameters, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "readAsArrayBuffer" + )] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"] @@ -191,7 +322,13 @@ extern "C" { size: u32, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "readAsArrayBuffer" + )] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"] @@ -202,7 +339,13 @@ extern "C" { size: f64, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] @@ -213,7 +356,13 @@ extern "C" { size: u32, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] @@ -224,7 +373,13 @@ extern "C" { size: f64, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] @@ -236,7 +391,13 @@ extern "C" { encoding: Option<&str>, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "readAsText" + )] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] @@ -248,7 +409,13 @@ extern "C" { encoding: Option<&str>, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "truncate" + )] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] @@ -256,7 +423,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn truncate(this: &IdbFileHandle) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "truncate" + )] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] @@ -267,7 +440,13 @@ extern "C" { size: u32, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "truncate" + )] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] @@ -278,7 +457,13 @@ extern "C" { size: f64, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] @@ -289,7 +474,13 @@ extern "C" { value: &str, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] @@ -300,7 +491,13 @@ extern "C" { value: &::js_sys::ArrayBuffer, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] @@ -311,7 +508,13 @@ extern "C" { value: &::js_sys::Object, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] @@ -322,7 +525,13 @@ extern "C" { value: &mut [u8], ) -> Result, JsValue>; #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBFileHandle", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] diff --git a/crates/web-sys/src/features/gen_IdbFileMetadataParameters.rs b/crates/web-sys/src/features/gen_IdbFileMetadataParameters.rs index 48e322cf182..c7682d131d9 100644 --- a/crates/web-sys/src/features/gen_IdbFileMetadataParameters.rs +++ b/crates/web-sys/src/features/gen_IdbFileMetadataParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBFileMetadataParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IDBFileMetadataParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFileMetadataParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdbFileRequest.rs b/crates/web-sys/src/features/gen_IdbFileRequest.rs index e228c1a79d9..0c06167f0dc 100644 --- a/crates/web-sys/src/features/gen_IdbFileRequest.rs +++ b/crates/web-sys/src/features/gen_IdbFileRequest.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = DomRequest , extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBFileRequest , typescript_type = "IDBFileRequest")] + #[wasm_bindgen( + extends = "DomRequest", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IDBFileRequest", + typescript_type = "IDBFileRequest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFileRequest` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] pub type IdbFileRequest; #[cfg(feature = "IdbFileHandle")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileRequest" , js_name = fileHandle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileRequest", + js_name = "fileHandle" + )] #[doc = "Getter for the `fileHandle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/fileHandle)"] @@ -20,21 +32,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn file_handle(this: &IdbFileRequest) -> Option; #[cfg(feature = "IdbFileHandle")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileRequest" , js_name = lockedFile)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileRequest", + js_name = "lockedFile" + )] #[doc = "Getter for the `lockedFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/lockedFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn locked_file(this: &IdbFileRequest) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "IDBFileRequest" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBFileRequest", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] pub fn onprogress(this: &IdbFileRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBFileRequest" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBFileRequest", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/onprogress)"] diff --git a/crates/web-sys/src/features/gen_IdbIndex.rs b/crates/web-sys/src/features/gen_IdbIndex.rs index 98a76e657e8..4edbc77f175 100644 --- a/crates/web-sys/src/features/gen_IdbIndex.rs +++ b/crates/web-sys/src/features/gen_IdbIndex.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBIndex , typescript_type = "IDBIndex")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IDBIndex", + typescript_type = "IDBIndex" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbIndex` class."] #[doc = ""] @@ -11,14 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub type IdbIndex; - # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = name)] + #[wasm_bindgen(structural, method, getter, js_class = "IDBIndex", 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/IDBIndex/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn name(this: &IdbIndex) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "IDBIndex" , js_name = name)] + #[wasm_bindgen(structural, method, setter, js_class = "IDBIndex", js_name = "name")] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"] @@ -26,42 +30,67 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn set_name(this: &IdbIndex, value: &str); #[cfg(feature = "IdbObjectStore")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = objectStore)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBIndex", + js_name = "objectStore" + )] #[doc = "Getter for the `objectStore` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/objectStore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] pub fn object_store(this: &IdbIndex) -> IdbObjectStore; - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBIndex" , js_name = keyPath)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBIndex", + js_name = "keyPath" + )] #[doc = "Getter for the `keyPath` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/keyPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn key_path(this: &IdbIndex) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = multiEntry)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBIndex", + js_name = "multiEntry" + )] #[doc = "Getter for the `multiEntry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/multiEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn multi_entry(this: &IdbIndex) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = unique)] + #[wasm_bindgen(structural, method, getter, js_class = "IDBIndex", js_name = "unique")] #[doc = "Getter for the `unique` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/unique)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn unique(this: &IdbIndex) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = locale)] + #[wasm_bindgen(structural, method, getter, js_class = "IDBIndex", 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/IDBIndex/locale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn locale(this: &IdbIndex) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = isAutoLocale)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBIndex", + js_name = "isAutoLocale" + )] #[doc = "Getter for the `isAutoLocale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/isAutoLocale)"] @@ -69,7 +98,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn is_auto_locale(this: &IdbIndex) -> bool; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = count)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBIndex", js_name = "count")] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"] @@ -77,7 +106,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn count(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = count)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBIndex", js_name = "count")] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"] @@ -88,7 +117,7 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = get)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBIndex", js_name = "get")] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get)"] @@ -96,7 +125,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get(this: &IdbIndex, key: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBIndex", js_name = "getAll")] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] @@ -104,7 +133,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBIndex", js_name = "getAll")] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] @@ -115,7 +144,7 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBIndex", js_name = "getAll")] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] @@ -127,7 +156,13 @@ extern "C" { limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "getAllKeys" + )] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] @@ -135,7 +170,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all_keys(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "getAllKeys" + )] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] @@ -146,7 +187,13 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "getAllKeys" + )] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] @@ -158,7 +205,7 @@ extern "C" { limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getKey)] + #[wasm_bindgen(catch, method, structural, js_class = "IDBIndex", js_name = "getKey")] #[doc = "The `getKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getKey)"] @@ -166,7 +213,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_key(this: &IdbIndex, key: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "openCursor" + )] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] @@ -174,7 +227,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn open_cursor(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "openCursor" + )] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] @@ -185,7 +244,13 @@ extern "C" { range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "openCursor" + )] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] @@ -197,7 +262,13 @@ extern "C" { direction: IdbCursorDirection, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "openKeyCursor" + )] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] @@ -205,7 +276,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn open_key_cursor(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "openKeyCursor" + )] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] @@ -216,7 +293,13 @@ extern "C" { range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBIndex", + js_name = "openKeyCursor" + )] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] diff --git a/crates/web-sys/src/features/gen_IdbIndexParameters.rs b/crates/web-sys/src/features/gen_IdbIndexParameters.rs index 7da00bccfc4..79698b4c5db 100644 --- a/crates/web-sys/src/features/gen_IdbIndexParameters.rs +++ b/crates/web-sys/src/features/gen_IdbIndexParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBIndexParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IDBIndexParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbIndexParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdbKeyRange.rs b/crates/web-sys/src/features/gen_IdbKeyRange.rs index 6a9841624e1..538a204990a 100644 --- a/crates/web-sys/src/features/gen_IdbKeyRange.rs +++ b/crates/web-sys/src/features/gen_IdbKeyRange.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBKeyRange , typescript_type = "IDBKeyRange")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IDBKeyRange", + typescript_type = "IDBKeyRange" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbKeyRange` class."] #[doc = ""] @@ -11,35 +15,66 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub type IdbKeyRange; - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = lower)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBKeyRange", + js_name = "lower" + )] #[doc = "Getter for the `lower` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn lower(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = upper)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBKeyRange", + js_name = "upper" + )] #[doc = "Getter for the `upper` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn upper(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "IDBKeyRange" , js_name = lowerOpen)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBKeyRange", + js_name = "lowerOpen" + )] #[doc = "Getter for the `lowerOpen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn lower_open(this: &IdbKeyRange) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "IDBKeyRange" , js_name = upperOpen)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBKeyRange", + js_name = "upperOpen" + )] #[doc = "Getter for the `upperOpen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn upper_open(this: &IdbKeyRange) -> bool; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "bound" + )] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] @@ -49,7 +84,12 @@ extern "C" { lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "bound" + )] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] @@ -60,7 +100,12 @@ extern "C" { upper: &::wasm_bindgen::JsValue, lower_open: bool, ) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "bound" + )] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] @@ -72,21 +117,37 @@ extern "C" { lower_open: bool, upper_open: bool, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "IDBKeyRange" , js_name = includes)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBKeyRange", + js_name = "includes" + )] #[doc = "The `includes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/includes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn includes(this: &IdbKeyRange, key: &::wasm_bindgen::JsValue) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "lowerBound" + )] #[doc = "The `lowerBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn lower_bound(lower: &::wasm_bindgen::JsValue) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "lowerBound" + )] #[doc = "The `lowerBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound)"] @@ -96,21 +157,36 @@ extern "C" { lower: &::wasm_bindgen::JsValue, open: bool, ) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = only)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "only" + )] #[doc = "The `only()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/only)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn only(value: &::wasm_bindgen::JsValue) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "upperBound" + )] #[doc = "The `upperBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn upper_bound(upper: &::wasm_bindgen::JsValue) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbKeyRange", + js_class = "IDBKeyRange", + js_name = "upperBound" + )] #[doc = "The `upperBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound)"] diff --git a/crates/web-sys/src/features/gen_IdbLocaleAwareKeyRange.rs b/crates/web-sys/src/features/gen_IdbLocaleAwareKeyRange.rs index 09420bd3bf0..32eaf2df321 100644 --- a/crates/web-sys/src/features/gen_IdbLocaleAwareKeyRange.rs +++ b/crates/web-sys/src/features/gen_IdbLocaleAwareKeyRange.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = IdbKeyRange , extends = :: js_sys :: Object , js_name = IDBLocaleAwareKeyRange , typescript_type = "IDBLocaleAwareKeyRange")] + #[wasm_bindgen( + extends = "IdbKeyRange", + extends = "::js_sys::Object", + js_name = "IDBLocaleAwareKeyRange", + typescript_type = "IDBLocaleAwareKeyRange" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbLocaleAwareKeyRange` class."] #[doc = ""] @@ -11,7 +16,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] pub type IdbLocaleAwareKeyRange; - # [wasm_bindgen (catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbLocaleAwareKeyRange", + js_class = "IDBLocaleAwareKeyRange", + js_name = "bound" + )] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] @@ -21,7 +31,12 @@ extern "C" { lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbLocaleAwareKeyRange", + js_class = "IDBLocaleAwareKeyRange", + js_name = "bound" + )] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] @@ -32,7 +47,12 @@ extern "C" { upper: &::wasm_bindgen::JsValue, lower_open: bool, ) -> Result; - # [wasm_bindgen (catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound)] + #[wasm_bindgen( + catch, + static_method_of = "IdbLocaleAwareKeyRange", + js_class = "IDBLocaleAwareKeyRange", + js_name = "bound" + )] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] diff --git a/crates/web-sys/src/features/gen_IdbMutableFile.rs b/crates/web-sys/src/features/gen_IdbMutableFile.rs index 47284d12141..b4188cac7e0 100644 --- a/crates/web-sys/src/features/gen_IdbMutableFile.rs +++ b/crates/web-sys/src/features/gen_IdbMutableFile.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBMutableFile , typescript_type = "IDBMutableFile")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IDBMutableFile", + typescript_type = "IDBMutableFile" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbMutableFile` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub type IdbMutableFile; - # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBMutableFile", + 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/IDBMutableFile/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn name(this: &IdbMutableFile) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBMutableFile", + 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/IDBMutableFile/type)"] @@ -26,35 +43,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn type_(this: &IdbMutableFile) -> String; #[cfg(feature = "IdbDatabase")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = database)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBMutableFile", + js_name = "database" + )] #[doc = "Getter for the `database` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/database)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbMutableFile`*"] pub fn database(this: &IdbMutableFile) -> IdbDatabase; - # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBMutableFile", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn onabort(this: &IdbMutableFile) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBMutableFile" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBMutableFile", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn set_onabort(this: &IdbMutableFile, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBMutableFile", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn onerror(this: &IdbMutableFile) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBMutableFile" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBMutableFile", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"] @@ -62,7 +109,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn set_onerror(this: &IdbMutableFile, value: Option<&::js_sys::Function>); #[cfg(feature = "DomRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBMutableFile" , js_name = getFile)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBMutableFile", + js_name = "getFile" + )] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/getFile)"] @@ -70,7 +123,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `IdbMutableFile`*"] pub fn get_file(this: &IdbMutableFile) -> Result; #[cfg(feature = "IdbFileHandle")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBMutableFile" , js_name = open)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBMutableFile", + js_name = "open" + )] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/open)"] diff --git a/crates/web-sys/src/features/gen_IdbObjectStore.rs b/crates/web-sys/src/features/gen_IdbObjectStore.rs index b662f01fb4a..36bec0a7621 100644 --- a/crates/web-sys/src/features/gen_IdbObjectStore.rs +++ b/crates/web-sys/src/features/gen_IdbObjectStore.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBObjectStore , typescript_type = "IDBObjectStore")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IDBObjectStore", + typescript_type = "IDBObjectStore" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbObjectStore` class."] #[doc = ""] @@ -11,21 +15,40 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub type IdbObjectStore; - # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBObjectStore", + 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/IDBObjectStore/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn name(this: &IdbObjectStore) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "IDBObjectStore" , js_name = name)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBObjectStore", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[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 set_name(this: &IdbObjectStore, value: &str); - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBObjectStore" , js_name = keyPath)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBObjectStore", + js_name = "keyPath" + )] #[doc = "Getter for the `keyPath` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/keyPath)"] @@ -33,7 +56,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn key_path(this: &IdbObjectStore) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "DomStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = indexNames)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBObjectStore", + js_name = "indexNames" + )] #[doc = "Getter for the `indexNames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/indexNames)"] @@ -41,14 +70,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbObjectStore`*"] pub fn index_names(this: &IdbObjectStore) -> DomStringList; #[cfg(feature = "IdbTransaction")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = transaction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBObjectStore", + js_name = "transaction" + )] #[doc = "Getter for the `transaction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/transaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbTransaction`*"] pub fn transaction(this: &IdbObjectStore) -> IdbTransaction; - # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = autoIncrement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBObjectStore", + js_name = "autoIncrement" + )] #[doc = "Getter for the `autoIncrement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/autoIncrement)"] @@ -56,7 +97,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn auto_increment(this: &IdbObjectStore) -> bool; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/add)"] @@ -67,7 +114,13 @@ extern "C" { value: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = add)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "add" + )] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/add)"] @@ -79,7 +132,13 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = clear)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/clear)"] @@ -87,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn clear(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = count)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "count" + )] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/count)"] @@ -95,7 +160,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn count(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = count)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "count" + )] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/count)"] @@ -106,7 +177,13 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbIndex")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "createIndex" + )] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] @@ -118,7 +195,13 @@ extern "C" { key_path: &str, ) -> Result; #[cfg(feature = "IdbIndex")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "createIndex" + )] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] @@ -130,7 +213,13 @@ extern "C" { key_path: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbIndex", feature = "IdbIndexParameters",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "createIndex" + )] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] @@ -143,7 +232,13 @@ extern "C" { optional_parameters: &IdbIndexParameters, ) -> Result; #[cfg(all(feature = "IdbIndex", feature = "IdbIndexParameters",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "createIndex" + )] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] @@ -156,7 +251,13 @@ extern "C" { optional_parameters: &IdbIndexParameters, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = delete)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "delete" + )] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/delete)"] @@ -166,7 +267,13 @@ extern "C" { this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = deleteIndex)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "deleteIndex" + )] #[doc = "The `deleteIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/deleteIndex)"] @@ -174,7 +281,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn delete_index(this: &IdbObjectStore, index_name: &str) -> Result<(), JsValue>; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = get)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/get)"] @@ -183,7 +296,13 @@ extern "C" { pub fn get(this: &IdbObjectStore, key: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "getAll" + )] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] @@ -191,7 +310,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "getAll" + )] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] @@ -202,7 +327,13 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "getAll" + )] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] @@ -214,7 +345,13 @@ extern "C" { limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "getAllKeys" + )] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] @@ -222,7 +359,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all_keys(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "getAllKeys" + )] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] @@ -233,7 +376,13 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "getAllKeys" + )] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] @@ -245,7 +394,13 @@ extern "C" { limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "getKey" + )] #[doc = "The `getKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getKey)"] @@ -256,7 +411,13 @@ extern "C" { key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbIndex")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = index)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "index" + )] #[doc = "The `index()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/index)"] @@ -264,7 +425,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] pub fn index(this: &IdbObjectStore, name: &str) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "openCursor" + )] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] @@ -272,7 +439,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn open_cursor(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "openCursor" + )] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] @@ -283,7 +456,13 @@ extern "C" { range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "openCursor" + )] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] @@ -295,7 +474,13 @@ extern "C" { direction: IdbCursorDirection, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "openKeyCursor" + )] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] @@ -303,7 +488,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn open_key_cursor(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "openKeyCursor" + )] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] @@ -314,7 +505,13 @@ extern "C" { range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "openKeyCursor" + )] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] @@ -326,7 +523,13 @@ extern "C" { direction: IdbCursorDirection, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = put)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "put" + )] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/put)"] @@ -337,7 +540,13 @@ extern "C" { value: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = put)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBObjectStore", + js_name = "put" + )] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/put)"] diff --git a/crates/web-sys/src/features/gen_IdbObjectStoreParameters.rs b/crates/web-sys/src/features/gen_IdbObjectStoreParameters.rs index d151ccc213f..c93296c8af4 100644 --- a/crates/web-sys/src/features/gen_IdbObjectStoreParameters.rs +++ b/crates/web-sys/src/features/gen_IdbObjectStoreParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBObjectStoreParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IDBObjectStoreParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbObjectStoreParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdbOpenDbOptions.rs b/crates/web-sys/src/features/gen_IdbOpenDbOptions.rs index 57ded3a72f8..83c692df463 100644 --- a/crates/web-sys/src/features/gen_IdbOpenDbOptions.rs +++ b/crates/web-sys/src/features/gen_IdbOpenDbOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBOpenDBOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IDBOpenDBOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbOpenDbOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdbOpenDbRequest.rs b/crates/web-sys/src/features/gen_IdbOpenDbRequest.rs index 2810085daff..935d7b37a38 100644 --- a/crates/web-sys/src/features/gen_IdbOpenDbRequest.rs +++ b/crates/web-sys/src/features/gen_IdbOpenDbRequest.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = IdbRequest , extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBOpenDBRequest , typescript_type = "IDBOpenDBRequest")] + #[wasm_bindgen( + extends = "IdbRequest", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IDBOpenDBRequest", + typescript_type = "IDBOpenDBRequest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbOpenDbRequest` class."] #[doc = ""] @@ -11,28 +17,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub type IdbOpenDbRequest; - # [wasm_bindgen (structural , method , getter , js_class = "IDBOpenDBRequest" , js_name = onblocked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBOpenDBRequest", + js_name = "onblocked" + )] #[doc = "Getter for the `onblocked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onblocked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub fn onblocked(this: &IdbOpenDbRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBOpenDBRequest" , js_name = onblocked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBOpenDBRequest", + js_name = "onblocked" + )] #[doc = "Setter for the `onblocked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onblocked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub fn set_onblocked(this: &IdbOpenDbRequest, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBOpenDBRequest" , js_name = onupgradeneeded)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBOpenDBRequest", + js_name = "onupgradeneeded" + )] #[doc = "Getter for the `onupgradeneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onupgradeneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub fn onupgradeneeded(this: &IdbOpenDbRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBOpenDBRequest" , js_name = onupgradeneeded)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBOpenDBRequest", + js_name = "onupgradeneeded" + )] #[doc = "Setter for the `onupgradeneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onupgradeneeded)"] diff --git a/crates/web-sys/src/features/gen_IdbRequest.rs b/crates/web-sys/src/features/gen_IdbRequest.rs index e6f54e2ea84..8b9bd84f388 100644 --- a/crates/web-sys/src/features/gen_IdbRequest.rs +++ b/crates/web-sys/src/features/gen_IdbRequest.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBRequest , typescript_type = "IDBRequest")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IDBRequest", + typescript_type = "IDBRequest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbRequest` class."] #[doc = ""] @@ -11,7 +16,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub type IdbRequest; - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBRequest" , js_name = result)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBRequest", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result)"] @@ -19,14 +31,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn result(this: &IdbRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "DomException")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBRequest" , js_name = error)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBRequest", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbRequest`*"] pub fn error(this: &IdbRequest) -> Result, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = source)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBRequest", + js_name = "source" + )] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source)"] @@ -34,7 +59,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn source(this: &IdbRequest) -> Option<::js_sys::Object>; #[cfg(feature = "IdbTransaction")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = transaction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBRequest", + js_name = "transaction" + )] #[doc = "Getter for the `transaction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction)"] @@ -42,35 +73,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbTransaction`*"] pub fn transaction(this: &IdbRequest) -> Option; #[cfg(feature = "IdbRequestReadyState")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBRequest", + 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/IDBRequest/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbRequestReadyState`*"] pub fn ready_state(this: &IdbRequest) -> IdbRequestReadyState; - # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = onsuccess)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBRequest", + js_name = "onsuccess" + )] #[doc = "Getter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn onsuccess(this: &IdbRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBRequest" , js_name = onsuccess)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBRequest", + js_name = "onsuccess" + )] #[doc = "Setter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn set_onsuccess(this: &IdbRequest, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBRequest", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn onerror(this: &IdbRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBRequest" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBRequest", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] diff --git a/crates/web-sys/src/features/gen_IdbTransaction.rs b/crates/web-sys/src/features/gen_IdbTransaction.rs index 9e10c9295d1..006cc09378b 100644 --- a/crates/web-sys/src/features/gen_IdbTransaction.rs +++ b/crates/web-sys/src/features/gen_IdbTransaction.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBTransaction , typescript_type = "IDBTransaction")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IDBTransaction", + typescript_type = "IDBTransaction" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbTransaction` class."] #[doc = ""] @@ -12,7 +17,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub type IdbTransaction; #[cfg(feature = "IdbTransactionMode")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBTransaction" , js_name = mode)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "IDBTransaction", + js_name = "mode" + )] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/mode)"] @@ -20,7 +32,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`, `IdbTransactionMode`*"] pub fn mode(this: &IdbTransaction) -> Result; #[cfg(feature = "IdbDatabase")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = db)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBTransaction", + js_name = "db" + )] #[doc = "Getter for the `db` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/db)"] @@ -28,49 +46,91 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] pub fn db(this: &IdbTransaction) -> IdbDatabase; #[cfg(feature = "DomException")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = error)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBTransaction", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbTransaction`*"] pub fn error(this: &IdbTransaction) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBTransaction", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn onabort(this: &IdbTransaction) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBTransaction", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn set_onabort(this: &IdbTransaction, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = oncomplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBTransaction", + js_name = "oncomplete" + )] #[doc = "Getter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn oncomplete(this: &IdbTransaction) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = oncomplete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBTransaction", + js_name = "oncomplete" + )] #[doc = "Setter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn set_oncomplete(this: &IdbTransaction, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBTransaction", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn onerror(this: &IdbTransaction) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "IDBTransaction", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror)"] @@ -78,21 +138,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn set_onerror(this: &IdbTransaction, value: Option<&::js_sys::Function>); #[cfg(feature = "DomStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = objectStoreNames)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBTransaction", + js_name = "objectStoreNames" + )] #[doc = "Getter for the `objectStoreNames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStoreNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbTransaction`*"] pub fn object_store_names(this: &IdbTransaction) -> DomStringList; - # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = abort)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBTransaction", + js_name = "abort" + )] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn abort(this: &IdbTransaction) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = commit)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBTransaction", + js_name = "commit" + )] #[doc = "The `commit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/commit)"] @@ -100,7 +178,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn commit(this: &IdbTransaction) -> Result<(), JsValue>; #[cfg(feature = "IdbObjectStore")] - # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = objectStore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IDBTransaction", + js_name = "objectStore" + )] #[doc = "The `objectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStore)"] diff --git a/crates/web-sys/src/features/gen_IdbVersionChangeEvent.rs b/crates/web-sys/src/features/gen_IdbVersionChangeEvent.rs index 32348fce7f4..dde001f5937 100644 --- a/crates/web-sys/src/features/gen_IdbVersionChangeEvent.rs +++ b/crates/web-sys/src/features/gen_IdbVersionChangeEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = IDBVersionChangeEvent , typescript_type = "IDBVersionChangeEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "IDBVersionChangeEvent", + typescript_type = "IDBVersionChangeEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbVersionChangeEvent` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] pub type IdbVersionChangeEvent; - # [wasm_bindgen (structural , method , getter , js_class = "IDBVersionChangeEvent" , js_name = oldVersion)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBVersionChangeEvent", + js_name = "oldVersion" + )] #[doc = "Getter for the `oldVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/oldVersion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] pub fn old_version(this: &IdbVersionChangeEvent) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "IDBVersionChangeEvent" , js_name = newVersion)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IDBVersionChangeEvent", + js_name = "newVersion" + )] #[doc = "Getter for the `newVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/newVersion)"] diff --git a/crates/web-sys/src/features/gen_IdbVersionChangeEventInit.rs b/crates/web-sys/src/features/gen_IdbVersionChangeEventInit.rs index 5ec7d76eb5c..9ecdc781548 100644 --- a/crates/web-sys/src/features/gen_IdbVersionChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_IdbVersionChangeEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBVersionChangeEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IDBVersionChangeEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbVersionChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdleDeadline.rs b/crates/web-sys/src/features/gen_IdleDeadline.rs index d79f9ae5e98..e72fe4750e8 100644 --- a/crates/web-sys/src/features/gen_IdleDeadline.rs +++ b/crates/web-sys/src/features/gen_IdleDeadline.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IdleDeadline , typescript_type = "IdleDeadline")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IdleDeadline", + typescript_type = "IdleDeadline" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdleDeadline` class."] #[doc = ""] @@ -11,14 +15,25 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] pub type IdleDeadline; - # [wasm_bindgen (structural , method , getter , js_class = "IdleDeadline" , js_name = didTimeout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IdleDeadline", + js_name = "didTimeout" + )] #[doc = "Getter for the `didTimeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/didTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] pub fn did_timeout(this: &IdleDeadline) -> bool; - # [wasm_bindgen (method , structural , js_class = "IdleDeadline" , js_name = timeRemaining)] + #[wasm_bindgen( + method, + structural, + js_class = "IdleDeadline", + js_name = "timeRemaining" + )] #[doc = "The `timeRemaining()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/timeRemaining)"] diff --git a/crates/web-sys/src/features/gen_IdleRequestOptions.rs b/crates/web-sys/src/features/gen_IdleRequestOptions.rs index 06abc336e72..bdcc71712ca 100644 --- a/crates/web-sys/src/features/gen_IdleRequestOptions.rs +++ b/crates/web-sys/src/features/gen_IdleRequestOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IdleRequestOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IdleRequestOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdleRequestOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IirFilterNode.rs b/crates/web-sys/src/features/gen_IirFilterNode.rs index 833bd3073c3..beb97fb989e 100644 --- a/crates/web-sys/src/features/gen_IirFilterNode.rs +++ b/crates/web-sys/src/features/gen_IirFilterNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = IIRFilterNode , typescript_type = "IIRFilterNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "IIRFilterNode", + typescript_type = "IIRFilterNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IirFilterNode` class."] #[doc = ""] @@ -22,7 +28,12 @@ extern "C" { context: &BaseAudioContext, options: &IirFilterOptions, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "IIRFilterNode" , js_name = getFrequencyResponse)] + #[wasm_bindgen( + method, + structural, + js_class = "IIRFilterNode", + js_name = "getFrequencyResponse" + )] #[doc = "The `getFrequencyResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode/getFrequencyResponse)"] diff --git a/crates/web-sys/src/features/gen_IirFilterOptions.rs b/crates/web-sys/src/features/gen_IirFilterOptions.rs index 2961ffc0c81..4aa1f2d0087 100644 --- a/crates/web-sys/src/features/gen_IirFilterOptions.rs +++ b/crates/web-sys/src/features/gen_IirFilterOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IIRFilterOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IIRFilterOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IirFilterOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ImageBitmap.rs b/crates/web-sys/src/features/gen_ImageBitmap.rs index c400d2f813d..dba01898071 100644 --- a/crates/web-sys/src/features/gen_ImageBitmap.rs +++ b/crates/web-sys/src/features/gen_ImageBitmap.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageBitmap , typescript_type = "ImageBitmap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ImageBitmap", + typescript_type = "ImageBitmap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageBitmap` class."] #[doc = ""] @@ -11,21 +15,33 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub type ImageBitmap; - # [wasm_bindgen (structural , method , getter , js_class = "ImageBitmap" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageBitmap", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn width(this: &ImageBitmap) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "ImageBitmap" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageBitmap", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn height(this: &ImageBitmap) -> u32; - # [wasm_bindgen (method , structural , js_class = "ImageBitmap" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "ImageBitmap", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close)"] @@ -33,7 +49,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn close(this: &ImageBitmap); #[cfg(feature = "ImageBitmapFormat")] - # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ImageBitmap", + js_name = "findOptimalFormat" + )] #[doc = "The `findOptimalFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] @@ -41,7 +63,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn find_optimal_format(this: &ImageBitmap) -> Result; #[cfg(feature = "ImageBitmapFormat")] - # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ImageBitmap", + js_name = "findOptimalFormat" + )] #[doc = "The `findOptimalFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] @@ -52,7 +80,13 @@ extern "C" { a_possible_formats: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "ImageBitmapFormat")] - # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ImageBitmap", + js_name = "mapDataInto" + )] #[doc = "The `mapDataInto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] @@ -65,7 +99,13 @@ extern "C" { a_offset: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmapFormat")] - # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ImageBitmap", + js_name = "mapDataInto" + )] #[doc = "The `mapDataInto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] @@ -78,7 +118,13 @@ extern "C" { a_offset: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmapFormat")] - # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mappedDataLength)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ImageBitmap", + js_name = "mappedDataLength" + )] #[doc = "The `mappedDataLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mappedDataLength)"] diff --git a/crates/web-sys/src/features/gen_ImageBitmapRenderingContext.rs b/crates/web-sys/src/features/gen_ImageBitmapRenderingContext.rs index 33cc46f029f..d7b21796df9 100644 --- a/crates/web-sys/src/features/gen_ImageBitmapRenderingContext.rs +++ b/crates/web-sys/src/features/gen_ImageBitmapRenderingContext.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageBitmapRenderingContext , typescript_type = "ImageBitmapRenderingContext")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ImageBitmapRenderingContext", + typescript_type = "ImageBitmapRenderingContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageBitmapRenderingContext` class."] #[doc = ""] @@ -12,7 +16,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ImageBitmapRenderingContext`*"] pub type ImageBitmapRenderingContext; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (method , structural , js_class = "ImageBitmapRenderingContext" , js_name = transferFromImageBitmap)] + #[wasm_bindgen( + method, + structural, + js_class = "ImageBitmapRenderingContext", + js_name = "transferFromImageBitmap" + )] #[doc = "The `transferFromImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)"] @@ -20,7 +29,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapRenderingContext`*"] pub fn transfer_from_image_bitmap(this: &ImageBitmapRenderingContext, bitmap: &ImageBitmap); #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (method , structural , js_class = "ImageBitmapRenderingContext" , js_name = transferImageBitmap)] + #[wasm_bindgen( + method, + structural, + js_class = "ImageBitmapRenderingContext", + js_name = "transferImageBitmap" + )] #[doc = "The `transferImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext/transferImageBitmap)"] diff --git a/crates/web-sys/src/features/gen_ImageCapture.rs b/crates/web-sys/src/features/gen_ImageCapture.rs index 4bf2d71ccab..83ddbd41175 100644 --- a/crates/web-sys/src/features/gen_ImageCapture.rs +++ b/crates/web-sys/src/features/gen_ImageCapture.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageCapture , typescript_type = "ImageCapture")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ImageCapture", + typescript_type = "ImageCapture" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageCapture` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type ImageCapture; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "ImageCapture" , js_name = track)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageCapture", + js_name = "track" + )] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/track)"] @@ -40,7 +50,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(video_track: &MediaStreamTrack) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ImageCapture" , js_name = getPhotoCapabilities)] + #[wasm_bindgen( + method, + structural, + js_class = "ImageCapture", + js_name = "getPhotoCapabilities" + )] #[doc = "The `getPhotoCapabilities()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoCapabilities)"] @@ -51,7 +66,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_photo_capabilities(this: &ImageCapture) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ImageCapture" , js_name = getPhotoSettings)] + #[wasm_bindgen( + method, + structural, + js_class = "ImageCapture", + js_name = "getPhotoSettings" + )] #[doc = "The `getPhotoSettings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoSettings)"] @@ -62,7 +82,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_photo_settings(this: &ImageCapture) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ImageCapture" , js_name = grabFrame)] + #[wasm_bindgen(method, structural, js_class = "ImageCapture", js_name = "grabFrame")] #[doc = "The `grabFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/grabFrame)"] @@ -73,7 +93,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn grab_frame(this: &ImageCapture) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ImageCapture" , js_name = takePhoto)] + #[wasm_bindgen(method, structural, js_class = "ImageCapture", js_name = "takePhoto")] #[doc = "The `takePhoto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/takePhoto)"] diff --git a/crates/web-sys/src/features/gen_ImageCaptureError.rs b/crates/web-sys/src/features/gen_ImageCaptureError.rs index e04c915d1c7..3fdb29fb105 100644 --- a/crates/web-sys/src/features/gen_ImageCaptureError.rs +++ b/crates/web-sys/src/features/gen_ImageCaptureError.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ImageCaptureError , typescript_type = "ImageCaptureError")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "ImageCaptureError" , typescript_type = "ImageCaptureError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageCaptureError` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub type ImageCaptureError; - # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureError" , js_name = code)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageCaptureError", + 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/ImageCaptureError/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub fn code(this: &ImageCaptureError) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureError" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageCaptureError", + 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/ImageCaptureError/message)"] diff --git a/crates/web-sys/src/features/gen_ImageCaptureErrorEvent.rs b/crates/web-sys/src/features/gen_ImageCaptureErrorEvent.rs index d51297ae9cf..07b5b06ca34 100644 --- a/crates/web-sys/src/features/gen_ImageCaptureErrorEvent.rs +++ b/crates/web-sys/src/features/gen_ImageCaptureErrorEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ImageCaptureErrorEvent , typescript_type = "ImageCaptureErrorEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "ImageCaptureErrorEvent", + typescript_type = "ImageCaptureErrorEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageCaptureErrorEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`*"] pub type ImageCaptureErrorEvent; #[cfg(feature = "ImageCaptureError")] - # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureErrorEvent" , js_name = imageCaptureError)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageCaptureErrorEvent", + js_name = "imageCaptureError" + )] #[doc = "Getter for the `imageCaptureError` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/imageCaptureError)"] diff --git a/crates/web-sys/src/features/gen_ImageCaptureErrorEventInit.rs b/crates/web-sys/src/features/gen_ImageCaptureErrorEventInit.rs index b6287188b8e..0651ef72a0f 100644 --- a/crates/web-sys/src/features/gen_ImageCaptureErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_ImageCaptureErrorEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageCaptureErrorEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ImageCaptureErrorEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageCaptureErrorEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ImageData.rs b/crates/web-sys/src/features/gen_ImageData.rs index 60b95675d38..3691c7a6ee2 100644 --- a/crates/web-sys/src/features/gen_ImageData.rs +++ b/crates/web-sys/src/features/gen_ImageData.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageData , typescript_type = "ImageData")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ImageData", + typescript_type = "ImageData" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageData` class."] #[doc = ""] @@ -11,21 +15,21 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub type ImageData; - # [wasm_bindgen (structural , method , getter , js_class = "ImageData" , js_name = width)] + #[wasm_bindgen(structural, method, getter, js_class = "ImageData", js_name = "width")] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn width(this: &ImageData) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "ImageData" , js_name = height)] + #[wasm_bindgen(structural, method, getter, js_class = "ImageData", js_name = "height")] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn height(this: &ImageData) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "ImageData" , js_name = data)] + #[wasm_bindgen(structural, method, getter, js_class = "ImageData", 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/ImageData/data)"] diff --git a/crates/web-sys/src/features/gen_ImageDecodeOptions.rs b/crates/web-sys/src/features/gen_ImageDecodeOptions.rs index b23963c2a97..a371a50bba7 100644 --- a/crates/web-sys/src/features/gen_ImageDecodeOptions.rs +++ b/crates/web-sys/src/features/gen_ImageDecodeOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecodeOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ImageDecodeOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecodeOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ImageDecodeResult.rs b/crates/web-sys/src/features/gen_ImageDecodeResult.rs index 2af1bf5b983..1dbe38b3ba8 100644 --- a/crates/web-sys/src/features/gen_ImageDecodeResult.rs +++ b/crates/web-sys/src/features/gen_ImageDecodeResult.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecodeResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ImageDecodeResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecodeResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ImageDecoder.rs b/crates/web-sys/src/features/gen_ImageDecoder.rs index 2dae3f0514b..bb1080d9e0d 100644 --- a/crates/web-sys/src/features/gen_ImageDecoder.rs +++ b/crates/web-sys/src/features/gen_ImageDecoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecoder , typescript_type = "ImageDecoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ImageDecoder", + typescript_type = "ImageDecoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecoder` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageDecoder; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageDecoder", + 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/ImageDecoder/type)"] @@ -27,7 +37,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , js_name = complete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageDecoder", + js_name = "complete" + )] #[doc = "Getter for the `complete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/complete)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn complete(this: &ImageDecoder) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , js_name = completed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageDecoder", + js_name = "completed" + )] #[doc = "Getter for the `completed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/completed)"] @@ -50,7 +72,13 @@ extern "C" { pub fn completed(this: &ImageDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageTrackList")] - # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , js_name = tracks)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageDecoder", + js_name = "tracks" + )] #[doc = "Getter for the `tracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/tracks)"] @@ -73,7 +101,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &ImageDecoderInit) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "ImageDecoder", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/close)"] @@ -84,7 +112,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &ImageDecoder); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = decode)] + #[wasm_bindgen(method, structural, js_class = "ImageDecoder", js_name = "decode")] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/decode)"] @@ -96,7 +124,7 @@ extern "C" { pub fn decode(this: &ImageDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageDecodeOptions")] - # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = decode)] + #[wasm_bindgen(method, structural, js_class = "ImageDecoder", js_name = "decode")] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/decode)"] @@ -110,7 +138,11 @@ extern "C" { options: &ImageDecodeOptions, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (static_method_of = ImageDecoder , js_class = "ImageDecoder" , js_name = isTypeSupported)] + #[wasm_bindgen( + static_method_of = "ImageDecoder", + js_class = "ImageDecoder", + js_name = "isTypeSupported" + )] #[doc = "The `isTypeSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/isTypeSupported)"] @@ -121,7 +153,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_type_supported(type_: &str) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "ImageDecoder", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/reset)"] diff --git a/crates/web-sys/src/features/gen_ImageDecoderInit.rs b/crates/web-sys/src/features/gen_ImageDecoderInit.rs index 87bd70c957b..44d15caeea5 100644 --- a/crates/web-sys/src/features/gen_ImageDecoderInit.rs +++ b/crates/web-sys/src/features/gen_ImageDecoderInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecoderInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ImageDecoderInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecoderInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ImageTrack.rs b/crates/web-sys/src/features/gen_ImageTrack.rs index a710c4776ec..ccbdab67f27 100644 --- a/crates/web-sys/src/features/gen_ImageTrack.rs +++ b/crates/web-sys/src/features/gen_ImageTrack.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ImageTrack , typescript_type = "ImageTrack")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ImageTrack", + typescript_type = "ImageTrack" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageTrack` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageTrack; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = animated)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrack", + js_name = "animated" + )] #[doc = "Getter for the `animated` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/animated)"] @@ -27,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animated(this: &ImageTrack) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = frameCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrack", + js_name = "frameCount" + )] #[doc = "Getter for the `frameCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/frameCount)"] @@ -38,7 +55,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn frame_count(this: &ImageTrack) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = repetitionCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrack", + js_name = "repetitionCount" + )] #[doc = "Getter for the `repetitionCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/repetitionCount)"] @@ -49,7 +72,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn repetition_count(this: &ImageTrack) -> f32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrack", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/onchange)"] @@ -60,7 +89,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onchange(this: &ImageTrack) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "ImageTrack" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ImageTrack", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/onchange)"] @@ -71,7 +106,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onchange(this: &ImageTrack, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = selected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrack", + js_name = "selected" + )] #[doc = "Getter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/selected)"] @@ -82,7 +123,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn selected(this: &ImageTrack) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "ImageTrack" , js_name = selected)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ImageTrack", + js_name = "selected" + )] #[doc = "Setter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/selected)"] diff --git a/crates/web-sys/src/features/gen_ImageTrackList.rs b/crates/web-sys/src/features/gen_ImageTrackList.rs index 9ddf49af0b0..67c2deb4809 100644 --- a/crates/web-sys/src/features/gen_ImageTrackList.rs +++ b/crates/web-sys/src/features/gen_ImageTrackList.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageTrackList , typescript_type = "ImageTrackList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ImageTrackList", + typescript_type = "ImageTrackList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageTrackList` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageTrackList; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , js_name = ready)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrackList", + js_name = "ready" + )] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/ready)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ready(this: &ImageTrackList) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrackList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/length)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn length(this: &ImageTrackList) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , js_name = selectedIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrackList", + js_name = "selectedIndex" + )] #[doc = "Getter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/selectedIndex)"] @@ -50,7 +72,13 @@ extern "C" { pub fn selected_index(this: &ImageTrackList) -> i32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , js_name = selectedTrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ImageTrackList", + js_name = "selectedTrack" + )] #[doc = "Getter for the `selectedTrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/selectedTrack)"] diff --git a/crates/web-sys/src/features/gen_InputEvent.rs b/crates/web-sys/src/features/gen_InputEvent.rs index cdf501b4db9..96ae6a03317 100644 --- a/crates/web-sys/src/features/gen_InputEvent.rs +++ b/crates/web-sys/src/features/gen_InputEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = InputEvent , typescript_type = "InputEvent")] + #[wasm_bindgen( + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "InputEvent", + typescript_type = "InputEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `InputEvent` class."] #[doc = ""] @@ -11,21 +17,33 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub type InputEvent; - # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = isComposing)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "InputEvent", + js_name = "isComposing" + )] #[doc = "Getter for the `isComposing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/isComposing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub fn is_composing(this: &InputEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = inputType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "InputEvent", + js_name = "inputType" + )] #[doc = "Getter for the `inputType` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = data)] + #[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)"] @@ -33,7 +51,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub fn data(this: &InputEvent) -> Option; #[cfg(feature = "DataTransfer")] - # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = dataTransfer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "InputEvent", + js_name = "dataTransfer" + )] #[doc = "Getter for the `dataTransfer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/dataTransfer)"] @@ -58,7 +82,12 @@ extern "C" { type_: &str, event_init_dict: &InputEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "InputEvent" , js_name = getTargetRanges)] + #[wasm_bindgen( + method, + structural, + js_class = "InputEvent", + js_name = "getTargetRanges" + )] #[doc = "The `getTargetRanges()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/getTargetRanges)"] diff --git a/crates/web-sys/src/features/gen_InputEventInit.rs b/crates/web-sys/src/features/gen_InputEventInit.rs index 1ddd034d14b..56b5a5d666e 100644 --- a/crates/web-sys/src/features/gen_InputEventInit.rs +++ b/crates/web-sys/src/features/gen_InputEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = InputEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "InputEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `InputEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_InstallTriggerData.rs b/crates/web-sys/src/features/gen_InstallTriggerData.rs index bb84c53068a..c1dfe49b784 100644 --- a/crates/web-sys/src/features/gen_InstallTriggerData.rs +++ b/crates/web-sys/src/features/gen_InstallTriggerData.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = InstallTriggerData)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "InstallTriggerData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `InstallTriggerData` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IntersectionObserver.rs b/crates/web-sys/src/features/gen_IntersectionObserver.rs index bf4a27b726c..1a072861887 100644 --- a/crates/web-sys/src/features/gen_IntersectionObserver.rs +++ b/crates/web-sys/src/features/gen_IntersectionObserver.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserver , typescript_type = "IntersectionObserver")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IntersectionObserver", + typescript_type = "IntersectionObserver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserver` class."] #[doc = ""] @@ -12,21 +16,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub type IntersectionObserver; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserver" , js_name = root)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserver", + js_name = "root" + )] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/root)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] pub fn root(this: &IntersectionObserver) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserver" , js_name = rootMargin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserver", + js_name = "rootMargin" + )] #[doc = "Getter for the `rootMargin` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserver" , js_name = thresholds)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserver", + js_name = "thresholds" + )] #[doc = "Getter for the `thresholds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/thresholds)"] @@ -52,7 +74,12 @@ extern "C" { intersection_callback: &::js_sys::Function, options: &IntersectionObserverInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = disconnect)] + #[wasm_bindgen( + method, + structural, + js_class = "IntersectionObserver", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/disconnect)"] @@ -60,14 +87,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub fn disconnect(this: &IntersectionObserver); #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = observe)] + #[wasm_bindgen( + method, + structural, + js_class = "IntersectionObserver", + js_name = "observe" + )] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] pub fn observe(this: &IntersectionObserver, target: &Element); - # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = takeRecords)] + #[wasm_bindgen( + method, + structural, + js_class = "IntersectionObserver", + js_name = "takeRecords" + )] #[doc = "The `takeRecords()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/takeRecords)"] @@ -75,7 +112,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub fn take_records(this: &IntersectionObserver) -> ::js_sys::Array; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = unobserve)] + #[wasm_bindgen( + method, + structural, + js_class = "IntersectionObserver", + js_name = "unobserve" + )] #[doc = "The `unobserve()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/unobserve)"] diff --git a/crates/web-sys/src/features/gen_IntersectionObserverEntry.rs b/crates/web-sys/src/features/gen_IntersectionObserverEntry.rs index 6caedd2f874..be5e9727236 100644 --- a/crates/web-sys/src/features/gen_IntersectionObserverEntry.rs +++ b/crates/web-sys/src/features/gen_IntersectionObserverEntry.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserverEntry , typescript_type = "IntersectionObserverEntry")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IntersectionObserverEntry", + typescript_type = "IntersectionObserverEntry" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserverEntry` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub type IntersectionObserverEntry; - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = time)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserverEntry", + js_name = "time" + )] #[doc = "Getter for the `time` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/time)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub fn time(this: &IntersectionObserverEntry) -> f64; #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = rootBounds)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserverEntry", + js_name = "rootBounds" + )] #[doc = "Getter for the `rootBounds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/rootBounds)"] @@ -27,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] pub fn root_bounds(this: &IntersectionObserverEntry) -> Option; #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = boundingClientRect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserverEntry", + js_name = "boundingClientRect" + )] #[doc = "Getter for the `boundingClientRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/boundingClientRect)"] @@ -35,21 +57,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] pub fn bounding_client_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserverEntry", + js_name = "intersectionRect" + )] #[doc = "Getter for the `intersectionRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] pub fn intersection_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = isIntersecting)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserverEntry", + js_name = "isIntersecting" + )] #[doc = "Getter for the `isIntersecting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/isIntersecting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub fn is_intersecting(this: &IntersectionObserverEntry) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserverEntry", + js_name = "intersectionRatio" + )] #[doc = "Getter for the `intersectionRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRatio)"] @@ -57,7 +97,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub fn intersection_ratio(this: &IntersectionObserverEntry) -> f64; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "IntersectionObserverEntry", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/target)"] diff --git a/crates/web-sys/src/features/gen_IntersectionObserverEntryInit.rs b/crates/web-sys/src/features/gen_IntersectionObserverEntryInit.rs index cbdd61fa1b4..bb20691b25b 100644 --- a/crates/web-sys/src/features/gen_IntersectionObserverEntryInit.rs +++ b/crates/web-sys/src/features/gen_IntersectionObserverEntryInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserverEntryInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "IntersectionObserverEntryInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserverEntryInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IntersectionObserverInit.rs b/crates/web-sys/src/features/gen_IntersectionObserverInit.rs index 33115b50ef1..4f08279df10 100644 --- a/crates/web-sys/src/features/gen_IntersectionObserverInit.rs +++ b/crates/web-sys/src/features/gen_IntersectionObserverInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserverInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IntersectionObserverInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserverInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IntlUtils.rs b/crates/web-sys/src/features/gen_IntlUtils.rs index 751ce53e9a6..072030c6766 100644 --- a/crates/web-sys/src/features/gen_IntlUtils.rs +++ b/crates/web-sys/src/features/gen_IntlUtils.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = IntlUtils , typescript_type = "IntlUtils")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "IntlUtils" , typescript_type = "IntlUtils")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntlUtils` class."] #[doc = ""] @@ -12,7 +12,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IntlUtils`*"] pub type IntlUtils; #[cfg(feature = "DisplayNameResult")] - # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IntlUtils", + js_name = "getDisplayNames" + )] #[doc = "The `getDisplayNames()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"] @@ -23,7 +29,13 @@ extern "C" { locales: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "DisplayNameOptions", feature = "DisplayNameResult",))] - # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IntlUtils", + js_name = "getDisplayNames" + )] #[doc = "The `getDisplayNames()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"] @@ -35,7 +47,13 @@ extern "C" { options: &DisplayNameOptions, ) -> Result; #[cfg(feature = "LocaleInfo")] - # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getLocaleInfo)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "IntlUtils", + js_name = "getLocaleInfo" + )] #[doc = "The `getLocaleInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getLocaleInfo)"] diff --git a/crates/web-sys/src/features/gen_IterableKeyAndValueResult.rs b/crates/web-sys/src/features/gen_IterableKeyAndValueResult.rs index c88d7cc1d41..9e20ff53de0 100644 --- a/crates/web-sys/src/features/gen_IterableKeyAndValueResult.rs +++ b/crates/web-sys/src/features/gen_IterableKeyAndValueResult.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IterableKeyAndValueResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IterableKeyAndValueResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IterableKeyAndValueResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IterableKeyOrValueResult.rs b/crates/web-sys/src/features/gen_IterableKeyOrValueResult.rs index 7dd96ba8c71..24debc685c9 100644 --- a/crates/web-sys/src/features/gen_IterableKeyOrValueResult.rs +++ b/crates/web-sys/src/features/gen_IterableKeyOrValueResult.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IterableKeyOrValueResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "IterableKeyOrValueResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IterableKeyOrValueResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_JsonWebKey.rs b/crates/web-sys/src/features/gen_JsonWebKey.rs index b377c19c8f4..45c5d0f649c 100644 --- a/crates/web-sys/src/features/gen_JsonWebKey.rs +++ b/crates/web-sys/src/features/gen_JsonWebKey.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = JsonWebKey)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "JsonWebKey")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `JsonWebKey` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_KeyAlgorithm.rs b/crates/web-sys/src/features/gen_KeyAlgorithm.rs index 556fdb0112d..310a5906711 100644 --- a/crates/web-sys/src/features/gen_KeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_KeyAlgorithm.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyAlgorithm)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "KeyAlgorithm")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyAlgorithm` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_KeyEvent.rs b/crates/web-sys/src/features/gen_KeyEvent.rs index 997fa81014d..eae2dc2b1c6 100644 --- a/crates/web-sys/src/features/gen_KeyEvent.rs +++ b/crates/web-sys/src/features/gen_KeyEvent.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyEvent , typescript_type = "KeyEvent")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "KeyEvent", + typescript_type = "KeyEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyEvent` class."] #[doc = ""] @@ -11,21 +15,21 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub type KeyEvent; - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub fn init_key_event(this: &KeyEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub fn init_key_event_with_can_bubble(this: &KeyEvent, type_: &str, can_bubble: bool); - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] @@ -38,7 +42,7 @@ extern "C" { cancelable: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] @@ -52,7 +56,7 @@ extern "C" { view: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] @@ -67,7 +71,7 @@ extern "C" { ctrl_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] @@ -83,7 +87,7 @@ extern "C" { alt_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] @@ -100,7 +104,7 @@ extern "C" { shift_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] @@ -118,7 +122,7 @@ extern "C" { meta_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] @@ -137,7 +141,7 @@ extern "C" { key_code: u32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] + #[wasm_bindgen(method, structural, js_class = "KeyEvent", js_name = "initKeyEvent")] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] diff --git a/crates/web-sys/src/features/gen_KeyIdsInitData.rs b/crates/web-sys/src/features/gen_KeyIdsInitData.rs index 02c02c1241e..f34eab00c69 100644 --- a/crates/web-sys/src/features/gen_KeyIdsInitData.rs +++ b/crates/web-sys/src/features/gen_KeyIdsInitData.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyIdsInitData)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "KeyIdsInitData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyIdsInitData` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_KeyboardEvent.rs b/crates/web-sys/src/features/gen_KeyboardEvent.rs index 4bb5b0f2a1e..6168aa3ebd6 100644 --- a/crates/web-sys/src/features/gen_KeyboardEvent.rs +++ b/crates/web-sys/src/features/gen_KeyboardEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = KeyboardEvent , typescript_type = "KeyboardEvent")] + #[wasm_bindgen( + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "KeyboardEvent", + typescript_type = "KeyboardEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyboardEvent` class."] #[doc = ""] @@ -11,77 +17,143 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub type KeyboardEvent; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = charCode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "charCode" + )] #[doc = "Getter for the `charCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn char_code(this: &KeyboardEvent) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = keyCode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "keyCode" + )] #[doc = "Getter for the `keyCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn key_code(this: &KeyboardEvent) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = altKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "altKey" + )] #[doc = "Getter for the `altKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn alt_key(this: &KeyboardEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = ctrlKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "ctrlKey" + )] #[doc = "Getter for the `ctrlKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn ctrl_key(this: &KeyboardEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = shiftKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "shiftKey" + )] #[doc = "Getter for the `shiftKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn shift_key(this: &KeyboardEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = metaKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "metaKey" + )] #[doc = "Getter for the `metaKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn meta_key(this: &KeyboardEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = location)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "location" + )] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn location(this: &KeyboardEvent) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = repeat)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "repeat" + )] #[doc = "Getter for the `repeat` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn repeat(this: &KeyboardEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = isComposing)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "isComposing" + )] #[doc = "Getter for the `isComposing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/isComposing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn is_composing(this: &KeyboardEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = key)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyboardEvent", + js_name = "key" + )] #[doc = "Getter for the `key` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = code)] + #[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)"] @@ -106,21 +178,38 @@ extern "C" { type_arg: &str, keyboard_event_init_dict: &KeyboardEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "KeyboardEvent" , js_name = getModifierState)] + #[wasm_bindgen( + method, + structural, + js_class = "KeyboardEvent", + js_name = "getModifierState" + )] #[doc = "The `getModifierState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn get_modifier_state(this: &KeyboardEvent, key: &str) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn init_keyboard_event(this: &KeyboardEvent, type_arg: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -131,7 +220,13 @@ extern "C" { type_arg: &str, bubbles_arg: bool, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -144,7 +239,13 @@ extern "C" { cancelable_arg: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -158,7 +259,13 @@ extern "C" { view_arg: Option<&Window>, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -173,7 +280,13 @@ extern "C" { key_arg: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -189,7 +302,13 @@ extern "C" { location_arg: u32, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -206,7 +325,13 @@ extern "C" { ctrl_key: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -224,7 +349,13 @@ extern "C" { alt_key: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] @@ -243,7 +374,13 @@ extern "C" { shift_key: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] - # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyboardEvent", + js_name = "initKeyboardEvent" + )] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] diff --git a/crates/web-sys/src/features/gen_KeyboardEventInit.rs b/crates/web-sys/src/features/gen_KeyboardEventInit.rs index a1ec1ae2e13..d49b6a8be5c 100644 --- a/crates/web-sys/src/features/gen_KeyboardEventInit.rs +++ b/crates/web-sys/src/features/gen_KeyboardEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyboardEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "KeyboardEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyboardEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_KeyframeEffect.rs b/crates/web-sys/src/features/gen_KeyframeEffect.rs index 08bdbd73254..60bff195005 100644 --- a/crates/web-sys/src/features/gen_KeyframeEffect.rs +++ b/crates/web-sys/src/features/gen_KeyframeEffect.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AnimationEffect , extends = :: js_sys :: Object , js_name = KeyframeEffect , typescript_type = "KeyframeEffect")] + #[wasm_bindgen( + extends = "AnimationEffect", + extends = "::js_sys::Object", + js_name = "KeyframeEffect", + typescript_type = "KeyframeEffect" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyframeEffect` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub type KeyframeEffect; - # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyframeEffect", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn target(this: &KeyframeEffect) -> Option<::js_sys::Object>; - # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = target)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "KeyframeEffect", + js_name = "target" + )] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"] @@ -26,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn set_target(this: &KeyframeEffect, value: Option<&::js_sys::Object>); #[cfg(feature = "IterationCompositeOperation")] - # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = iterationComposite)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyframeEffect", + js_name = "iterationComposite" + )] #[doc = "Getter for the `iterationComposite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"] @@ -34,7 +57,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"] pub fn iteration_composite(this: &KeyframeEffect) -> IterationCompositeOperation; #[cfg(feature = "IterationCompositeOperation")] - # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = iterationComposite)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "KeyframeEffect", + js_name = "iterationComposite" + )] #[doc = "Setter for the `iterationComposite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"] @@ -42,7 +71,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"] pub fn set_iteration_composite(this: &KeyframeEffect, value: IterationCompositeOperation); #[cfg(feature = "CompositeOperation")] - # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = composite)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "KeyframeEffect", + js_name = "composite" + )] #[doc = "Getter for the `composite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"] @@ -50,7 +85,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffect`*"] pub fn composite(this: &KeyframeEffect) -> CompositeOperation; #[cfg(feature = "CompositeOperation")] - # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = composite)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "KeyframeEffect", + js_name = "composite" + )] #[doc = "Setter for the `composite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"] @@ -134,14 +175,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn new_with_source(source: &KeyframeEffect) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "KeyframeEffect" , js_name = getKeyframes)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyframeEffect", + js_name = "getKeyframes" + )] #[doc = "The `getKeyframes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/getKeyframes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn get_keyframes(this: &KeyframeEffect) -> Result<::js_sys::Array, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "KeyframeEffect" , js_name = setKeyframes)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "KeyframeEffect", + js_name = "setKeyframes" + )] #[doc = "The `setKeyframes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/setKeyframes)"] diff --git a/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs b/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs index 0aad56b7ec3..cc0a71f6ae0 100644 --- a/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs +++ b/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyframeEffectOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "KeyframeEffectOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyframeEffectOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_L10nElement.rs b/crates/web-sys/src/features/gen_L10nElement.rs index 7bdb10b95e2..b2010c18c99 100644 --- a/crates/web-sys/src/features/gen_L10nElement.rs +++ b/crates/web-sys/src/features/gen_L10nElement.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = L10nElement)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "L10nElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `L10nElement` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_L10nValue.rs b/crates/web-sys/src/features/gen_L10nValue.rs index 964afcccd45..b82338f7248 100644 --- a/crates/web-sys/src/features/gen_L10nValue.rs +++ b/crates/web-sys/src/features/gen_L10nValue.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = L10nValue)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "L10nValue")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `L10nValue` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_LifecycleCallbacks.rs b/crates/web-sys/src/features/gen_LifecycleCallbacks.rs index bb95ad3c06e..660848f690c 100644 --- a/crates/web-sys/src/features/gen_LifecycleCallbacks.rs +++ b/crates/web-sys/src/features/gen_LifecycleCallbacks.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LifecycleCallbacks)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "LifecycleCallbacks")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LifecycleCallbacks` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ListBoxObject.rs b/crates/web-sys/src/features/gen_ListBoxObject.rs index 09bc45de50a..d3b4bc71961 100644 --- a/crates/web-sys/src/features/gen_ListBoxObject.rs +++ b/crates/web-sys/src/features/gen_ListBoxObject.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ListBoxObject , typescript_type = "ListBoxObject")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "ListBoxObject" , typescript_type = "ListBoxObject")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ListBoxObject` class."] #[doc = ""] @@ -11,14 +11,24 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub type ListBoxObject; - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = ensureIndexIsVisible)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "ensureIndexIsVisible" + )] #[doc = "The `ensureIndexIsVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/ensureIndexIsVisible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn ensure_index_is_visible(this: &ListBoxObject, row_index: i32); - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getIndexOfFirstVisibleRow)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "getIndexOfFirstVisibleRow" + )] #[doc = "The `getIndexOfFirstVisibleRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfFirstVisibleRow)"] @@ -26,7 +36,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_index_of_first_visible_row(this: &ListBoxObject) -> i32; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getIndexOfItem)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "getIndexOfItem" + )] #[doc = "The `getIndexOfItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfItem)"] @@ -34,42 +49,72 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"] pub fn get_index_of_item(this: &ListBoxObject, item: &Element) -> i32; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getItemAtIndex)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "getItemAtIndex" + )] #[doc = "The `getItemAtIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getItemAtIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"] pub fn get_item_at_index(this: &ListBoxObject, index: i32) -> Option; - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getNumberOfVisibleRows)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "getNumberOfVisibleRows" + )] #[doc = "The `getNumberOfVisibleRows()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getNumberOfVisibleRows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_number_of_visible_rows(this: &ListBoxObject) -> i32; - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getRowCount)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "getRowCount" + )] #[doc = "The `getRowCount()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_row_count(this: &ListBoxObject) -> i32; - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getRowHeight)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "getRowHeight" + )] #[doc = "The `getRowHeight()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_row_height(this: &ListBoxObject) -> i32; - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = scrollByLines)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "scrollByLines" + )] #[doc = "The `scrollByLines()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollByLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn scroll_by_lines(this: &ListBoxObject, num_lines: i32); - # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = scrollToIndex)] + #[wasm_bindgen( + method, + structural, + js_class = "ListBoxObject", + js_name = "scrollToIndex" + )] #[doc = "The `scrollToIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollToIndex)"] diff --git a/crates/web-sys/src/features/gen_LocalMediaStream.rs b/crates/web-sys/src/features/gen_LocalMediaStream.rs index f6eb1543773..50e4a37aa30 100644 --- a/crates/web-sys/src/features/gen_LocalMediaStream.rs +++ b/crates/web-sys/src/features/gen_LocalMediaStream.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MediaStream , extends = EventTarget , extends = :: js_sys :: Object , js_name = LocalMediaStream , typescript_type = "LocalMediaStream")] + #[wasm_bindgen( + extends = "MediaStream", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "LocalMediaStream", + typescript_type = "LocalMediaStream" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LocalMediaStream` class."] #[doc = ""] @@ -11,7 +17,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocalMediaStream`*"] pub type LocalMediaStream; - # [wasm_bindgen (method , structural , js_class = "LocalMediaStream" , js_name = stop)] + #[wasm_bindgen(method, structural, js_class = "LocalMediaStream", js_name = "stop")] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LocalMediaStream/stop)"] diff --git a/crates/web-sys/src/features/gen_LocaleInfo.rs b/crates/web-sys/src/features/gen_LocaleInfo.rs index 75842e8400c..fbe5f1c34b9 100644 --- a/crates/web-sys/src/features/gen_LocaleInfo.rs +++ b/crates/web-sys/src/features/gen_LocaleInfo.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LocaleInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "LocaleInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LocaleInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Location.rs b/crates/web-sys/src/features/gen_Location.rs index f75f2bd4832..4d23544abbc 100644 --- a/crates/web-sys/src/features/gen_Location.rs +++ b/crates/web-sys/src/features/gen_Location.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Location , typescript_type = "Location")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Location", + typescript_type = "Location" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Location` class."] #[doc = ""] @@ -11,147 +15,266 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub type Location; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = href)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn href(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = href)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "href" + )] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[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 set_href(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = origin)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn origin(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = protocol)] + #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = protocol)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "protocol" + )] #[doc = "Setter 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 set_protocol(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = host)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn host(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = host)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "host" + )] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[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 set_host(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hostname)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn hostname(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hostname)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "hostname" + )] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[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 set_hostname(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = port)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn port(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = port)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "port" + )] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[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 set_port(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = pathname)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn pathname(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = pathname)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "pathname" + )] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[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 set_pathname(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = search)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn search(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = search)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "search" + )] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[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 set_search(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hash)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Location", + 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/Location/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn hash(this: &Location) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hash)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Location", + js_name = "hash" + )] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[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 set_hash(this: &Location, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = assign)] + #[wasm_bindgen(catch, method, structural, js_class = "Location", js_name = "assign")] #[doc = "The `assign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/assign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn assign(this: &Location, url: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)] + #[wasm_bindgen(catch, method, structural, js_class = "Location", js_name = "reload")] #[doc = "The `reload()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn reload(this: &Location) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)] + #[wasm_bindgen(catch, method, structural, js_class = "Location", js_name = "reload")] #[doc = "The `reload()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn reload_with_forceget(this: &Location, forceget: bool) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = replace)] + #[wasm_bindgen(catch, method, structural, js_class = "Location", js_name = "replace")] #[doc = "The `replace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/replace)"] diff --git a/crates/web-sys/src/features/gen_MediaCapabilities.rs b/crates/web-sys/src/features/gen_MediaCapabilities.rs index 1169339b6a8..7517d3a6c7e 100644 --- a/crates/web-sys/src/features/gen_MediaCapabilities.rs +++ b/crates/web-sys/src/features/gen_MediaCapabilities.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaCapabilities , typescript_type = "MediaCapabilities")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaCapabilities", + typescript_type = "MediaCapabilities" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaCapabilities` class."] #[doc = ""] @@ -12,7 +16,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`*"] pub type MediaCapabilities; #[cfg(feature = "MediaDecodingConfiguration")] - # [wasm_bindgen (method , structural , js_class = "MediaCapabilities" , js_name = decodingInfo)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaCapabilities", + js_name = "decodingInfo" + )] #[doc = "The `decodingInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities/decodingInfo)"] @@ -23,7 +32,12 @@ extern "C" { configuration: &MediaDecodingConfiguration, ) -> ::js_sys::Promise; #[cfg(feature = "MediaEncodingConfiguration")] - # [wasm_bindgen (method , structural , js_class = "MediaCapabilities" , js_name = encodingInfo)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaCapabilities", + js_name = "encodingInfo" + )] #[doc = "The `encodingInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities/encodingInfo)"] diff --git a/crates/web-sys/src/features/gen_MediaCapabilitiesInfo.rs b/crates/web-sys/src/features/gen_MediaCapabilitiesInfo.rs index 2f36d5d1c25..89dfbf1b29d 100644 --- a/crates/web-sys/src/features/gen_MediaCapabilitiesInfo.rs +++ b/crates/web-sys/src/features/gen_MediaCapabilitiesInfo.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaCapabilitiesInfo , typescript_type = "MediaCapabilitiesInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaCapabilitiesInfo", + typescript_type = "MediaCapabilitiesInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaCapabilitiesInfo` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] pub type MediaCapabilitiesInfo; - # [wasm_bindgen (structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = supported)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaCapabilitiesInfo", + js_name = "supported" + )] #[doc = "Getter for the `supported` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/supported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] pub fn supported(this: &MediaCapabilitiesInfo) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = smooth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaCapabilitiesInfo", + js_name = "smooth" + )] #[doc = "Getter for the `smooth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/smooth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] pub fn smooth(this: &MediaCapabilitiesInfo) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = powerEfficient)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaCapabilitiesInfo", + js_name = "powerEfficient" + )] #[doc = "Getter for the `powerEfficient` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/powerEfficient)"] diff --git a/crates/web-sys/src/features/gen_MediaConfiguration.rs b/crates/web-sys/src/features/gen_MediaConfiguration.rs index d56d3704465..265d4321086 100644 --- a/crates/web-sys/src/features/gen_MediaConfiguration.rs +++ b/crates/web-sys/src/features/gen_MediaConfiguration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaDecodingConfiguration.rs b/crates/web-sys/src/features/gen_MediaDecodingConfiguration.rs index ef23b597fc8..07fa7aea91a 100644 --- a/crates/web-sys/src/features/gen_MediaDecodingConfiguration.rs +++ b/crates/web-sys/src/features/gen_MediaDecodingConfiguration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaDecodingConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaDecodingConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaDecodingConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaDeviceInfo.rs b/crates/web-sys/src/features/gen_MediaDeviceInfo.rs index c3f9af20ef0..b23bd2a4e38 100644 --- a/crates/web-sys/src/features/gen_MediaDeviceInfo.rs +++ b/crates/web-sys/src/features/gen_MediaDeviceInfo.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaDeviceInfo , typescript_type = "MediaDeviceInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaDeviceInfo", + typescript_type = "MediaDeviceInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaDeviceInfo` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub type MediaDeviceInfo; - # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = deviceId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaDeviceInfo", + js_name = "deviceId" + )] #[doc = "Getter for the `deviceId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/deviceId)"] @@ -19,28 +29,46 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub fn device_id(this: &MediaDeviceInfo) -> String; #[cfg(feature = "MediaDeviceKind")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = kind)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaDeviceInfo", + 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/MediaDeviceInfo/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`, `MediaDeviceKind`*"] pub fn kind(this: &MediaDeviceInfo) -> MediaDeviceKind; - # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaDeviceInfo", + 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/MediaDeviceInfo/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub fn label(this: &MediaDeviceInfo) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = groupId)] + #[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; - # [wasm_bindgen (method , structural , js_class = "MediaDeviceInfo" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "MediaDeviceInfo", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/toJSON)"] diff --git a/crates/web-sys/src/features/gen_MediaDevices.rs b/crates/web-sys/src/features/gen_MediaDevices.rs index d8a76c67fe4..d47cbb50913 100644 --- a/crates/web-sys/src/features/gen_MediaDevices.rs +++ b/crates/web-sys/src/features/gen_MediaDevices.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaDevices , typescript_type = "MediaDevices")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaDevices", + typescript_type = "MediaDevices" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaDevices` class."] #[doc = ""] @@ -11,28 +16,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub type MediaDevices; - # [wasm_bindgen (structural , method , getter , js_class = "MediaDevices" , js_name = ondevicechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaDevices", + js_name = "ondevicechange" + )] #[doc = "Getter for the `ondevicechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn ondevicechange(this: &MediaDevices) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaDevices" , js_name = ondevicechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaDevices", + js_name = "ondevicechange" + )] #[doc = "Setter for the `ondevicechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn set_ondevicechange(this: &MediaDevices, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = enumerateDevices)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaDevices", + js_name = "enumerateDevices" + )] #[doc = "The `enumerateDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn enumerate_devices(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaDevices", + js_name = "getDisplayMedia" + )] #[doc = "The `getDisplayMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"] @@ -40,7 +69,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn get_display_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "DisplayMediaStreamConstraints")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaDevices", + js_name = "getDisplayMedia" + )] #[doc = "The `getDisplayMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"] @@ -51,14 +86,25 @@ extern "C" { constraints: &DisplayMediaStreamConstraints, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MediaTrackSupportedConstraints")] - # [wasm_bindgen (method , structural , js_class = "MediaDevices" , js_name = getSupportedConstraints)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaDevices", + js_name = "getSupportedConstraints" + )] #[doc = "The `getSupportedConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `MediaTrackSupportedConstraints`*"] pub fn get_supported_constraints(this: &MediaDevices) -> MediaTrackSupportedConstraints; - # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaDevices", + js_name = "getUserMedia" + )] #[doc = "The `getUserMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"] @@ -66,7 +112,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn get_user_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MediaStreamConstraints")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaDevices", + js_name = "getUserMedia" + )] #[doc = "The `getUserMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"] diff --git a/crates/web-sys/src/features/gen_MediaElementAudioSourceNode.rs b/crates/web-sys/src/features/gen_MediaElementAudioSourceNode.rs index 4b5507167da..c27bf308ad0 100644 --- a/crates/web-sys/src/features/gen_MediaElementAudioSourceNode.rs +++ b/crates/web-sys/src/features/gen_MediaElementAudioSourceNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaElementAudioSourceNode , typescript_type = "MediaElementAudioSourceNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaElementAudioSourceNode", + typescript_type = "MediaElementAudioSourceNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaElementAudioSourceNode` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaElementAudioSourceOptions.rs b/crates/web-sys/src/features/gen_MediaElementAudioSourceOptions.rs index 6db428e5894..dd3d4e559fc 100644 --- a/crates/web-sys/src/features/gen_MediaElementAudioSourceOptions.rs +++ b/crates/web-sys/src/features/gen_MediaElementAudioSourceOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaElementAudioSourceOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaElementAudioSourceOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaElementAudioSourceOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaEncodingConfiguration.rs b/crates/web-sys/src/features/gen_MediaEncodingConfiguration.rs index a52fe6a7667..10f15fdada9 100644 --- a/crates/web-sys/src/features/gen_MediaEncodingConfiguration.rs +++ b/crates/web-sys/src/features/gen_MediaEncodingConfiguration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaEncodingConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaEncodingConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaEncodingConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs b/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs index 07eab6308ea..e7ada39fb71 100644 --- a/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs +++ b/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaEncryptedEvent , typescript_type = "MediaEncryptedEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MediaEncryptedEvent", + typescript_type = "MediaEncryptedEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaEncryptedEvent` class."] #[doc = ""] @@ -11,14 +16,27 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] pub type MediaEncryptedEvent; - # [wasm_bindgen (structural , method , getter , js_class = "MediaEncryptedEvent" , js_name = initDataType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaEncryptedEvent", + js_name = "initDataType" + )] #[doc = "Getter for the `initDataType` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "MediaEncryptedEvent" , js_name = initData)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "MediaEncryptedEvent", + js_name = "initData" + )] #[doc = "Getter for the `initData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initData)"] diff --git a/crates/web-sys/src/features/gen_MediaError.rs b/crates/web-sys/src/features/gen_MediaError.rs index 538ed20da3b..1695c1ea2ad 100644 --- a/crates/web-sys/src/features/gen_MediaError.rs +++ b/crates/web-sys/src/features/gen_MediaError.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaError , typescript_type = "MediaError")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaError", + typescript_type = "MediaError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaError` class."] #[doc = ""] @@ -11,14 +15,20 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub type MediaError; - # [wasm_bindgen (structural , method , getter , js_class = "MediaError" , js_name = code)] + #[wasm_bindgen(structural, method, getter, js_class = "MediaError", 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/MediaError/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub fn code(this: &MediaError) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "MediaError" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaError", + 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/MediaError/message)"] diff --git a/crates/web-sys/src/features/gen_MediaKeyError.rs b/crates/web-sys/src/features/gen_MediaKeyError.rs index 3d9306c9f86..a908c60ed4c 100644 --- a/crates/web-sys/src/features/gen_MediaKeyError.rs +++ b/crates/web-sys/src/features/gen_MediaKeyError.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaKeyError , typescript_type = "MediaKeyError")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MediaKeyError", + typescript_type = "MediaKeyError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyError` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`*"] pub type MediaKeyError; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeyError" , js_name = systemCode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeyError", + js_name = "systemCode" + )] #[doc = "Getter for the `systemCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyError/systemCode)"] diff --git a/crates/web-sys/src/features/gen_MediaKeyMessageEvent.rs b/crates/web-sys/src/features/gen_MediaKeyMessageEvent.rs index bfc16e9cd8f..480a5927999 100644 --- a/crates/web-sys/src/features/gen_MediaKeyMessageEvent.rs +++ b/crates/web-sys/src/features/gen_MediaKeyMessageEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaKeyMessageEvent , typescript_type = "MediaKeyMessageEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MediaKeyMessageEvent", + typescript_type = "MediaKeyMessageEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyMessageEvent` class."] #[doc = ""] @@ -12,14 +17,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`*"] pub type MediaKeyMessageEvent; #[cfg(feature = "MediaKeyMessageType")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeyMessageEvent" , js_name = messageType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeyMessageEvent", + js_name = "messageType" + )] #[doc = "Getter for the `messageType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent/messageType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`, `MediaKeyMessageType`*"] pub fn message_type(this: &MediaKeyMessageEvent) -> MediaKeyMessageType; - # [wasm_bindgen (structural , catch , method , getter , js_class = "MediaKeyMessageEvent" , js_name = message)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "MediaKeyMessageEvent", + 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/MediaKeyMessageEvent/message)"] diff --git a/crates/web-sys/src/features/gen_MediaKeyMessageEventInit.rs b/crates/web-sys/src/features/gen_MediaKeyMessageEventInit.rs index a741832a288..7015d847901 100644 --- a/crates/web-sys/src/features/gen_MediaKeyMessageEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaKeyMessageEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeyMessageEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaKeyMessageEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyMessageEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs b/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs index 5dc1067f38e..4df9f0795c8 100644 --- a/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeyNeededEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaKeyNeededEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyNeededEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaKeySession.rs b/crates/web-sys/src/features/gen_MediaKeySession.rs index df29983ca6a..9755ae4f984 100644 --- a/crates/web-sys/src/features/gen_MediaKeySession.rs +++ b/crates/web-sys/src/features/gen_MediaKeySession.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaKeySession , typescript_type = "MediaKeySession")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaKeySession", + typescript_type = "MediaKeySession" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySession` class."] #[doc = ""] @@ -12,28 +17,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub type MediaKeySession; #[cfg(feature = "MediaKeyError")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = error)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySession", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`, `MediaKeySession`*"] pub fn error(this: &MediaKeySession) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = sessionId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySession", + js_name = "sessionId" + )] #[doc = "Getter for the `sessionId` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = expiration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySession", + js_name = "expiration" + )] #[doc = "Getter for the `expiration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/expiration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn expiration(this: &MediaKeySession) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = closed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySession", + js_name = "closed" + )] #[doc = "Getter for the `closed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/closed)"] @@ -41,49 +70,84 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn closed(this: &MediaKeySession) -> ::js_sys::Promise; #[cfg(feature = "MediaKeyStatusMap")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = keyStatuses)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySession", + js_name = "keyStatuses" + )] #[doc = "Getter for the `keyStatuses` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/keyStatuses)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeyStatusMap`*"] pub fn key_statuses(this: &MediaKeySession) -> MediaKeyStatusMap; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = onkeystatuseschange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySession", + js_name = "onkeystatuseschange" + )] #[doc = "Getter for the `onkeystatuseschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn onkeystatuseschange(this: &MediaKeySession) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaKeySession" , js_name = onkeystatuseschange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaKeySession", + js_name = "onkeystatuseschange" + )] #[doc = "Setter for the `onkeystatuseschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn set_onkeystatuseschange(this: &MediaKeySession, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySession", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn onmessage(this: &MediaKeySession) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaKeySession" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaKeySession", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn set_onmessage(this: &MediaKeySession, value: Option<&::js_sys::Function>); - # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "MediaKeySession", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn close(this: &MediaKeySession) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = generateRequest)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeySession", + js_name = "generateRequest" + )] #[doc = "The `generateRequest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] @@ -94,7 +158,12 @@ extern "C" { init_data_type: &str, init_data: &::js_sys::Object, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = generateRequest)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeySession", + js_name = "generateRequest" + )] #[doc = "The `generateRequest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] @@ -105,21 +174,21 @@ extern "C" { init_data_type: &str, init_data: &mut [u8], ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = load)] + #[wasm_bindgen(method, structural, js_class = "MediaKeySession", js_name = "load")] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn load(this: &MediaKeySession, session_id: &str) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = remove)] + #[wasm_bindgen(method, structural, js_class = "MediaKeySession", js_name = "remove")] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn remove(this: &MediaKeySession) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = update)] + #[wasm_bindgen(method, structural, js_class = "MediaKeySession", js_name = "update")] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] @@ -129,7 +198,7 @@ extern "C" { this: &MediaKeySession, response: &::js_sys::Object, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = update)] + #[wasm_bindgen(method, structural, js_class = "MediaKeySession", js_name = "update")] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] diff --git a/crates/web-sys/src/features/gen_MediaKeyStatusMap.rs b/crates/web-sys/src/features/gen_MediaKeyStatusMap.rs index ee2b22c9d3b..73ee1907bf0 100644 --- a/crates/web-sys/src/features/gen_MediaKeyStatusMap.rs +++ b/crates/web-sys/src/features/gen_MediaKeyStatusMap.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeyStatusMap , typescript_type = "MediaKeyStatusMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaKeyStatusMap", + typescript_type = "MediaKeyStatusMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyStatusMap` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub type MediaKeyStatusMap; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeyStatusMap" , js_name = size)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeyStatusMap", + js_name = "size" + )] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn size(this: &MediaKeyStatusMap) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaKeyStatusMap", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] @@ -28,7 +44,13 @@ extern "C" { this: &MediaKeyStatusMap, key_id: &::js_sys::Object, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaKeyStatusMap", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] @@ -38,14 +60,14 @@ extern "C" { this: &MediaKeyStatusMap, key_id: &mut [u8], ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = has)] + #[wasm_bindgen(method, structural, js_class = "MediaKeyStatusMap", js_name = "has")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn has_with_buffer_source(this: &MediaKeyStatusMap, key_id: &::js_sys::Object) -> bool; - # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = has)] + #[wasm_bindgen(method, structural, js_class = "MediaKeyStatusMap", js_name = "has")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] diff --git a/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs b/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs index 544a59a8701..e7c781f78e2 100644 --- a/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs +++ b/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeySystemAccess , typescript_type = "MediaKeySystemAccess")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaKeySystemAccess", + typescript_type = "MediaKeySystemAccess" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySystemAccess` class."] #[doc = ""] @@ -11,14 +15,25 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] pub type MediaKeySystemAccess; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySystemAccess" , js_name = keySystem)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeySystemAccess", + js_name = "keySystem" + )] #[doc = "Getter for the `keySystem` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "MediaKeySystemAccess" , js_name = createMediaKeys)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeySystemAccess", + js_name = "createMediaKeys" + )] #[doc = "The `createMediaKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/createMediaKeys)"] @@ -26,7 +41,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] pub fn create_media_keys(this: &MediaKeySystemAccess) -> ::js_sys::Promise; #[cfg(feature = "MediaKeySystemConfiguration")] - # [wasm_bindgen (method , structural , js_class = "MediaKeySystemAccess" , js_name = getConfiguration)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeySystemAccess", + js_name = "getConfiguration" + )] #[doc = "The `getConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/getConfiguration)"] diff --git a/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs b/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs index c565cf98ffb..10ee4d7a1ba 100644 --- a/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs +++ b/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeySystemConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaKeySystemConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySystemConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs b/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs index b3def21e2cb..95acaac53a9 100644 --- a/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs +++ b/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeySystemMediaCapability)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaKeySystemMediaCapability" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySystemMediaCapability` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaKeys.rs b/crates/web-sys/src/features/gen_MediaKeys.rs index ecf90c11eb2..9efeebc272f 100644 --- a/crates/web-sys/src/features/gen_MediaKeys.rs +++ b/crates/web-sys/src/features/gen_MediaKeys.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeys , typescript_type = "MediaKeys")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaKeys", + typescript_type = "MediaKeys" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeys` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub type MediaKeys; - # [wasm_bindgen (structural , method , getter , js_class = "MediaKeys" , js_name = keySystem)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaKeys", + js_name = "keySystem" + )] #[doc = "Getter for the `keySystem` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/keySystem)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub fn key_system(this: &MediaKeys) -> String; #[cfg(feature = "MediaKeySession")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaKeys" , js_name = createSession)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaKeys", + js_name = "createSession" + )] #[doc = "The `createSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] @@ -27,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeys`*"] pub fn create_session(this: &MediaKeys) -> Result; #[cfg(all(feature = "MediaKeySession", feature = "MediaKeySessionType",))] - # [wasm_bindgen (catch , method , structural , js_class = "MediaKeys" , js_name = createSession)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaKeys", + js_name = "createSession" + )] #[doc = "The `createSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] @@ -37,7 +59,12 @@ extern "C" { this: &MediaKeys, session_type: MediaKeySessionType, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeys", + js_name = "getStatusForPolicy" + )] #[doc = "The `getStatusForPolicy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] @@ -45,7 +72,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub fn get_status_for_policy(this: &MediaKeys) -> ::js_sys::Promise; #[cfg(feature = "MediaKeysPolicy")] - # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeys", + js_name = "getStatusForPolicy" + )] #[doc = "The `getStatusForPolicy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] @@ -55,7 +87,12 @@ extern "C" { this: &MediaKeys, policy: &MediaKeysPolicy, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = setServerCertificate)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeys", + js_name = "setServerCertificate" + )] #[doc = "The `setServerCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] @@ -65,7 +102,12 @@ extern "C" { this: &MediaKeys, server_certificate: &::js_sys::Object, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = setServerCertificate)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaKeys", + js_name = "setServerCertificate" + )] #[doc = "The `setServerCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] diff --git a/crates/web-sys/src/features/gen_MediaKeysPolicy.rs b/crates/web-sys/src/features/gen_MediaKeysPolicy.rs index df5fefbe954..3a167c0b226 100644 --- a/crates/web-sys/src/features/gen_MediaKeysPolicy.rs +++ b/crates/web-sys/src/features/gen_MediaKeysPolicy.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeysPolicy)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaKeysPolicy")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeysPolicy` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaList.rs b/crates/web-sys/src/features/gen_MediaList.rs index 89b8f383fed..b25fafd08b1 100644 --- a/crates/web-sys/src/features/gen_MediaList.rs +++ b/crates/web-sys/src/features/gen_MediaList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaList , typescript_type = "MediaList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaList", + typescript_type = "MediaList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaList` class."] #[doc = ""] @@ -11,42 +15,66 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub type MediaList; - # [wasm_bindgen (structural , method , getter , js_class = "MediaList" , js_name = mediaText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaList", + js_name = "mediaText" + )] #[doc = "Getter for the `mediaText` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "MediaList" , js_name = mediaText)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaList", + js_name = "mediaText" + )] #[doc = "Setter for the `mediaText` field of this object."] #[doc = ""] #[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 set_media_text(this: &MediaList, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "MediaList" , js_name = length)] + #[wasm_bindgen(structural, method, getter, js_class = "MediaList", js_name = "length")] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn length(this: &MediaList) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "MediaList" , js_name = appendMedium)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaList", + js_name = "appendMedium" + )] #[doc = "The `appendMedium()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/appendMedium)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn append_medium(this: &MediaList, new_medium: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaList" , js_name = deleteMedium)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaList", + js_name = "deleteMedium" + )] #[doc = "The `deleteMedium()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/deleteMedium)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn delete_medium(this: &MediaList, old_medium: &str) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "MediaList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "MediaList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/item)"] diff --git a/crates/web-sys/src/features/gen_MediaQueryList.rs b/crates/web-sys/src/features/gen_MediaQueryList.rs index 24faf3a316d..f5ad7685a05 100644 --- a/crates/web-sys/src/features/gen_MediaQueryList.rs +++ b/crates/web-sys/src/features/gen_MediaQueryList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaQueryList , typescript_type = "MediaQueryList")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaQueryList", + typescript_type = "MediaQueryList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaQueryList` class."] #[doc = ""] @@ -11,35 +16,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub type MediaQueryList; - # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryList" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaQueryList", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryList" , js_name = matches)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaQueryList", + js_name = "matches" + )] #[doc = "Getter for the `matches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/matches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn matches(this: &MediaQueryList) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaQueryList", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn onchange(this: &MediaQueryList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaQueryList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaQueryList", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn set_onchange(this: &MediaQueryList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = addListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaQueryList", + js_name = "addListener" + )] #[doc = "The `addListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener)"] @@ -50,7 +85,13 @@ extern "C" { listener: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = addListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaQueryList", + js_name = "addListener" + )] #[doc = "The `addListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener)"] @@ -60,7 +101,13 @@ extern "C" { this: &MediaQueryList, listener: Option<&EventListener>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = removeListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaQueryList", + js_name = "removeListener" + )] #[doc = "The `removeListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/removeListener)"] @@ -71,7 +118,13 @@ extern "C" { listener: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = removeListener)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaQueryList", + js_name = "removeListener" + )] #[doc = "The `removeListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/removeListener)"] diff --git a/crates/web-sys/src/features/gen_MediaQueryListEvent.rs b/crates/web-sys/src/features/gen_MediaQueryListEvent.rs index ceca733f1fc..8dd0979311a 100644 --- a/crates/web-sys/src/features/gen_MediaQueryListEvent.rs +++ b/crates/web-sys/src/features/gen_MediaQueryListEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaQueryListEvent , typescript_type = "MediaQueryListEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MediaQueryListEvent", + typescript_type = "MediaQueryListEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaQueryListEvent` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] pub type MediaQueryListEvent; - # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryListEvent" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaQueryListEvent", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryListEvent" , js_name = matches)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaQueryListEvent", + js_name = "matches" + )] #[doc = "Getter for the `matches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/matches)"] diff --git a/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs b/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs index 5546b6ed5a7..ff621a6856c 100644 --- a/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaQueryListEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaQueryListEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaQueryListEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaRecorder.rs b/crates/web-sys/src/features/gen_MediaRecorder.rs index 1153152da4b..d946c2e558e 100644 --- a/crates/web-sys/src/features/gen_MediaRecorder.rs +++ b/crates/web-sys/src/features/gen_MediaRecorder.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaRecorder , typescript_type = "MediaRecorder")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaRecorder", + typescript_type = "MediaRecorder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorder` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub type MediaRecorder; #[cfg(feature = "MediaStream")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = stream)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "stream" + )] #[doc = "Getter for the `stream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stream)"] @@ -20,84 +31,156 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `MediaStream`*"] pub fn stream(this: &MediaRecorder) -> MediaStream; #[cfg(feature = "RecordingState")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `RecordingState`*"] pub fn state(this: &MediaRecorder) -> RecordingState; - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = mimeType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "mimeType" + )] #[doc = "Getter for the `mimeType` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = ondataavailable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "ondataavailable" + )] #[doc = "Getter for the `ondataavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn ondataavailable(this: &MediaRecorder) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = ondataavailable)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaRecorder", + js_name = "ondataavailable" + )] #[doc = "Setter for the `ondataavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_ondataavailable(this: &MediaRecorder, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onerror(this: &MediaRecorder) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaRecorder", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_onerror(this: &MediaRecorder, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "onstart" + )] #[doc = "Getter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onstart(this: &MediaRecorder) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaRecorder", + js_name = "onstart" + )] #[doc = "Setter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_onstart(this: &MediaRecorder, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onstop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "onstop" + )] #[doc = "Getter for the `onstop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onstop(this: &MediaRecorder) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onstop)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaRecorder", + js_name = "onstop" + )] #[doc = "Setter for the `onstop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_onstop(this: &MediaRecorder, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onwarning)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorder", + js_name = "onwarning" + )] #[doc = "Getter for the `onwarning` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onwarning(this: &MediaRecorder) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onwarning)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaRecorder", + js_name = "onwarning" + )] #[doc = "Setter for the `onwarning` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning)"] @@ -154,49 +237,89 @@ extern "C" { output: u32, options: &MediaRecorderOptions, ) -> Result; - # [wasm_bindgen (static_method_of = MediaRecorder , js_class = "MediaRecorder" , js_name = isTypeSupported)] + #[wasm_bindgen( + static_method_of = "MediaRecorder", + js_class = "MediaRecorder", + js_name = "isTypeSupported" + )] #[doc = "The `isTypeSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn is_type_supported(type_: &str) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = pause)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaRecorder", + js_name = "pause" + )] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn pause(this: &MediaRecorder) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = requestData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaRecorder", + js_name = "requestData" + )] #[doc = "The `requestData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/requestData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn request_data(this: &MediaRecorder) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = resume)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaRecorder", + js_name = "resume" + )] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn resume(this: &MediaRecorder) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaRecorder", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn start(this: &MediaRecorder) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaRecorder", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn start_with_time_slice(this: &MediaRecorder, time_slice: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaRecorder", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stop)"] diff --git a/crates/web-sys/src/features/gen_MediaRecorderErrorEvent.rs b/crates/web-sys/src/features/gen_MediaRecorderErrorEvent.rs index 5a00bb630d2..3bd189daedf 100644 --- a/crates/web-sys/src/features/gen_MediaRecorderErrorEvent.rs +++ b/crates/web-sys/src/features/gen_MediaRecorderErrorEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaRecorderErrorEvent , typescript_type = "MediaRecorderErrorEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MediaRecorderErrorEvent", + typescript_type = "MediaRecorderErrorEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorderErrorEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEvent`*"] pub type MediaRecorderErrorEvent; #[cfg(feature = "DomException")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorderErrorEvent" , js_name = error)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaRecorderErrorEvent", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent/error)"] diff --git a/crates/web-sys/src/features/gen_MediaRecorderErrorEventInit.rs b/crates/web-sys/src/features/gen_MediaRecorderErrorEventInit.rs index 834785822cd..7355b898d4a 100644 --- a/crates/web-sys/src/features/gen_MediaRecorderErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaRecorderErrorEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaRecorderErrorEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaRecorderErrorEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorderErrorEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaRecorderOptions.rs b/crates/web-sys/src/features/gen_MediaRecorderOptions.rs index 756be77b751..aaf0e8a0bf8 100644 --- a/crates/web-sys/src/features/gen_MediaRecorderOptions.rs +++ b/crates/web-sys/src/features/gen_MediaRecorderOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaRecorderOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaRecorderOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorderOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaSource.rs b/crates/web-sys/src/features/gen_MediaSource.rs index 1edd2c3c580..193dfb3e61a 100644 --- a/crates/web-sys/src/features/gen_MediaSource.rs +++ b/crates/web-sys/src/features/gen_MediaSource.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaSource , typescript_type = "MediaSource")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaSource", + typescript_type = "MediaSource" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaSource` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub type MediaSource; #[cfg(feature = "SourceBufferList")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = sourceBuffers)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaSource", + js_name = "sourceBuffers" + )] #[doc = "Getter for the `sourceBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/sourceBuffers)"] @@ -20,7 +31,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBufferList`*"] pub fn source_buffers(this: &MediaSource) -> SourceBufferList; #[cfg(feature = "SourceBufferList")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = activeSourceBuffers)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaSource", + js_name = "activeSourceBuffers" + )] #[doc = "Getter for the `activeSourceBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/activeSourceBuffers)"] @@ -28,63 +45,117 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBufferList`*"] pub fn active_source_buffers(this: &MediaSource) -> SourceBufferList; #[cfg(feature = "MediaSourceReadyState")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaSource", + 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/MediaSource/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `MediaSourceReadyState`*"] pub fn ready_state(this: &MediaSource) -> MediaSourceReadyState; - # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaSource", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn duration(this: &MediaSource) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaSource", + js_name = "duration" + )] #[doc = "Setter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_duration(this: &MediaSource, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = onsourceopen)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaSource", + js_name = "onsourceopen" + )] #[doc = "Getter for the `onsourceopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn onsourceopen(this: &MediaSource) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = onsourceopen)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaSource", + js_name = "onsourceopen" + )] #[doc = "Setter for the `onsourceopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_onsourceopen(this: &MediaSource, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = onsourceended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaSource", + js_name = "onsourceended" + )] #[doc = "Getter for the `onsourceended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn onsourceended(this: &MediaSource) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = onsourceended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaSource", + js_name = "onsourceended" + )] #[doc = "Setter for the `onsourceended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_onsourceended(this: &MediaSource, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = onsourceclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaSource", + js_name = "onsourceclose" + )] #[doc = "Getter for the `onsourceclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn onsourceclose(this: &MediaSource) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = onsourceclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaSource", + js_name = "onsourceclose" + )] #[doc = "Setter for the `onsourceclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclose)"] @@ -99,21 +170,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn new() -> Result; #[cfg(feature = "SourceBuffer")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = addSourceBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaSource", + js_name = "addSourceBuffer" + )] #[doc = "The `addSourceBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/addSourceBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBuffer`*"] pub fn add_source_buffer(this: &MediaSource, type_: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = clearLiveSeekableRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaSource", + js_name = "clearLiveSeekableRange" + )] #[doc = "The `clearLiveSeekableRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/clearLiveSeekableRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn clear_live_seekable_range(this: &MediaSource) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = endOfStream)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaSource", + js_name = "endOfStream" + )] #[doc = "The `endOfStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream)"] @@ -121,7 +210,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn end_of_stream(this: &MediaSource) -> Result<(), JsValue>; #[cfg(feature = "MediaSourceEndOfStreamError")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = endOfStream)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaSource", + js_name = "endOfStream" + )] #[doc = "The `endOfStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream)"] @@ -131,7 +226,11 @@ extern "C" { this: &MediaSource, error: MediaSourceEndOfStreamError, ) -> Result<(), JsValue>; - # [wasm_bindgen (static_method_of = MediaSource , js_class = "MediaSource" , js_name = isTypeSupported)] + #[wasm_bindgen( + static_method_of = "MediaSource", + js_class = "MediaSource", + js_name = "isTypeSupported" + )] #[doc = "The `isTypeSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/isTypeSupported)"] @@ -139,7 +238,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn is_type_supported(type_: &str) -> bool; #[cfg(feature = "SourceBuffer")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = removeSourceBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaSource", + js_name = "removeSourceBuffer" + )] #[doc = "The `removeSourceBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/removeSourceBuffer)"] @@ -149,7 +254,13 @@ extern "C" { this: &MediaSource, source_buffer: &SourceBuffer, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = setLiveSeekableRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaSource", + js_name = "setLiveSeekableRange" + )] #[doc = "The `setLiveSeekableRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange)"] diff --git a/crates/web-sys/src/features/gen_MediaStream.rs b/crates/web-sys/src/features/gen_MediaStream.rs index 75d5f21a926..56e344363c3 100644 --- a/crates/web-sys/src/features/gen_MediaStream.rs +++ b/crates/web-sys/src/features/gen_MediaStream.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStream , typescript_type = "MediaStream")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaStream", + typescript_type = "MediaStream" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStream` class."] #[doc = ""] @@ -11,49 +16,85 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub type MediaStream; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "MediaStream", 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/MediaStream/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn id(this: &MediaStream) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = active)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStream", + js_name = "active" + )] #[doc = "Getter for the `active` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/active)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn active(this: &MediaStream) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStream", + js_name = "onaddtrack" + )] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn onaddtrack(this: &MediaStream) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaStream" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaStream", + js_name = "onaddtrack" + )] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn set_onaddtrack(this: &MediaStream, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStream", + js_name = "onremovetrack" + )] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn onremovetrack(this: &MediaStream) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaStream" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaStream", + js_name = "onremovetrack" + )] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn set_onremovetrack(this: &MediaStream, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStream", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/currentTime)"] @@ -82,21 +123,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn new_with_tracks(tracks: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = addTrack)] + #[wasm_bindgen(method, structural, js_class = "MediaStream", js_name = "addTrack")] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] pub fn add_track(this: &MediaStream, track: &MediaStreamTrack); - # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = clone)] + #[wasm_bindgen(method, structural, js_class = "MediaStream", js_name = "clone")] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn clone(this: &MediaStream) -> MediaStream; - # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getAudioTracks)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaStream", + js_name = "getAudioTracks" + )] #[doc = "The `getAudioTracks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getAudioTracks)"] @@ -104,21 +150,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn get_audio_tracks(this: &MediaStream) -> ::js_sys::Array; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getTrackById)] + #[wasm_bindgen(method, structural, js_class = "MediaStream", js_name = "getTrackById")] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTrackById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] pub fn get_track_by_id(this: &MediaStream, track_id: &str) -> Option; - # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getTracks)] + #[wasm_bindgen(method, structural, js_class = "MediaStream", js_name = "getTracks")] #[doc = "The `getTracks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn get_tracks(this: &MediaStream) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getVideoTracks)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaStream", + js_name = "getVideoTracks" + )] #[doc = "The `getVideoTracks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getVideoTracks)"] @@ -126,7 +177,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn get_video_tracks(this: &MediaStream) -> ::js_sys::Array; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = removeTrack)] + #[wasm_bindgen(method, structural, js_class = "MediaStream", js_name = "removeTrack")] #[doc = "The `removeTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/removeTrack)"] diff --git a/crates/web-sys/src/features/gen_MediaStreamAudioDestinationNode.rs b/crates/web-sys/src/features/gen_MediaStreamAudioDestinationNode.rs index 84464845985..4cf737473f9 100644 --- a/crates/web-sys/src/features/gen_MediaStreamAudioDestinationNode.rs +++ b/crates/web-sys/src/features/gen_MediaStreamAudioDestinationNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamAudioDestinationNode , typescript_type = "MediaStreamAudioDestinationNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaStreamAudioDestinationNode", + typescript_type = "MediaStreamAudioDestinationNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamAudioDestinationNode` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamAudioDestinationNode`*"] pub type MediaStreamAudioDestinationNode; #[cfg(feature = "MediaStream")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamAudioDestinationNode" , js_name = stream)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamAudioDestinationNode", + js_name = "stream" + )] #[doc = "Getter for the `stream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/stream)"] diff --git a/crates/web-sys/src/features/gen_MediaStreamAudioSourceNode.rs b/crates/web-sys/src/features/gen_MediaStreamAudioSourceNode.rs index 0c206a44cfc..3862d4f8feb 100644 --- a/crates/web-sys/src/features/gen_MediaStreamAudioSourceNode.rs +++ b/crates/web-sys/src/features/gen_MediaStreamAudioSourceNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamAudioSourceNode , typescript_type = "MediaStreamAudioSourceNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaStreamAudioSourceNode", + typescript_type = "MediaStreamAudioSourceNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamAudioSourceNode` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaStreamAudioSourceOptions.rs b/crates/web-sys/src/features/gen_MediaStreamAudioSourceOptions.rs index 8f72c319a85..62d66b6aa46 100644 --- a/crates/web-sys/src/features/gen_MediaStreamAudioSourceOptions.rs +++ b/crates/web-sys/src/features/gen_MediaStreamAudioSourceOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamAudioSourceOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaStreamAudioSourceOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamAudioSourceOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaStreamConstraints.rs b/crates/web-sys/src/features/gen_MediaStreamConstraints.rs index 9950c1844f1..a4870bbe2f4 100644 --- a/crates/web-sys/src/features/gen_MediaStreamConstraints.rs +++ b/crates/web-sys/src/features/gen_MediaStreamConstraints.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamConstraints)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaStreamConstraints")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamConstraints` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaStreamError.rs b/crates/web-sys/src/features/gen_MediaStreamError.rs index b18996d425b..6705ba2564a 100644 --- a/crates/web-sys/src/features/gen_MediaStreamError.rs +++ b/crates/web-sys/src/features/gen_MediaStreamError.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = MediaStreamError , typescript_type = "MediaStreamError")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "MediaStreamError" , typescript_type = "MediaStreamError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamError` class."] #[doc = ""] @@ -11,21 +11,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] pub type MediaStreamError; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamError", + 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/MediaStreamError/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] pub fn name(this: &MediaStreamError) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = message)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = constraint)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_MediaStreamEvent.rs b/crates/web-sys/src/features/gen_MediaStreamEvent.rs index d562649b4a1..78492e55b1e 100644 --- a/crates/web-sys/src/features/gen_MediaStreamEvent.rs +++ b/crates/web-sys/src/features/gen_MediaStreamEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaStreamEvent , typescript_type = "MediaStreamEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MediaStreamEvent", + typescript_type = "MediaStreamEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamEvent`*"] pub type MediaStreamEvent; #[cfg(feature = "MediaStream")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamEvent" , js_name = stream)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamEvent", + js_name = "stream" + )] #[doc = "Getter for the `stream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent/stream)"] diff --git a/crates/web-sys/src/features/gen_MediaStreamEventInit.rs b/crates/web-sys/src/features/gen_MediaStreamEventInit.rs index eb3d2956474..52c44153895 100644 --- a/crates/web-sys/src/features/gen_MediaStreamEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaStreamEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaStreamEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaStreamTrack.rs b/crates/web-sys/src/features/gen_MediaStreamTrack.rs index 113d02887fb..01b9836db34 100644 --- a/crates/web-sys/src/features/gen_MediaStreamTrack.rs +++ b/crates/web-sys/src/features/gen_MediaStreamTrack.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamTrack , typescript_type = "MediaStreamTrack")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MediaStreamTrack", + typescript_type = "MediaStreamTrack" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrack` class."] #[doc = ""] @@ -11,70 +16,130 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub type MediaStreamTrack; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = kind)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrack", + 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/MediaStreamTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn kind(this: &MediaStreamTrack) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = id)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = label)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = enabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrack", + js_name = "enabled" + )] #[doc = "Getter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn enabled(this: &MediaStreamTrack) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = enabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaStreamTrack", + js_name = "enabled" + )] #[doc = "Setter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_enabled(this: &MediaStreamTrack, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = muted)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrack", + js_name = "muted" + )] #[doc = "Getter for the `muted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn muted(this: &MediaStreamTrack) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onmute)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrack", + js_name = "onmute" + )] #[doc = "Getter for the `onmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn onmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onmute)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaStreamTrack", + js_name = "onmute" + )] #[doc = "Setter for the `onmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_onmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onunmute)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrack", + js_name = "onunmute" + )] #[doc = "Getter for the `onunmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn onunmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onunmute)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaStreamTrack", + js_name = "onunmute" + )] #[doc = "Setter for the `onunmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"] @@ -82,28 +147,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_onunmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); #[cfg(feature = "MediaStreamTrackState")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrack", + 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/MediaStreamTrack/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackState`*"] pub fn ready_state(this: &MediaStreamTrack) -> MediaStreamTrackState; - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrack", + js_name = "onended" + )] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn onended(this: &MediaStreamTrack) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MediaStreamTrack", + js_name = "onended" + )] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_onended(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaStreamTrack", + js_name = "applyConstraints" + )] #[doc = "The `applyConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"] @@ -111,7 +200,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn apply_constraints(this: &MediaStreamTrack) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MediaTrackConstraints")] - # [wasm_bindgen (catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MediaStreamTrack", + js_name = "applyConstraints" + )] #[doc = "The `applyConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"] @@ -121,7 +216,7 @@ extern "C" { this: &MediaStreamTrack, constraints: &MediaTrackConstraints, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = clone)] + #[wasm_bindgen(method, structural, js_class = "MediaStreamTrack", js_name = "clone")] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone)"] @@ -129,7 +224,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn clone(this: &MediaStreamTrack) -> MediaStreamTrack; #[cfg(feature = "MediaTrackConstraints")] - # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = getConstraints)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaStreamTrack", + js_name = "getConstraints" + )] #[doc = "The `getConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getConstraints)"] @@ -137,14 +237,19 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackConstraints`*"] pub fn get_constraints(this: &MediaStreamTrack) -> MediaTrackConstraints; #[cfg(feature = "MediaTrackSettings")] - # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = getSettings)] + #[wasm_bindgen( + method, + structural, + js_class = "MediaStreamTrack", + js_name = "getSettings" + )] #[doc = "The `getSettings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackSettings`*"] pub fn get_settings(this: &MediaStreamTrack) -> MediaTrackSettings; - # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = stop)] + #[wasm_bindgen(method, structural, js_class = "MediaStreamTrack", js_name = "stop")] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/stop)"] diff --git a/crates/web-sys/src/features/gen_MediaStreamTrackEvent.rs b/crates/web-sys/src/features/gen_MediaStreamTrackEvent.rs index 30884b9ec4a..26073044bb6 100644 --- a/crates/web-sys/src/features/gen_MediaStreamTrackEvent.rs +++ b/crates/web-sys/src/features/gen_MediaStreamTrackEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaStreamTrackEvent , typescript_type = "MediaStreamTrackEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MediaStreamTrackEvent", + typescript_type = "MediaStreamTrackEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEvent`*"] pub type MediaStreamTrackEvent; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrackEvent" , js_name = track)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MediaStreamTrackEvent", + js_name = "track" + )] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent/track)"] diff --git a/crates/web-sys/src/features/gen_MediaStreamTrackEventInit.rs b/crates/web-sys/src/features/gen_MediaStreamTrackEventInit.rs index 4657ef56bf7..992b25394cb 100644 --- a/crates/web-sys/src/features/gen_MediaStreamTrackEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaStreamTrackEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamTrackEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaStreamTrackEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs b/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs index f89ab83c1c7..c9475390691 100644 --- a/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs +++ b/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackConstraintSet)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaTrackConstraintSet")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackConstraintSet` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaTrackConstraints.rs b/crates/web-sys/src/features/gen_MediaTrackConstraints.rs index 8f76b79644a..3df77915ace 100644 --- a/crates/web-sys/src/features/gen_MediaTrackConstraints.rs +++ b/crates/web-sys/src/features/gen_MediaTrackConstraints.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackConstraints)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaTrackConstraints")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackConstraints` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaTrackSettings.rs b/crates/web-sys/src/features/gen_MediaTrackSettings.rs index e279a5595e1..632854121b5 100644 --- a/crates/web-sys/src/features/gen_MediaTrackSettings.rs +++ b/crates/web-sys/src/features/gen_MediaTrackSettings.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackSettings)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MediaTrackSettings")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackSettings` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaTrackSupportedConstraints.rs b/crates/web-sys/src/features/gen_MediaTrackSupportedConstraints.rs index 068ae203e23..5d951456568 100644 --- a/crates/web-sys/src/features/gen_MediaTrackSupportedConstraints.rs +++ b/crates/web-sys/src/features/gen_MediaTrackSupportedConstraints.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackSupportedConstraints)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MediaTrackSupportedConstraints" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackSupportedConstraints` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MessageChannel.rs b/crates/web-sys/src/features/gen_MessageChannel.rs index 4422c14af5d..7253ada70a7 100644 --- a/crates/web-sys/src/features/gen_MessageChannel.rs +++ b/crates/web-sys/src/features/gen_MessageChannel.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MessageChannel , typescript_type = "MessageChannel")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MessageChannel", + typescript_type = "MessageChannel" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessageChannel` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MessageChannel`*"] pub type MessageChannel; #[cfg(feature = "MessagePort")] - # [wasm_bindgen (structural , method , getter , js_class = "MessageChannel" , js_name = port1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessageChannel", + js_name = "port1" + )] #[doc = "Getter for the `port1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MessageChannel`, `MessagePort`*"] pub fn port1(this: &MessageChannel) -> MessagePort; #[cfg(feature = "MessagePort")] - # [wasm_bindgen (structural , method , getter , js_class = "MessageChannel" , js_name = port2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessageChannel", + js_name = "port2" + )] #[doc = "Getter for the `port2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2)"] diff --git a/crates/web-sys/src/features/gen_MessageEvent.rs b/crates/web-sys/src/features/gen_MessageEvent.rs index 89df3994280..6275cf83680 100644 --- a/crates/web-sys/src/features/gen_MessageEvent.rs +++ b/crates/web-sys/src/features/gen_MessageEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MessageEvent , typescript_type = "MessageEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MessageEvent", + typescript_type = "MessageEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessageEvent` class."] #[doc = ""] @@ -11,35 +16,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub type MessageEvent; - # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessageEvent", + 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/MessageEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn data(this: &MessageEvent) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = origin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessageEvent", + 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/MessageEvent/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn origin(this: &MessageEvent) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = lastEventId)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = source)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessageEvent", + js_name = "source" + )] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/source)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn source(this: &MessageEvent) -> Option<::js_sys::Object>; - # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = ports)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessageEvent", + js_name = "ports" + )] #[doc = "Getter for the `ports` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/ports)"] @@ -64,21 +99,36 @@ extern "C" { type_: &str, event_init_dict: &MessageEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event(this: &MessageEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event_with_bubbles(this: &MessageEvent, type_: &str, bubbles: bool); - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -90,7 +140,12 @@ extern "C" { bubbles: bool, cancelable: bool, ); - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -103,7 +158,12 @@ extern "C" { cancelable: bool, data: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -117,7 +177,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, origin: &str, ); - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -133,7 +198,12 @@ extern "C" { last_event_id: &str, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -150,7 +220,12 @@ extern "C" { source: Option<&Window>, ); #[cfg(feature = "MessagePort")] - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -167,7 +242,12 @@ extern "C" { source: Option<&MessagePort>, ); #[cfg(feature = "ServiceWorker")] - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -184,7 +264,12 @@ extern "C" { source: Option<&ServiceWorker>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -202,7 +287,12 @@ extern "C" { ports: &::wasm_bindgen::JsValue, ); #[cfg(feature = "MessagePort")] - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] @@ -220,7 +310,12 @@ extern "C" { ports: &::wasm_bindgen::JsValue, ); #[cfg(feature = "ServiceWorker")] - # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MessageEvent", + js_name = "initMessageEvent" + )] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] diff --git a/crates/web-sys/src/features/gen_MessageEventInit.rs b/crates/web-sys/src/features/gen_MessageEventInit.rs index 86092746eba..0e4fa17bb66 100644 --- a/crates/web-sys/src/features/gen_MessageEventInit.rs +++ b/crates/web-sys/src/features/gen_MessageEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MessageEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MessageEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessageEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MessagePort.rs b/crates/web-sys/src/features/gen_MessagePort.rs index 2eaf463d003..5cce127ca33 100644 --- a/crates/web-sys/src/features/gen_MessagePort.rs +++ b/crates/web-sys/src/features/gen_MessagePort.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MessagePort , typescript_type = "MessagePort")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MessagePort", + typescript_type = "MessagePort" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessagePort` class."] #[doc = ""] @@ -11,42 +16,72 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub type MessagePort; - # [wasm_bindgen (structural , method , getter , js_class = "MessagePort" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessagePort", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn onmessage(this: &MessagePort) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MessagePort" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MessagePort", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn set_onmessage(this: &MessagePort, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MessagePort" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MessagePort", + js_name = "onmessageerror" + )] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn onmessageerror(this: &MessagePort) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MessagePort" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MessagePort", + js_name = "onmessageerror" + )] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn set_onmessageerror(this: &MessagePort, value: Option<&::js_sys::Function>); - # [wasm_bindgen (method , structural , js_class = "MessagePort" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "MessagePort", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn close(this: &MessagePort); - # [wasm_bindgen (catch , method , structural , js_class = "MessagePort" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MessagePort", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage)"] @@ -56,7 +91,13 @@ extern "C" { this: &MessagePort, message: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MessagePort" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MessagePort", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage)"] @@ -67,7 +108,7 @@ extern "C" { message: &::wasm_bindgen::JsValue, transferable: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "MessagePort" , js_name = start)] + #[wasm_bindgen(method, structural, js_class = "MessagePort", js_name = "start")] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/start)"] diff --git a/crates/web-sys/src/features/gen_MidiAccess.rs b/crates/web-sys/src/features/gen_MidiAccess.rs index 4c0db7544e8..be146b4c6f4 100644 --- a/crates/web-sys/src/features/gen_MidiAccess.rs +++ b/crates/web-sys/src/features/gen_MidiAccess.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIAccess , typescript_type = "MIDIAccess")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MIDIAccess", + typescript_type = "MIDIAccess" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiAccess` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] pub type MidiAccess; #[cfg(feature = "MidiInputMap")] - # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = inputs)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIAccess", + js_name = "inputs" + )] #[doc = "Getter for the `inputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/inputs)"] @@ -20,28 +31,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiInputMap`*"] pub fn inputs(this: &MidiAccess) -> MidiInputMap; #[cfg(feature = "MidiOutputMap")] - # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = outputs)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIAccess", + js_name = "outputs" + )] #[doc = "Getter for the `outputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/outputs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiOutputMap`*"] pub fn outputs(this: &MidiAccess) -> MidiOutputMap; - # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIAccess", + js_name = "onstatechange" + )] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] pub fn onstatechange(this: &MidiAccess) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MIDIAccess" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MIDIAccess", + js_name = "onstatechange" + )] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] pub fn set_onstatechange(this: &MidiAccess, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = sysexEnabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIAccess", + js_name = "sysexEnabled" + )] #[doc = "Getter for the `sysexEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/sysexEnabled)"] diff --git a/crates/web-sys/src/features/gen_MidiConnectionEvent.rs b/crates/web-sys/src/features/gen_MidiConnectionEvent.rs index 03adeb7d649..f6daec1abb6 100644 --- a/crates/web-sys/src/features/gen_MidiConnectionEvent.rs +++ b/crates/web-sys/src/features/gen_MidiConnectionEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MIDIConnectionEvent , typescript_type = "MIDIConnectionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MIDIConnectionEvent", + typescript_type = "MIDIConnectionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiConnectionEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`*"] pub type MidiConnectionEvent; #[cfg(feature = "MidiPort")] - # [wasm_bindgen (structural , method , getter , js_class = "MIDIConnectionEvent" , js_name = port)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIConnectionEvent", + 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/MIDIConnectionEvent/port)"] diff --git a/crates/web-sys/src/features/gen_MidiConnectionEventInit.rs b/crates/web-sys/src/features/gen_MidiConnectionEventInit.rs index 3b863c8cbc9..3d33d0dbf97 100644 --- a/crates/web-sys/src/features/gen_MidiConnectionEventInit.rs +++ b/crates/web-sys/src/features/gen_MidiConnectionEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIConnectionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MIDIConnectionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiConnectionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MidiInput.rs b/crates/web-sys/src/features/gen_MidiInput.rs index d481aa2e9a5..66c2597c076 100644 --- a/crates/web-sys/src/features/gen_MidiInput.rs +++ b/crates/web-sys/src/features/gen_MidiInput.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIInput , typescript_type = "MIDIInput")] + #[wasm_bindgen( + extends = "MidiPort", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MIDIInput", + typescript_type = "MIDIInput" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiInput` class."] #[doc = ""] @@ -11,14 +17,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] pub type MidiInput; - # [wasm_bindgen (structural , method , getter , js_class = "MIDIInput" , js_name = onmidimessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIInput", + js_name = "onmidimessage" + )] #[doc = "Getter for the `onmidimessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput/onmidimessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] pub fn onmidimessage(this: &MidiInput) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MIDIInput" , js_name = onmidimessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MIDIInput", + js_name = "onmidimessage" + )] #[doc = "Setter for the `onmidimessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput/onmidimessage)"] diff --git a/crates/web-sys/src/features/gen_MidiInputMap.rs b/crates/web-sys/src/features/gen_MidiInputMap.rs index 7a682bdad00..c0af1ccf44c 100644 --- a/crates/web-sys/src/features/gen_MidiInputMap.rs +++ b/crates/web-sys/src/features/gen_MidiInputMap.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIInputMap , typescript_type = "MIDIInputMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MIDIInputMap", + typescript_type = "MIDIInputMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiInputMap` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MidiMessageEvent.rs b/crates/web-sys/src/features/gen_MidiMessageEvent.rs index f4462faf743..134a23b6ab6 100644 --- a/crates/web-sys/src/features/gen_MidiMessageEvent.rs +++ b/crates/web-sys/src/features/gen_MidiMessageEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MIDIMessageEvent , typescript_type = "MIDIMessageEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MIDIMessageEvent", + typescript_type = "MIDIMessageEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiMessageEvent` class."] #[doc = ""] @@ -11,7 +16,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] pub type MidiMessageEvent; - # [wasm_bindgen (structural , catch , method , getter , js_class = "MIDIMessageEvent" , js_name = data)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "MIDIMessageEvent", + 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/MIDIMessageEvent/data)"] diff --git a/crates/web-sys/src/features/gen_MidiMessageEventInit.rs b/crates/web-sys/src/features/gen_MidiMessageEventInit.rs index b1c6e943e9f..85e8c92ccc8 100644 --- a/crates/web-sys/src/features/gen_MidiMessageEventInit.rs +++ b/crates/web-sys/src/features/gen_MidiMessageEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIMessageEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MIDIMessageEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiMessageEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MidiOptions.rs b/crates/web-sys/src/features/gen_MidiOptions.rs index d1e320d7829..f3835e9c525 100644 --- a/crates/web-sys/src/features/gen_MidiOptions.rs +++ b/crates/web-sys/src/features/gen_MidiOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MIDIOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MidiOutput.rs b/crates/web-sys/src/features/gen_MidiOutput.rs index 8dc8a7aaeeb..6f627b1331f 100644 --- a/crates/web-sys/src/features/gen_MidiOutput.rs +++ b/crates/web-sys/src/features/gen_MidiOutput.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIOutput , typescript_type = "MIDIOutput")] + #[wasm_bindgen( + extends = "MidiPort", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MIDIOutput", + typescript_type = "MIDIOutput" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiOutput` class."] #[doc = ""] @@ -11,21 +17,21 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] pub type MidiOutput; - # [wasm_bindgen (method , structural , js_class = "MIDIOutput" , js_name = clear)] + #[wasm_bindgen(method, structural, js_class = "MIDIOutput", js_name = "clear")] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] pub fn clear(this: &MidiOutput); - # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "MIDIOutput", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] pub fn send(this: &MidiOutput, data: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "MIDIOutput", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"] diff --git a/crates/web-sys/src/features/gen_MidiOutputMap.rs b/crates/web-sys/src/features/gen_MidiOutputMap.rs index d20f434544b..998d8757bbe 100644 --- a/crates/web-sys/src/features/gen_MidiOutputMap.rs +++ b/crates/web-sys/src/features/gen_MidiOutputMap.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIOutputMap , typescript_type = "MIDIOutputMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MIDIOutputMap", + typescript_type = "MIDIOutputMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiOutputMap` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MidiPort.rs b/crates/web-sys/src/features/gen_MidiPort.rs index c69a4ee0afe..36537dab723 100644 --- a/crates/web-sys/src/features/gen_MidiPort.rs +++ b/crates/web-sys/src/features/gen_MidiPort.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIPort , typescript_type = "MIDIPort")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "MIDIPort", + typescript_type = "MIDIPort" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiPort` class."] #[doc = ""] @@ -11,28 +16,34 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub type MidiPort; - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "MIDIPort", 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/MIDIPort/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn id(this: &MidiPort) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = manufacturer)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = name)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = version)] + #[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)"] @@ -40,7 +51,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn version(this: &MidiPort) -> Option; #[cfg(feature = "MidiPortType")] - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "MIDIPort", 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/MIDIPort/type)"] @@ -48,7 +59,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortType`*"] pub fn type_(this: &MidiPort) -> MidiPortType; #[cfg(feature = "MidiPortDeviceState")] - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = state)] + #[wasm_bindgen(structural, method, getter, js_class = "MIDIPort", js_name = "state")] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/state)"] @@ -56,35 +67,53 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortDeviceState`*"] pub fn state(this: &MidiPort) -> MidiPortDeviceState; #[cfg(feature = "MidiPortConnectionState")] - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = connection)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIPort", + js_name = "connection" + )] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/connection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortConnectionState`*"] pub fn connection(this: &MidiPort) -> MidiPortConnectionState; - # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MIDIPort", + js_name = "onstatechange" + )] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn onstatechange(this: &MidiPort) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "MIDIPort" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "MIDIPort", + js_name = "onstatechange" + )] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn set_onstatechange(this: &MidiPort, value: Option<&::js_sys::Function>); - # [wasm_bindgen (method , structural , js_class = "MIDIPort" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "MIDIPort", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn close(this: &MidiPort) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "MIDIPort" , js_name = open)] + #[wasm_bindgen(method, structural, js_class = "MIDIPort", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/open)"] diff --git a/crates/web-sys/src/features/gen_MimeType.rs b/crates/web-sys/src/features/gen_MimeType.rs index 1588cb14a8a..d5e69395c36 100644 --- a/crates/web-sys/src/features/gen_MimeType.rs +++ b/crates/web-sys/src/features/gen_MimeType.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MimeType , typescript_type = "MimeType")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MimeType", + typescript_type = "MimeType" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MimeType` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] pub type MimeType; - # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = description)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MimeType", + js_name = "description" + )] #[doc = "Getter for the `description` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/description)"] @@ -19,21 +29,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] pub fn description(this: &MimeType) -> String; #[cfg(feature = "Plugin")] - # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = enabledPlugin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MimeType", + js_name = "enabledPlugin" + )] #[doc = "Getter for the `enabledPlugin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/enabledPlugin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] pub fn enabled_plugin(this: &MimeType) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = suffixes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MimeType", + js_name = "suffixes" + )] #[doc = "Getter for the `suffixes` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = type)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_MimeTypeArray.rs b/crates/web-sys/src/features/gen_MimeTypeArray.rs index 79fe54a74a1..306b2bea49d 100644 --- a/crates/web-sys/src/features/gen_MimeTypeArray.rs +++ b/crates/web-sys/src/features/gen_MimeTypeArray.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MimeTypeArray , typescript_type = "MimeTypeArray")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MimeTypeArray", + typescript_type = "MimeTypeArray" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MimeTypeArray` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`*"] pub type MimeTypeArray; - # [wasm_bindgen (structural , method , getter , js_class = "MimeTypeArray" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MimeTypeArray", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/length)"] @@ -19,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`*"] pub fn length(this: &MimeTypeArray) -> u32; #[cfg(feature = "MimeType")] - # [wasm_bindgen (method , structural , js_class = "MimeTypeArray" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "MimeTypeArray", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/item)"] @@ -27,7 +37,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] pub fn item(this: &MimeTypeArray, index: u32) -> Option; #[cfg(feature = "MimeType")] - # [wasm_bindgen (method , structural , js_class = "MimeTypeArray" , js_name = namedItem)] + #[wasm_bindgen(method, structural, js_class = "MimeTypeArray", js_name = "namedItem")] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/namedItem)"] diff --git a/crates/web-sys/src/features/gen_MouseEvent.rs b/crates/web-sys/src/features/gen_MouseEvent.rs index 3a44e137e7a..5980a7915d1 100644 --- a/crates/web-sys/src/features/gen_MouseEvent.rs +++ b/crates/web-sys/src/features/gen_MouseEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseEvent , typescript_type = "MouseEvent")] + #[wasm_bindgen( + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "MouseEvent", + typescript_type = "MouseEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MouseEvent` class."] #[doc = ""] @@ -11,98 +17,170 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub type MouseEvent; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = screenX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "screenX" + )] #[doc = "Getter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn screen_x(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = screenY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "screenY" + )] #[doc = "Getter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn screen_y(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = clientX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "clientX" + )] #[doc = "Getter for the `clientX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn client_x(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = clientY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "clientY" + )] #[doc = "Getter for the `clientY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn client_y(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "MouseEvent", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn x(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "MouseEvent", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn y(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = offsetX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "offsetX" + )] #[doc = "Getter for the `offsetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn offset_x(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = offsetY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "offsetY" + )] #[doc = "Getter for the `offsetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn offset_y(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = ctrlKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "ctrlKey" + )] #[doc = "Getter for the `ctrlKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn ctrl_key(this: &MouseEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = shiftKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "shiftKey" + )] #[doc = "Getter for the `shiftKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn shift_key(this: &MouseEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = altKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "altKey" + )] #[doc = "Getter for the `altKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/altKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn alt_key(this: &MouseEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = metaKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "metaKey" + )] #[doc = "Getter for the `metaKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn meta_key(this: &MouseEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = button)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "button" + )] #[doc = "Getter for the `button` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn button(this: &MouseEvent) -> i16; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = buttons)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "buttons" + )] #[doc = "Getter for the `buttons` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons)"] @@ -110,28 +188,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn buttons(this: &MouseEvent) -> u16; #[cfg(feature = "EventTarget")] - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = relatedTarget)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "relatedTarget" + )] #[doc = "Getter for the `relatedTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`*"] pub fn related_target(this: &MouseEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = region)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "region" + )] #[doc = "Getter for the `region` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = movementX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "movementX" + )] #[doc = "Getter for the `movementX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn movement_x(this: &MouseEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = movementY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseEvent", + js_name = "movementY" + )] #[doc = "Getter for the `movementY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY)"] @@ -156,21 +258,36 @@ extern "C" { type_arg: &str, mouse_event_init_dict: &MouseEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = getModifierState)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "getModifierState" + )] #[doc = "The `getModifierState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/getModifierState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn get_modifier_state(this: &MouseEvent, key_arg: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn init_mouse_event(this: &MouseEvent, type_arg: &str); - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -181,7 +298,12 @@ extern "C" { type_arg: &str, can_bubble_arg: bool, ); - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -194,7 +316,12 @@ extern "C" { cancelable_arg: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -208,7 +335,12 @@ extern "C" { view_arg: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -223,7 +355,12 @@ extern "C" { detail_arg: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -239,7 +376,12 @@ extern "C" { screen_x_arg: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -256,7 +398,12 @@ extern "C" { screen_y_arg: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -274,7 +421,12 @@ extern "C" { client_x_arg: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -293,7 +445,12 @@ extern "C" { client_y_arg: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -313,7 +470,12 @@ extern "C" { ctrl_key_arg: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -334,7 +496,12 @@ extern "C" { alt_key_arg: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -356,7 +523,12 @@ extern "C" { shift_key_arg: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -379,7 +551,12 @@ extern "C" { meta_key_arg: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] @@ -403,7 +580,12 @@ extern "C" { button_arg: i16, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseEvent", + js_name = "initMouseEvent" + )] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] diff --git a/crates/web-sys/src/features/gen_MouseEventInit.rs b/crates/web-sys/src/features/gen_MouseEventInit.rs index def45c9f43b..86bc6291900 100644 --- a/crates/web-sys/src/features/gen_MouseEventInit.rs +++ b/crates/web-sys/src/features/gen_MouseEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MouseEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MouseEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MouseEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MouseScrollEvent.rs b/crates/web-sys/src/features/gen_MouseScrollEvent.rs index 01d2970113b..4543fbdeee4 100644 --- a/crates/web-sys/src/features/gen_MouseScrollEvent.rs +++ b/crates/web-sys/src/features/gen_MouseScrollEvent.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseScrollEvent , typescript_type = "MouseScrollEvent")] + #[wasm_bindgen( + extends = "MouseEvent", + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "MouseScrollEvent", + typescript_type = "MouseScrollEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MouseScrollEvent` class."] #[doc = ""] @@ -11,21 +18,37 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub type MouseScrollEvent; - # [wasm_bindgen (structural , method , getter , js_class = "MouseScrollEvent" , js_name = axis)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MouseScrollEvent", + js_name = "axis" + )] #[doc = "Getter for the `axis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/axis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub fn axis(this: &MouseScrollEvent) -> i32; - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub fn init_mouse_scroll_event(this: &MouseScrollEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -36,7 +59,12 @@ extern "C" { type_: &str, can_bubble: bool, ); - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -49,7 +77,12 @@ extern "C" { cancelable: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -63,7 +96,12 @@ extern "C" { view: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -78,7 +116,12 @@ extern "C" { detail: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -94,7 +137,12 @@ extern "C" { screen_x: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -111,7 +159,12 @@ extern "C" { screen_y: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -129,7 +182,12 @@ extern "C" { client_x: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -148,7 +206,12 @@ extern "C" { client_y: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -168,7 +231,12 @@ extern "C" { ctrl_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -189,7 +257,12 @@ extern "C" { alt_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -211,7 +284,12 @@ extern "C" { shift_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -234,7 +312,12 @@ extern "C" { meta_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -258,7 +341,12 @@ extern "C" { button: i16, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] @@ -283,7 +371,12 @@ extern "C" { related_target: Option<&EventTarget>, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "MouseScrollEvent", + js_name = "initMouseScrollEvent" + )] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] diff --git a/crates/web-sys/src/features/gen_MozDebug.rs b/crates/web-sys/src/features/gen_MozDebug.rs index 6d83c97f3a2..750dad96378 100644 --- a/crates/web-sys/src/features/gen_MozDebug.rs +++ b/crates/web-sys/src/features/gen_MozDebug.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = MOZ_debug , typescript_type = "MOZ_debug")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "MOZ_debug" , typescript_type = "MOZ_debug")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MozDebug` class."] #[doc = ""] @@ -11,7 +11,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] pub type MozDebug; - # [wasm_bindgen (catch , method , structural , js_class = "MOZ_debug" , js_name = getParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MOZ_debug", + js_name = "getParameter" + )] #[doc = "The `getParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MOZ_debug/getParameter)"] diff --git a/crates/web-sys/src/features/gen_MutationEvent.rs b/crates/web-sys/src/features/gen_MutationEvent.rs index 72f7bc9ad18..802d6c247cc 100644 --- a/crates/web-sys/src/features/gen_MutationEvent.rs +++ b/crates/web-sys/src/features/gen_MutationEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MutationEvent , typescript_type = "MutationEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "MutationEvent", + typescript_type = "MutationEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationEvent` class."] #[doc = ""] @@ -12,49 +17,91 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub type MutationEvent; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = relatedNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationEvent", + js_name = "relatedNode" + )] #[doc = "Getter for the `relatedNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/relatedNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] pub fn related_node(this: &MutationEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = prevValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationEvent", + js_name = "prevValue" + )] #[doc = "Getter for the `prevValue` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = newValue)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = attrName)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = attrChange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationEvent", + js_name = "attrChange" + )] #[doc = "Getter for the `attrChange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/attrChange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn attr_change(this: &MutationEvent) -> u16; - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn init_mutation_event(this: &MutationEvent, type_: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] @@ -65,7 +112,13 @@ extern "C" { type_: &str, can_bubble: bool, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] @@ -78,7 +131,13 @@ extern "C" { cancelable: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] @@ -92,7 +151,13 @@ extern "C" { related_node: Option<&Node>, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] @@ -107,7 +172,13 @@ extern "C" { prev_value: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] @@ -123,7 +194,13 @@ extern "C" { new_value: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] @@ -140,7 +217,13 @@ extern "C" { attr_name: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationEvent", + js_name = "initMutationEvent" + )] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] diff --git a/crates/web-sys/src/features/gen_MutationObserver.rs b/crates/web-sys/src/features/gen_MutationObserver.rs index c9ce64ea260..997b1bb3b0b 100644 --- a/crates/web-sys/src/features/gen_MutationObserver.rs +++ b/crates/web-sys/src/features/gen_MutationObserver.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationObserver , typescript_type = "MutationObserver")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MutationObserver", + typescript_type = "MutationObserver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationObserver` class."] #[doc = ""] @@ -18,7 +22,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] pub fn new(mutation_callback: &::js_sys::Function) -> Result; - # [wasm_bindgen (method , structural , js_class = "MutationObserver" , js_name = disconnect)] + #[wasm_bindgen( + method, + structural, + js_class = "MutationObserver", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/disconnect)"] @@ -26,7 +35,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] pub fn disconnect(this: &MutationObserver); #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "MutationObserver" , js_name = observe)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationObserver", + js_name = "observe" + )] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe)"] @@ -34,7 +49,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationObserver`, `Node`*"] pub fn observe(this: &MutationObserver, target: &Node) -> Result<(), JsValue>; #[cfg(all(feature = "MutationObserverInit", feature = "Node",))] - # [wasm_bindgen (catch , method , structural , js_class = "MutationObserver" , js_name = observe)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "MutationObserver", + js_name = "observe" + )] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe)"] @@ -45,7 +66,12 @@ extern "C" { target: &Node, options: &MutationObserverInit, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "MutationObserver" , js_name = takeRecords)] + #[wasm_bindgen( + method, + structural, + js_class = "MutationObserver", + js_name = "takeRecords" + )] #[doc = "The `takeRecords()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/takeRecords)"] diff --git a/crates/web-sys/src/features/gen_MutationObserverInit.rs b/crates/web-sys/src/features/gen_MutationObserverInit.rs index fb3aac8010e..5c22d76c8bb 100644 --- a/crates/web-sys/src/features/gen_MutationObserverInit.rs +++ b/crates/web-sys/src/features/gen_MutationObserverInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationObserverInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MutationObserverInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationObserverInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MutationObservingInfo.rs b/crates/web-sys/src/features/gen_MutationObservingInfo.rs index 96178ea3ade..330c2872773 100644 --- a/crates/web-sys/src/features/gen_MutationObservingInfo.rs +++ b/crates/web-sys/src/features/gen_MutationObservingInfo.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationObservingInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "MutationObservingInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationObservingInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MutationRecord.rs b/crates/web-sys/src/features/gen_MutationRecord.rs index 2a9e4c36511..cf4dcc4c85f 100644 --- a/crates/web-sys/src/features/gen_MutationRecord.rs +++ b/crates/web-sys/src/features/gen_MutationRecord.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationRecord , typescript_type = "MutationRecord")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "MutationRecord", + typescript_type = "MutationRecord" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationRecord` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] pub type MutationRecord; - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationRecord", + 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/MutationRecord/type)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] pub fn type_(this: &MutationRecord) -> String; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationRecord", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/target)"] @@ -27,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] pub fn target(this: &MutationRecord) -> Option; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = addedNodes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationRecord", + js_name = "addedNodes" + )] #[doc = "Getter for the `addedNodes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/addedNodes)"] @@ -35,7 +57,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"] pub fn added_nodes(this: &MutationRecord) -> NodeList; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = removedNodes)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationRecord", + js_name = "removedNodes" + )] #[doc = "Getter for the `removedNodes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/removedNodes)"] @@ -43,7 +71,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"] pub fn removed_nodes(this: &MutationRecord) -> NodeList; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = previousSibling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationRecord", + js_name = "previousSibling" + )] #[doc = "Getter for the `previousSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/previousSibling)"] @@ -51,28 +85,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] pub fn previous_sibling(this: &MutationRecord) -> Option; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = nextSibling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationRecord", + js_name = "nextSibling" + )] #[doc = "Getter for the `nextSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/nextSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] pub fn next_sibling(this: &MutationRecord) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = attributeName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "MutationRecord", + js_name = "attributeName" + )] #[doc = "Getter for the `attributeName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = attributeNamespace)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = oldValue)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_NamedNodeMap.rs b/crates/web-sys/src/features/gen_NamedNodeMap.rs index ee2d2e0435c..586482b03fa 100644 --- a/crates/web-sys/src/features/gen_NamedNodeMap.rs +++ b/crates/web-sys/src/features/gen_NamedNodeMap.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NamedNodeMap , typescript_type = "NamedNodeMap")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "NamedNodeMap", + typescript_type = "NamedNodeMap" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NamedNodeMap` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"] pub type NamedNodeMap; - # [wasm_bindgen (structural , method , getter , js_class = "NamedNodeMap" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NamedNodeMap", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/length)"] @@ -19,7 +29,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"] pub fn length(this: &NamedNodeMap) -> u32; #[cfg(feature = "Attr")] - # [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = getNamedItem)] + #[wasm_bindgen( + method, + structural, + js_class = "NamedNodeMap", + js_name = "getNamedItem" + )] #[doc = "The `getNamedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItem)"] @@ -27,7 +42,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn get_named_item(this: &NamedNodeMap, name: &str) -> Option; #[cfg(feature = "Attr")] - # [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = getNamedItemNS)] + #[wasm_bindgen( + method, + structural, + js_class = "NamedNodeMap", + js_name = "getNamedItemNS" + )] #[doc = "The `getNamedItemNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItemNS)"] @@ -39,7 +59,7 @@ extern "C" { local_name: &str, ) -> Option; #[cfg(feature = "Attr")] - # [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "NamedNodeMap", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/item)"] @@ -47,7 +67,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn item(this: &NamedNodeMap, index: u32) -> Option; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "NamedNodeMap", + js_name = "removeNamedItem" + )] #[doc = "The `removeNamedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItem)"] @@ -55,7 +81,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn remove_named_item(this: &NamedNodeMap, name: &str) -> Result; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItemNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "NamedNodeMap", + js_name = "removeNamedItemNS" + )] #[doc = "The `removeNamedItemNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItemNS)"] @@ -67,7 +99,13 @@ extern "C" { local_name: &str, ) -> Result; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "NamedNodeMap", + js_name = "setNamedItem" + )] #[doc = "The `setNamedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItem)"] @@ -75,7 +113,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn set_named_item(this: &NamedNodeMap, arg: &Attr) -> Result, JsValue>; #[cfg(feature = "Attr")] - # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItemNS)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "NamedNodeMap", + js_name = "setNamedItemNS" + )] #[doc = "The `setNamedItemNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItemNS)"] diff --git a/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs b/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs index 1c1354d2200..580751676ae 100644 --- a/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs +++ b/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NativeOSFileReadOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "NativeOSFileReadOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NativeOsFileReadOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs b/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs index a06f19128cb..dbc5ae342e9 100644 --- a/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs +++ b/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NativeOSFileWriteAtomicOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "NativeOSFileWriteAtomicOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NativeOsFileWriteAtomicOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Navigator.rs b/crates/web-sys/src/features/gen_Navigator.rs index 19e76045e3c..6a696e39296 100644 --- a/crates/web-sys/src/features/gen_Navigator.rs +++ b/crates/web-sys/src/features/gen_Navigator.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Navigator , typescript_type = "Navigator")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Navigator", + typescript_type = "Navigator" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Navigator` class."] #[doc = ""] @@ -12,7 +16,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub type Navigator; #[cfg(feature = "Permissions")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = permissions)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "permissions" + )] #[doc = "Getter for the `permissions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/permissions)"] @@ -20,7 +31,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Permissions`*"] pub fn permissions(this: &Navigator) -> Result; #[cfg(feature = "MimeTypeArray")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = mimeTypes)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "mimeTypes" + )] #[doc = "Getter for the `mimeTypes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mimeTypes)"] @@ -28,21 +46,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`, `Navigator`*"] pub fn mime_types(this: &Navigator) -> Result; #[cfg(feature = "PluginArray")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = plugins)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "plugins" + )] #[doc = "Getter for the `plugins` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/plugins)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `PluginArray`*"] pub fn plugins(this: &Navigator) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = doNotTrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "doNotTrack" + )] #[doc = "Getter for the `doNotTrack` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = maxTouchPoints)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "maxTouchPoints" + )] #[doc = "Getter for the `maxTouchPoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints)"] @@ -50,7 +87,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn max_touch_points(this: &Navigator) -> i32; #[cfg(feature = "MediaCapabilities")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = mediaCapabilities)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "mediaCapabilities" + )] #[doc = "Getter for the `mediaCapabilities` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaCapabilities)"] @@ -58,14 +101,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `Navigator`*"] pub fn media_capabilities(this: &Navigator) -> MediaCapabilities; #[cfg(feature = "NetworkInformation")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = connection)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "connection" + )] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `NetworkInformation`*"] pub fn connection(this: &Navigator) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = activeVRDisplays)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "activeVRDisplays" + )] #[doc = "Getter for the `activeVRDisplays` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/activeVRDisplays)"] @@ -73,7 +129,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn active_vr_displays(this: &Navigator) -> ::js_sys::Array; #[cfg(feature = "MediaDevices")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = mediaDevices)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "mediaDevices" + )] #[doc = "Getter for the `mediaDevices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices)"] @@ -81,7 +144,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `Navigator`*"] pub fn media_devices(this: &Navigator) -> Result; #[cfg(feature = "ServiceWorkerContainer")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = serviceWorker)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "serviceWorker" + )] #[doc = "Getter for the `serviceWorker` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serviceWorker)"] @@ -89,7 +158,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ServiceWorkerContainer`*"] pub fn service_worker(this: &Navigator) -> ServiceWorkerContainer; #[cfg(feature = "Presentation")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = presentation)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "presentation" + )] #[doc = "Getter for the `presentation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/presentation)"] @@ -97,7 +173,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Presentation`*"] pub fn presentation(this: &Navigator) -> Result, JsValue>; #[cfg(feature = "CredentialsContainer")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = credentials)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "credentials" + )] #[doc = "Getter for the `credentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/credentials)"] @@ -106,7 +188,13 @@ extern "C" { pub fn credentials(this: &Navigator) -> CredentialsContainer; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Bluetooth")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = bluetooth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "bluetooth" + )] #[doc = "Getter for the `bluetooth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/bluetooth)"] @@ -118,7 +206,13 @@ extern "C" { pub fn bluetooth(this: &Navigator) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Clipboard")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = clipboard)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "clipboard" + )] #[doc = "Getter for the `clipboard` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard)"] @@ -130,7 +224,13 @@ extern "C" { pub fn clipboard(this: &Navigator) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WakeLock")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = wakeLock)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "wakeLock" + )] #[doc = "Getter for the `wakeLock` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/wakeLock)"] @@ -142,7 +242,7 @@ extern "C" { pub fn wake_lock(this: &Navigator) -> WakeLock; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Hid")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = hid)] + #[wasm_bindgen(structural, method, getter, js_class = "Navigator", js_name = "hid")] #[doc = "Getter for the `hid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hid)"] @@ -154,7 +254,7 @@ extern "C" { pub fn hid(this: &Navigator) -> Hid; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Usb")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = usb)] + #[wasm_bindgen(structural, method, getter, js_class = "Navigator", js_name = "usb")] #[doc = "Getter for the `usb` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/usb)"] @@ -166,7 +266,7 @@ extern "C" { pub fn usb(this: &Navigator) -> Usb; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSystem")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = xr)] + #[wasm_bindgen(structural, method, getter, js_class = "Navigator", js_name = "xr")] #[doc = "Getter for the `xr` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/xr)"] @@ -176,7 +276,13 @@ 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)*"] pub fn xr(this: &Navigator) -> XrSystem; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = hardwareConcurrency)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "hardwareConcurrency" + )] #[doc = "Getter for the `hardwareConcurrency` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency)"] @@ -185,7 +291,7 @@ extern "C" { pub fn hardware_concurrency(this: &Navigator) -> f64; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Gpu")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = gpu)] + #[wasm_bindgen(structural, method, getter, js_class = "Navigator", js_name = "gpu")] #[doc = "Getter for the `gpu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/gpu)"] @@ -196,70 +302,129 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gpu(this: &Navigator) -> Gpu; #[cfg(feature = "Geolocation")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = geolocation)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "geolocation" + )] #[doc = "Getter for the `geolocation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `Navigator`*"] pub fn geolocation(this: &Navigator) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = appCodeName)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Navigator", + js_name = "appCodeName" + )] #[doc = "Getter for the `appCodeName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = appName)] + #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = appVersion)] + #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = platform)] + #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = userAgent)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = product)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = language)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = languages)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "languages" + )] #[doc = "Getter for the `languages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn languages(this: &Navigator) -> ::js_sys::Array; - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = onLine)] + #[wasm_bindgen(structural, method, getter, js_class = "Navigator", js_name = "onLine")] #[doc = "Getter for the `onLine` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine)"] @@ -267,7 +432,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn on_line(this: &Navigator) -> bool; #[cfg(feature = "StorageManager")] - # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = storage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Navigator", + js_name = "storage" + )] #[doc = "Getter for the `storage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/storage)"] @@ -275,7 +446,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`, `StorageManager`*"] pub fn storage(this: &Navigator) -> StorageManager; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = canShare)] + #[wasm_bindgen(method, structural, js_class = "Navigator", js_name = "canShare")] #[doc = "The `canShare()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare)"] @@ -287,7 +458,7 @@ extern "C" { pub fn can_share(this: &Navigator) -> bool; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ShareData")] - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = canShare)] + #[wasm_bindgen(method, structural, js_class = "Navigator", js_name = "canShare")] #[doc = "The `canShare()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare)"] @@ -297,14 +468,26 @@ 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)*"] pub fn can_share_with_data(this: &Navigator, data: &ShareData) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = getGamepads)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "getGamepads" + )] #[doc = "The `getGamepads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn get_gamepads(this: &Navigator) -> Result<::js_sys::Array, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = getVRDisplays)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "getVRDisplays" + )] #[doc = "The `getVRDisplays()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getVRDisplays)"] @@ -312,14 +495,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn get_vr_displays(this: &Navigator) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "GamepadServiceTest")] - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestGamepadServiceTest)] + #[wasm_bindgen( + method, + structural, + js_class = "Navigator", + js_name = "requestGamepadServiceTest" + )] #[doc = "The `requestGamepadServiceTest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestGamepadServiceTest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`, `Navigator`*"] pub fn request_gamepad_service_test(this: &Navigator) -> GamepadServiceTest; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "requestMIDIAccess" + )] #[doc = "The `requestMIDIAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"] @@ -327,7 +521,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn request_midi_access(this: &Navigator) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MidiOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "requestMIDIAccess" + )] #[doc = "The `requestMIDIAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"] @@ -337,7 +537,12 @@ extern "C" { this: &Navigator, options: &MidiOptions, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestMediaKeySystemAccess)] + #[wasm_bindgen( + method, + structural, + js_class = "Navigator", + js_name = "requestMediaKeySystemAccess" + )] #[doc = "The `requestMediaKeySystemAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess)"] @@ -349,14 +554,25 @@ extern "C" { supported_configurations: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(feature = "VrServiceTest")] - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestVRServiceTest)] + #[wasm_bindgen( + method, + structural, + js_class = "Navigator", + js_name = "requestVRServiceTest" + )] #[doc = "The `requestVRServiceTest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestVRServiceTest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `VrServiceTest`*"] pub fn request_vr_service_test(this: &Navigator) -> VrServiceTest; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -364,7 +580,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn send_beacon(this: &Navigator, url: &str) -> Result; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -375,7 +597,13 @@ extern "C" { url: &str, data: Option<&Blob>, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -386,7 +614,13 @@ extern "C" { url: &str, data: Option<&::js_sys::Object>, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -398,7 +632,13 @@ extern "C" { data: Option<&mut [u8]>, ) -> Result; #[cfg(feature = "FormData")] - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -410,7 +650,13 @@ extern "C" { data: Option<&FormData>, ) -> Result; #[cfg(feature = "UrlSearchParams")] - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -421,7 +667,13 @@ extern "C" { url: &str, data: Option<&UrlSearchParams>, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -433,7 +685,13 @@ extern "C" { data: Option<&str>, ) -> Result; #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "sendBeacon" + )] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] @@ -445,7 +703,7 @@ extern "C" { data: Option<&ReadableStream>, ) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = share)] + #[wasm_bindgen(method, structural, js_class = "Navigator", js_name = "share")] #[doc = "The `share()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share)"] @@ -457,7 +715,7 @@ extern "C" { pub fn share(this: &Navigator) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ShareData")] - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = share)] + #[wasm_bindgen(method, structural, js_class = "Navigator", js_name = "share")] #[doc = "The `share()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share)"] @@ -467,21 +725,27 @@ 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)*"] pub fn share_with_data(this: &Navigator, data: &ShareData) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = vibrate)] + #[wasm_bindgen(method, structural, js_class = "Navigator", js_name = "vibrate")] #[doc = "The `vibrate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn vibrate_with_duration(this: &Navigator, duration: u32) -> bool; - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = vibrate)] + #[wasm_bindgen(method, structural, js_class = "Navigator", js_name = "vibrate")] #[doc = "The `vibrate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn vibrate_with_pattern(this: &Navigator, pattern: &::wasm_bindgen::JsValue) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = registerContentHandler)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "registerContentHandler" + )] #[doc = "The `registerContentHandler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerContentHandler)"] @@ -493,7 +757,13 @@ extern "C" { url: &str, title: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = registerProtocolHandler)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Navigator", + js_name = "registerProtocolHandler" + )] #[doc = "The `registerProtocolHandler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)"] @@ -505,7 +775,7 @@ extern "C" { url: &str, title: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = taintEnabled)] + #[wasm_bindgen(method, structural, js_class = "Navigator", js_name = "taintEnabled")] #[doc = "The `taintEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/taintEnabled)"] diff --git a/crates/web-sys/src/features/gen_NavigatorAutomationInformation.rs b/crates/web-sys/src/features/gen_NavigatorAutomationInformation.rs index c1fbff681af..0a5493a12d3 100644 --- a/crates/web-sys/src/features/gen_NavigatorAutomationInformation.rs +++ b/crates/web-sys/src/features/gen_NavigatorAutomationInformation.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = NavigatorAutomationInformation , typescript_type = "NavigatorAutomationInformation")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "NavigatorAutomationInformation" , typescript_type = "NavigatorAutomationInformation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NavigatorAutomationInformation` class."] #[doc = ""] @@ -11,7 +11,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorAutomationInformation`*"] pub type NavigatorAutomationInformation; - # [wasm_bindgen (structural , method , getter , js_class = "NavigatorAutomationInformation" , js_name = webdriver)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NavigatorAutomationInformation", + js_name = "webdriver" + )] #[doc = "Getter for the `webdriver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorAutomationInformation/webdriver)"] diff --git a/crates/web-sys/src/features/gen_NetworkCommandOptions.rs b/crates/web-sys/src/features/gen_NetworkCommandOptions.rs index dbf06652e5d..96dd878059a 100644 --- a/crates/web-sys/src/features/gen_NetworkCommandOptions.rs +++ b/crates/web-sys/src/features/gen_NetworkCommandOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkCommandOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "NetworkCommandOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NetworkCommandOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NetworkInformation.rs b/crates/web-sys/src/features/gen_NetworkInformation.rs index 3669e4c774b..225fd1c283b 100644 --- a/crates/web-sys/src/features/gen_NetworkInformation.rs +++ b/crates/web-sys/src/features/gen_NetworkInformation.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = NetworkInformation , typescript_type = "NetworkInformation")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "NetworkInformation", + typescript_type = "NetworkInformation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NetworkInformation` class."] #[doc = ""] @@ -12,21 +17,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] pub type NetworkInformation; #[cfg(feature = "ConnectionType")] - # [wasm_bindgen (structural , method , getter , js_class = "NetworkInformation" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NetworkInformation", + 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/NetworkInformation/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnectionType`, `NetworkInformation`*"] pub fn type_(this: &NetworkInformation) -> ConnectionType; - # [wasm_bindgen (structural , method , getter , js_class = "NetworkInformation" , js_name = ontypechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NetworkInformation", + js_name = "ontypechange" + )] #[doc = "Getter for the `ontypechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] pub fn ontypechange(this: &NetworkInformation) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "NetworkInformation" , js_name = ontypechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "NetworkInformation", + js_name = "ontypechange" + )] #[doc = "Setter for the `ontypechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"] diff --git a/crates/web-sys/src/features/gen_NetworkResultOptions.rs b/crates/web-sys/src/features/gen_NetworkResultOptions.rs index 8e21219814d..178208958ba 100644 --- a/crates/web-sys/src/features/gen_NetworkResultOptions.rs +++ b/crates/web-sys/src/features/gen_NetworkResultOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkResultOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "NetworkResultOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NetworkResultOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Node.rs b/crates/web-sys/src/features/gen_Node.rs index f9acb1f9f8a..9302f09fc65 100644 --- a/crates/web-sys/src/features/gen_Node.rs +++ b/crates/web-sys/src/features/gen_Node.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Node , typescript_type = "Node")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Node", + typescript_type = "Node" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Node` class."] #[doc = ""] @@ -11,28 +16,35 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub type Node; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nodeType)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "nodeType")] #[doc = "Getter for the `nodeType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn node_type(this: &Node) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nodeName)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "nodeName")] #[doc = "Getter for the `nodeName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Node" , js_name = baseURI)] + #[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>; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = isConnected)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "isConnected")] #[doc = "Getter for the `isConnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected)"] @@ -40,14 +52,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_connected(this: &Node) -> bool; #[cfg(feature = "Document")] - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = ownerDocument)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Node", + js_name = "ownerDocument" + )] #[doc = "Getter for the `ownerDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Node`*"] pub fn owner_document(this: &Node) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = parentNode)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "parentNode")] #[doc = "Getter for the `parentNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/parentNode)"] @@ -55,7 +73,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn parent_node(this: &Node) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = parentElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Node", + js_name = "parentElement" + )] #[doc = "Getter for the `parentElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/parentElement)"] @@ -63,105 +87,116 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `Node`*"] pub fn parent_element(this: &Node) -> Option; #[cfg(feature = "NodeList")] - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = childNodes)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "childNodes")] #[doc = "Getter for the `childNodes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] pub fn child_nodes(this: &Node) -> NodeList; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = firstChild)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "firstChild")] #[doc = "Getter for the `firstChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/firstChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn first_child(this: &Node) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = lastChild)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "lastChild")] #[doc = "Getter for the `lastChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lastChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn last_child(this: &Node) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = previousSibling)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Node", + js_name = "previousSibling" + )] #[doc = "Getter for the `previousSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/previousSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn previous_sibling(this: &Node) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nextSibling)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "nextSibling")] #[doc = "Getter for the `nextSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nextSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn next_sibling(this: &Node) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nodeValue)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "nodeValue")] #[doc = "Getter for the `nodeValue` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Node" , js_name = nodeValue)] + #[wasm_bindgen(structural, method, setter, js_class = "Node", js_name = "nodeValue")] #[doc = "Setter for the `nodeValue` field of this object."] #[doc = ""] #[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 set_node_value(this: &Node, value: Option<&str>); - # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = textContent)] + #[wasm_bindgen(structural, method, getter, js_class = "Node", js_name = "textContent")] #[doc = "Getter for the `textContent` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "Node" , js_name = textContent)] + #[wasm_bindgen(structural, method, setter, js_class = "Node", js_name = "textContent")] #[doc = "Setter for the `textContent` field of this object."] #[doc = ""] #[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 set_text_content(this: &Node, value: Option<&str>); - # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = appendChild)] + #[wasm_bindgen(catch, method, structural, js_class = "Node", js_name = "appendChild")] #[doc = "The `appendChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn append_child(this: &Node, node: &Node) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = cloneNode)] + #[wasm_bindgen(catch, method, structural, js_class = "Node", js_name = "cloneNode")] #[doc = "The `cloneNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn clone_node(this: &Node) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = cloneNode)] + #[wasm_bindgen(catch, method, structural, js_class = "Node", js_name = "cloneNode")] #[doc = "The `cloneNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn clone_node_with_deep(this: &Node, deep: bool) -> Result; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = compareDocumentPosition)] + #[wasm_bindgen( + method, + structural, + js_class = "Node", + js_name = "compareDocumentPosition" + )] #[doc = "The `compareDocumentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn compare_document_position(this: &Node, other: &Node) -> u16; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = contains)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "contains")] #[doc = "The `contains()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/contains)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn contains(this: &Node, other: Option<&Node>) -> bool; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = getRootNode)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "getRootNode")] #[doc = "The `getRootNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode)"] @@ -169,77 +204,77 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn get_root_node(this: &Node) -> Node; #[cfg(feature = "GetRootNodeOptions")] - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = getRootNode)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "getRootNode")] #[doc = "The `getRootNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`, `Node`*"] pub fn get_root_node_with_options(this: &Node, options: &GetRootNodeOptions) -> Node; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = hasChildNodes)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "hasChildNodes")] #[doc = "The `hasChildNodes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/hasChildNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn has_child_nodes(this: &Node) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = insertBefore)] + #[wasm_bindgen(catch, method, structural, js_class = "Node", js_name = "insertBefore")] #[doc = "The `insertBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn insert_before(this: &Node, node: &Node, child: Option<&Node>) -> Result; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = isDefaultNamespace)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "isDefaultNamespace")] #[doc = "The `isDefaultNamespace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isDefaultNamespace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_default_namespace(this: &Node, namespace: Option<&str>) -> bool; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = isEqualNode)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "isEqualNode")] #[doc = "The `isEqualNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isEqualNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_equal_node(this: &Node, node: Option<&Node>) -> bool; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = isSameNode)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "isSameNode")] #[doc = "The `isSameNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isSameNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_same_node(this: &Node, node: Option<&Node>) -> bool; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = lookupNamespaceURI)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "lookupNamespaceURI")] #[doc = "The `lookupNamespaceURI()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = lookupPrefix)] + #[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; - # [wasm_bindgen (method , structural , js_class = "Node" , js_name = normalize)] + #[wasm_bindgen(method, structural, js_class = "Node", js_name = "normalize")] #[doc = "The `normalize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/normalize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn normalize(this: &Node); - # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = removeChild)] + #[wasm_bindgen(catch, method, structural, js_class = "Node", js_name = "removeChild")] #[doc = "The `removeChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn remove_child(this: &Node, child: &Node) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = replaceChild)] + #[wasm_bindgen(catch, method, structural, js_class = "Node", js_name = "replaceChild")] #[doc = "The `replaceChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/replaceChild)"] diff --git a/crates/web-sys/src/features/gen_NodeFilter.rs b/crates/web-sys/src/features/gen_NodeFilter.rs index 7a1d400c12e..bc050fc2d94 100644 --- a/crates/web-sys/src/features/gen_NodeFilter.rs +++ b/crates/web-sys/src/features/gen_NodeFilter.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NodeFilter)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "NodeFilter")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NodeFilter` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NodeIterator.rs b/crates/web-sys/src/features/gen_NodeIterator.rs index 1e32cc05f1b..d3df6f48cee 100644 --- a/crates/web-sys/src/features/gen_NodeIterator.rs +++ b/crates/web-sys/src/features/gen_NodeIterator.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NodeIterator , typescript_type = "NodeIterator")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "NodeIterator", + typescript_type = "NodeIterator" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NodeIterator` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub type NodeIterator; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = root)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NodeIterator", + js_name = "root" + )] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/root)"] @@ -20,21 +30,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] pub fn root(this: &NodeIterator) -> Node; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = referenceNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NodeIterator", + js_name = "referenceNode" + )] #[doc = "Getter for the `referenceNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/referenceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] pub fn reference_node(this: &NodeIterator) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = pointerBeforeReferenceNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NodeIterator", + js_name = "pointerBeforeReferenceNode" + )] #[doc = "Getter for the `pointerBeforeReferenceNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/pointerBeforeReferenceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub fn pointer_before_reference_node(this: &NodeIterator) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = whatToShow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NodeIterator", + js_name = "whatToShow" + )] #[doc = "Getter for the `whatToShow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/whatToShow)"] @@ -42,14 +70,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub fn what_to_show(this: &NodeIterator) -> u32; #[cfg(feature = "NodeFilter")] - # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = filter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NodeIterator", + js_name = "filter" + )] #[doc = "Getter for the `filter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`, `NodeIterator`*"] pub fn filter(this: &NodeIterator) -> Option; - # [wasm_bindgen (method , structural , js_class = "NodeIterator" , js_name = detach)] + #[wasm_bindgen(method, structural, js_class = "NodeIterator", js_name = "detach")] #[doc = "The `detach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/detach)"] @@ -57,7 +91,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub fn detach(this: &NodeIterator); #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "NodeIterator" , js_name = nextNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "NodeIterator", + js_name = "nextNode" + )] #[doc = "The `nextNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/nextNode)"] @@ -65,7 +105,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] pub fn next_node(this: &NodeIterator) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "NodeIterator" , js_name = previousNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "NodeIterator", + js_name = "previousNode" + )] #[doc = "The `previousNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/previousNode)"] diff --git a/crates/web-sys/src/features/gen_NodeList.rs b/crates/web-sys/src/features/gen_NodeList.rs index b3bf91ef515..1004a513995 100644 --- a/crates/web-sys/src/features/gen_NodeList.rs +++ b/crates/web-sys/src/features/gen_NodeList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NodeList , typescript_type = "NodeList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "NodeList", + typescript_type = "NodeList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NodeList` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub type NodeList; - # [wasm_bindgen (structural , method , getter , js_class = "NodeList" , js_name = length)] + #[wasm_bindgen(structural, method, getter, js_class = "NodeList", js_name = "length")] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/length)"] @@ -19,7 +23,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub fn length(this: &NodeList) -> u32; #[cfg(feature = "Node")] - # [wasm_bindgen (method , structural , js_class = "NodeList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "NodeList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/item)"] diff --git a/crates/web-sys/src/features/gen_Notification.rs b/crates/web-sys/src/features/gen_Notification.rs index 2d3c7717d66..4a3fd1a6a33 100644 --- a/crates/web-sys/src/features/gen_Notification.rs +++ b/crates/web-sys/src/features/gen_Notification.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Notification , typescript_type = "Notification")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Notification", + typescript_type = "Notification" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Notification` class."] #[doc = ""] @@ -12,70 +17,130 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub type Notification; #[cfg(feature = "NotificationPermission")] - # [wasm_bindgen (structural , static_method_of = Notification , getter , js_class = "Notification" , js_name = permission)] + #[wasm_bindgen( + structural, + static_method_of = "Notification", + getter, + js_class = "Notification", + js_name = "permission" + )] #[doc = "Getter for the `permission` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationPermission`*"] pub fn permission() -> NotificationPermission; - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + js_name = "onclick" + )] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onclick(this: &Notification) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Notification", + js_name = "onclick" + )] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onclick(this: &Notification, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onshow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + js_name = "onshow" + )] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onshow(this: &Notification) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onshow)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Notification", + js_name = "onshow" + )] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onshow(this: &Notification, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onerror(this: &Notification) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Notification", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onerror(this: &Notification, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onclose(this: &Notification) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Notification", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onclose(this: &Notification, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = title)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + 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/Notification/title)"] @@ -83,49 +148,79 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn title(this: &Notification) -> String; #[cfg(feature = "NotificationDirection")] - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = dir)] + #[wasm_bindgen(structural, method, getter, js_class = "Notification", js_name = "dir")] #[doc = "Getter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationDirection`*"] pub fn dir(this: &Notification) -> NotificationDirection; - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = lang)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + 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/Notification/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn lang(this: &Notification) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = body)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = tag)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = icon)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = requireInteraction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + js_name = "requireInteraction" + )] #[doc = "Getter for the `requireInteraction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn require_interaction(this: &Notification) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Notification", + 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/Notification/data)"] @@ -150,14 +245,19 @@ extern "C" { title: &str, options: &NotificationOptions, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "Notification" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "Notification", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn close(this: &Notification); - # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)] + #[wasm_bindgen( + catch, + static_method_of = "Notification", + js_class = "Notification", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] @@ -165,21 +265,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn get() -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "GetNotificationOptions")] - # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)] + #[wasm_bindgen( + catch, + static_method_of = "Notification", + js_class = "Notification", + js_name = "get" + )] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `Notification`*"] pub fn get_with_filter(filter: &GetNotificationOptions) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission)] + #[wasm_bindgen( + catch, + static_method_of = "Notification", + js_class = "Notification", + js_name = "requestPermission" + )] #[doc = "The `requestPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn request_permission() -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission)] + #[wasm_bindgen( + catch, + static_method_of = "Notification", + js_class = "Notification", + js_name = "requestPermission" + )] #[doc = "The `requestPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission)"] diff --git a/crates/web-sys/src/features/gen_NotificationBehavior.rs b/crates/web-sys/src/features/gen_NotificationBehavior.rs index bfd54b22e8b..788d2938f8d 100644 --- a/crates/web-sys/src/features/gen_NotificationBehavior.rs +++ b/crates/web-sys/src/features/gen_NotificationBehavior.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationBehavior)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "NotificationBehavior")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationBehavior` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NotificationEvent.rs b/crates/web-sys/src/features/gen_NotificationEvent.rs index d3c962d87e4..61df3ea9a47 100644 --- a/crates/web-sys/src/features/gen_NotificationEvent.rs +++ b/crates/web-sys/src/features/gen_NotificationEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = NotificationEvent , typescript_type = "NotificationEvent")] + #[wasm_bindgen( + extends = "ExtendableEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "NotificationEvent", + typescript_type = "NotificationEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationEvent` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NotificationEvent`*"] pub type NotificationEvent; #[cfg(feature = "Notification")] - # [wasm_bindgen (structural , method , getter , js_class = "NotificationEvent" , js_name = notification)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "NotificationEvent", + js_name = "notification" + )] #[doc = "Getter for the `notification` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/notification)"] diff --git a/crates/web-sys/src/features/gen_NotificationEventInit.rs b/crates/web-sys/src/features/gen_NotificationEventInit.rs index 270f9fd52bf..2000e4a1512 100644 --- a/crates/web-sys/src/features/gen_NotificationEventInit.rs +++ b/crates/web-sys/src/features/gen_NotificationEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "NotificationEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NotificationOptions.rs b/crates/web-sys/src/features/gen_NotificationOptions.rs index 97d49a30296..b8c7a783774 100644 --- a/crates/web-sys/src/features/gen_NotificationOptions.rs +++ b/crates/web-sys/src/features/gen_NotificationOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "NotificationOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ObserverCallback.rs b/crates/web-sys/src/features/gen_ObserverCallback.rs index cdcc82dd9de..a42ab7c97c7 100644 --- a/crates/web-sys/src/features/gen_ObserverCallback.rs +++ b/crates/web-sys/src/features/gen_ObserverCallback.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ObserverCallback)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ObserverCallback")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ObserverCallback` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OesElementIndexUint.rs b/crates/web-sys/src/features/gen_OesElementIndexUint.rs index aebb731715a..a03e60697b9 100644 --- a/crates/web-sys/src/features/gen_OesElementIndexUint.rs +++ b/crates/web-sys/src/features/gen_OesElementIndexUint.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_element_index_uint , typescript_type = "OES_element_index_uint")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_element_index_uint" , typescript_type = "OES_element_index_uint")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesElementIndexUint` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OesStandardDerivatives.rs b/crates/web-sys/src/features/gen_OesStandardDerivatives.rs index 8b1324e149e..91c4f5d77f8 100644 --- a/crates/web-sys/src/features/gen_OesStandardDerivatives.rs +++ b/crates/web-sys/src/features/gen_OesStandardDerivatives.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_standard_derivatives , typescript_type = "OES_standard_derivatives")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_standard_derivatives" , typescript_type = "OES_standard_derivatives")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesStandardDerivatives` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OesTextureFloat.rs b/crates/web-sys/src/features/gen_OesTextureFloat.rs index d30aa42d4b2..8c717f28a3d 100644 --- a/crates/web-sys/src/features/gen_OesTextureFloat.rs +++ b/crates/web-sys/src/features/gen_OesTextureFloat.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_float , typescript_type = "OES_texture_float")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_texture_float" , typescript_type = "OES_texture_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureFloat` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OesTextureFloatLinear.rs b/crates/web-sys/src/features/gen_OesTextureFloatLinear.rs index 61763001ecc..b21696fe118 100644 --- a/crates/web-sys/src/features/gen_OesTextureFloatLinear.rs +++ b/crates/web-sys/src/features/gen_OesTextureFloatLinear.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_float_linear , typescript_type = "OES_texture_float_linear")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_texture_float_linear" , typescript_type = "OES_texture_float_linear")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureFloatLinear` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OesTextureHalfFloat.rs b/crates/web-sys/src/features/gen_OesTextureHalfFloat.rs index ae24073a45c..6533e6ee245 100644 --- a/crates/web-sys/src/features/gen_OesTextureHalfFloat.rs +++ b/crates/web-sys/src/features/gen_OesTextureHalfFloat.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_half_float , typescript_type = "OES_texture_half_float")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_texture_half_float" , typescript_type = "OES_texture_half_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureHalfFloat` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OesTextureHalfFloatLinear.rs b/crates/web-sys/src/features/gen_OesTextureHalfFloatLinear.rs index b96e67ef260..ad6bc25dd80 100644 --- a/crates/web-sys/src/features/gen_OesTextureHalfFloatLinear.rs +++ b/crates/web-sys/src/features/gen_OesTextureHalfFloatLinear.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_half_float_linear , typescript_type = "OES_texture_half_float_linear")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_texture_half_float_linear" , typescript_type = "OES_texture_half_float_linear")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureHalfFloatLinear` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OesVertexArrayObject.rs b/crates/web-sys/src/features/gen_OesVertexArrayObject.rs index 0aec22fef97..535bc05439b 100644 --- a/crates/web-sys/src/features/gen_OesVertexArrayObject.rs +++ b/crates/web-sys/src/features/gen_OesVertexArrayObject.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_vertex_array_object , typescript_type = "OES_vertex_array_object")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_vertex_array_object" , typescript_type = "OES_vertex_array_object")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesVertexArrayObject` class."] #[doc = ""] @@ -12,7 +12,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*"] pub type OesVertexArrayObject; #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = bindVertexArrayOES)] + #[wasm_bindgen( + method, + structural, + js_class = "OES_vertex_array_object", + js_name = "bindVertexArrayOES" + )] #[doc = "The `bindVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)"] @@ -23,7 +28,12 @@ extern "C" { array_object: Option<&WebGlVertexArrayObject>, ); #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = createVertexArrayOES)] + #[wasm_bindgen( + method, + structural, + js_class = "OES_vertex_array_object", + js_name = "createVertexArrayOES" + )] #[doc = "The `createVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)"] @@ -31,7 +41,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] pub fn create_vertex_array_oes(this: &OesVertexArrayObject) -> Option; #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = deleteVertexArrayOES)] + #[wasm_bindgen( + method, + structural, + js_class = "OES_vertex_array_object", + js_name = "deleteVertexArrayOES" + )] #[doc = "The `deleteVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)"] @@ -42,7 +57,12 @@ extern "C" { array_object: Option<&WebGlVertexArrayObject>, ); #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = isVertexArrayOES)] + #[wasm_bindgen( + method, + structural, + js_class = "OES_vertex_array_object", + js_name = "isVertexArrayOES" + )] #[doc = "The `isVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)"] diff --git a/crates/web-sys/src/features/gen_OfflineAudioCompletionEvent.rs b/crates/web-sys/src/features/gen_OfflineAudioCompletionEvent.rs index b4a36f31280..5ef5b886fe4 100644 --- a/crates/web-sys/src/features/gen_OfflineAudioCompletionEvent.rs +++ b/crates/web-sys/src/features/gen_OfflineAudioCompletionEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = OfflineAudioCompletionEvent , typescript_type = "OfflineAudioCompletionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "OfflineAudioCompletionEvent", + typescript_type = "OfflineAudioCompletionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioCompletionEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEvent`*"] pub type OfflineAudioCompletionEvent; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioCompletionEvent" , js_name = renderedBuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioCompletionEvent", + js_name = "renderedBuffer" + )] #[doc = "Getter for the `renderedBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer)"] diff --git a/crates/web-sys/src/features/gen_OfflineAudioCompletionEventInit.rs b/crates/web-sys/src/features/gen_OfflineAudioCompletionEventInit.rs index e3d202129bb..d393a69b8fc 100644 --- a/crates/web-sys/src/features/gen_OfflineAudioCompletionEventInit.rs +++ b/crates/web-sys/src/features/gen_OfflineAudioCompletionEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OfflineAudioCompletionEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "OfflineAudioCompletionEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioCompletionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OfflineAudioContext.rs b/crates/web-sys/src/features/gen_OfflineAudioContext.rs index ecaba2102c3..4dc1c303f4c 100644 --- a/crates/web-sys/src/features/gen_OfflineAudioContext.rs +++ b/crates/web-sys/src/features/gen_OfflineAudioContext.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (vendor_prefix = webkit , extends = BaseAudioContext , extends = EventTarget , extends = :: js_sys :: Object , js_name = OfflineAudioContext , typescript_type = "OfflineAudioContext")] + #[wasm_bindgen( + vendor_prefix = "webkit", + extends = "BaseAudioContext", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "OfflineAudioContext", + typescript_type = "OfflineAudioContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioContext` class."] #[doc = ""] @@ -11,21 +18,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub type OfflineAudioContext; - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn length(this: &OfflineAudioContext) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = oncomplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "oncomplete" + )] #[doc = "Getter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn oncomplete(this: &OfflineAudioContext) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineAudioContext" , js_name = oncomplete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineAudioContext", + js_name = "oncomplete" + )] #[doc = "Setter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/oncomplete)"] @@ -33,21 +58,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn set_oncomplete(this: &OfflineAudioContext, value: Option<&::js_sys::Function>); #[cfg(feature = "AudioDestinationNode")] - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = destination)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "destination" + )] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/destination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `OfflineAudioContext`*"] pub fn destination(this: &OfflineAudioContext) -> AudioDestinationNode; - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = sampleRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "sampleRate" + )] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn sample_rate(this: &OfflineAudioContext) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = currentTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "currentTime" + )] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/currentTime)"] @@ -55,7 +98,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn current_time(this: &OfflineAudioContext) -> f64; #[cfg(feature = "AudioListener")] - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = listener)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "listener" + )] #[doc = "Getter for the `listener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/listener)"] @@ -63,7 +112,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioListener`, `OfflineAudioContext`*"] pub fn listener(this: &OfflineAudioContext) -> AudioListener; #[cfg(feature = "AudioContextState")] - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/state)"] @@ -71,21 +126,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioContextState`, `OfflineAudioContext`*"] pub fn state(this: &OfflineAudioContext) -> AudioContextState; #[cfg(feature = "AudioWorklet")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "OfflineAudioContext" , js_name = audioWorklet)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "audioWorklet" + )] #[doc = "Getter for the `audioWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/audioWorklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `OfflineAudioContext`*"] pub fn audio_worklet(this: &OfflineAudioContext) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineAudioContext", + js_name = "onstatechange" + )] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn onstatechange(this: &OfflineAudioContext) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineAudioContext" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineAudioContext", + js_name = "onstatechange" + )] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/onstatechange)"] @@ -113,7 +187,13 @@ extern "C" { length: u32, sample_rate: f32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = startRendering)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "startRendering" + )] #[doc = "The `startRendering()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/startRendering)"] @@ -121,7 +201,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn start_rendering(this: &OfflineAudioContext) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "AnalyserNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createAnalyser)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createAnalyser" + )] #[doc = "The `createAnalyser()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createAnalyser)"] @@ -129,7 +215,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `OfflineAudioContext`*"] pub fn create_analyser(this: &OfflineAudioContext) -> Result; #[cfg(feature = "BiquadFilterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBiquadFilter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createBiquadFilter" + )] #[doc = "The `createBiquadFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBiquadFilter)"] @@ -137,7 +229,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `OfflineAudioContext`*"] pub fn create_biquad_filter(this: &OfflineAudioContext) -> Result; #[cfg(feature = "AudioBuffer")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createBuffer" + )] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBuffer)"] @@ -150,7 +248,13 @@ extern "C" { sample_rate: f32, ) -> Result; #[cfg(feature = "AudioBufferSourceNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBufferSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createBufferSource" + )] #[doc = "The `createBufferSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBufferSource)"] @@ -160,7 +264,13 @@ extern "C" { this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ChannelMergerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelMerger)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createChannelMerger" + )] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelMerger)"] @@ -168,7 +278,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ChannelMergerNode`, `OfflineAudioContext`*"] pub fn create_channel_merger(this: &OfflineAudioContext) -> Result; #[cfg(feature = "ChannelMergerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelMerger)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createChannelMerger" + )] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelMerger)"] @@ -179,7 +295,13 @@ extern "C" { number_of_inputs: u32, ) -> Result; #[cfg(feature = "ChannelSplitterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelSplitter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createChannelSplitter" + )] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelSplitter)"] @@ -189,7 +311,13 @@ extern "C" { this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ChannelSplitterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelSplitter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createChannelSplitter" + )] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelSplitter)"] @@ -200,7 +328,13 @@ extern "C" { number_of_outputs: u32, ) -> Result; #[cfg(feature = "ConstantSourceNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createConstantSource)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createConstantSource" + )] #[doc = "The `createConstantSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createConstantSource)"] @@ -210,7 +344,13 @@ extern "C" { this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ConvolverNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createConvolver)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createConvolver" + )] #[doc = "The `createConvolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createConvolver)"] @@ -218,7 +358,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`, `OfflineAudioContext`*"] pub fn create_convolver(this: &OfflineAudioContext) -> Result; #[cfg(feature = "DelayNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDelay)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createDelay" + )] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDelay)"] @@ -226,7 +372,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DelayNode`, `OfflineAudioContext`*"] pub fn create_delay(this: &OfflineAudioContext) -> Result; #[cfg(feature = "DelayNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDelay)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createDelay" + )] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDelay)"] @@ -237,7 +389,13 @@ extern "C" { max_delay_time: f64, ) -> Result; #[cfg(feature = "DynamicsCompressorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDynamicsCompressor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createDynamicsCompressor" + )] #[doc = "The `createDynamicsCompressor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDynamicsCompressor)"] @@ -247,7 +405,13 @@ extern "C" { this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "GainNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createGain)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createGain" + )] #[doc = "The `createGain()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createGain)"] @@ -255,7 +419,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `GainNode`, `OfflineAudioContext`*"] pub fn create_gain(this: &OfflineAudioContext) -> Result; #[cfg(feature = "IirFilterNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createIIRFilter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createIIRFilter" + )] #[doc = "The `createIIRFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createIIRFilter)"] @@ -267,7 +437,13 @@ extern "C" { feedback: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "OscillatorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createOscillator)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createOscillator" + )] #[doc = "The `createOscillator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createOscillator)"] @@ -275,7 +451,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `OscillatorNode`*"] pub fn create_oscillator(this: &OfflineAudioContext) -> Result; #[cfg(feature = "PannerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPanner)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createPanner" + )] #[doc = "The `createPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPanner)"] @@ -283,7 +465,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `PannerNode`*"] pub fn create_panner(this: &OfflineAudioContext) -> Result; #[cfg(feature = "PeriodicWave")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPeriodicWave)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createPeriodicWave" + )] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPeriodicWave)"] @@ -295,7 +483,13 @@ extern "C" { imag: &mut [f32], ) -> Result; #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPeriodicWave)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createPeriodicWave" + )] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPeriodicWave)"] @@ -308,7 +502,13 @@ extern "C" { constraints: &PeriodicWaveConstraints, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] @@ -318,7 +518,13 @@ extern "C" { this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] @@ -329,7 +535,13 @@ extern "C" { buffer_size: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] @@ -341,7 +553,13 @@ extern "C" { number_of_input_channels: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createScriptProcessor" + )] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] @@ -354,7 +572,13 @@ extern "C" { number_of_output_channels: u32, ) -> Result; #[cfg(feature = "StereoPannerNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createStereoPanner)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createStereoPanner" + )] #[doc = "The `createStereoPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createStereoPanner)"] @@ -362,14 +586,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `StereoPannerNode`*"] pub fn create_stereo_panner(this: &OfflineAudioContext) -> Result; #[cfg(feature = "WaveShaperNode")] - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createWaveShaper)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "createWaveShaper" + )] #[doc = "The `createWaveShaper()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createWaveShaper)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `WaveShaperNode`*"] pub fn create_wave_shaper(this: &OfflineAudioContext) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] @@ -379,7 +615,13 @@ extern "C" { this: &OfflineAudioContext, audio_data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] @@ -390,7 +632,13 @@ extern "C" { audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "decodeAudioData" + )] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] @@ -402,7 +650,13 @@ extern "C" { success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = resume)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineAudioContext", + js_name = "resume" + )] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/resume)"] diff --git a/crates/web-sys/src/features/gen_OfflineAudioContextOptions.rs b/crates/web-sys/src/features/gen_OfflineAudioContextOptions.rs index ab1cf57dfbf..e184326cb58 100644 --- a/crates/web-sys/src/features/gen_OfflineAudioContextOptions.rs +++ b/crates/web-sys/src/features/gen_OfflineAudioContextOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OfflineAudioContextOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "OfflineAudioContextOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioContextOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OfflineResourceList.rs b/crates/web-sys/src/features/gen_OfflineResourceList.rs index e3ccd3732fe..3e5db89fc70 100644 --- a/crates/web-sys/src/features/gen_OfflineResourceList.rs +++ b/crates/web-sys/src/features/gen_OfflineResourceList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = OfflineResourceList , typescript_type = "OfflineResourceList")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "OfflineResourceList", + typescript_type = "OfflineResourceList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineResourceList` class."] #[doc = ""] @@ -11,133 +16,248 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub type OfflineResourceList; - # [wasm_bindgen (structural , catch , method , getter , js_class = "OfflineResourceList" , js_name = status)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "OfflineResourceList", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn status(this: &OfflineResourceList) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onchecking)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "onchecking" + )] #[doc = "Getter for the `onchecking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onchecking(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onchecking)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "onchecking" + )] #[doc = "Setter for the `onchecking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onchecking(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onerror(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onerror(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onnoupdate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "onnoupdate" + )] #[doc = "Getter for the `onnoupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onnoupdate(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onnoupdate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "onnoupdate" + )] #[doc = "Setter for the `onnoupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onnoupdate(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = ondownloading)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "ondownloading" + )] #[doc = "Getter for the `ondownloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn ondownloading(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = ondownloading)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "ondownloading" + )] #[doc = "Setter for the `ondownloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_ondownloading(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onprogress(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onprogress(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onupdateready)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "onupdateready" + )] #[doc = "Getter for the `onupdateready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onupdateready(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onupdateready)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "onupdateready" + )] #[doc = "Setter for the `onupdateready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onupdateready(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = oncached)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "oncached" + )] #[doc = "Getter for the `oncached` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn oncached(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = oncached)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "oncached" + )] #[doc = "Setter for the `oncached` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_oncached(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onobsolete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OfflineResourceList", + js_name = "onobsolete" + )] #[doc = "Getter for the `onobsolete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onobsolete(this: &OfflineResourceList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onobsolete)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OfflineResourceList", + js_name = "onobsolete" + )] #[doc = "Setter for the `onobsolete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onobsolete(this: &OfflineResourceList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "OfflineResourceList" , js_name = swapCache)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineResourceList", + js_name = "swapCache" + )] #[doc = "The `swapCache()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/swapCache)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn swap_cache(this: &OfflineResourceList) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OfflineResourceList" , js_name = update)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OfflineResourceList", + js_name = "update" + )] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/update)"] diff --git a/crates/web-sys/src/features/gen_OffscreenCanvas.rs b/crates/web-sys/src/features/gen_OffscreenCanvas.rs index bcf85992191..843ed94b21b 100644 --- a/crates/web-sys/src/features/gen_OffscreenCanvas.rs +++ b/crates/web-sys/src/features/gen_OffscreenCanvas.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = OffscreenCanvas , typescript_type = "OffscreenCanvas")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "OffscreenCanvas", + typescript_type = "OffscreenCanvas" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OffscreenCanvas` class."] #[doc = ""] @@ -11,28 +16,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub type OffscreenCanvas; - # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvas" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OffscreenCanvas", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn width(this: &OffscreenCanvas) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvas" , js_name = width)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OffscreenCanvas", + js_name = "width" + )] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn set_width(this: &OffscreenCanvas, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvas" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OffscreenCanvas", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn height(this: &OffscreenCanvas) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvas" , js_name = height)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OffscreenCanvas", + js_name = "height" + )] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height)"] @@ -46,7 +75,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn new(width: u32, height: u32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = getContext)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OffscreenCanvas", + js_name = "getContext" + )] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext)"] @@ -56,7 +91,13 @@ extern "C" { this: &OffscreenCanvas, context_id: &str, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = getContext)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OffscreenCanvas", + js_name = "getContext" + )] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext)"] @@ -67,14 +108,26 @@ extern "C" { context_id: &str, context_options: &::wasm_bindgen::JsValue, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OffscreenCanvas", + js_name = "toBlob" + )] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn to_blob(this: &OffscreenCanvas) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OffscreenCanvas", + js_name = "toBlob" + )] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] @@ -84,7 +137,13 @@ extern "C" { this: &OffscreenCanvas, type_: &str, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OffscreenCanvas", + js_name = "toBlob" + )] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] @@ -96,7 +155,13 @@ extern "C" { encoder_options: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = transferToImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OffscreenCanvas", + js_name = "transferToImageBitmap" + )] #[doc = "The `transferToImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap)"] diff --git a/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs b/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs index 278e2f8a317..b473392d63a 100644 --- a/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs +++ b/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OpenWindowEventDetail)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "OpenWindowEventDetail")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OpenWindowEventDetail` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OptionalEffectTiming.rs b/crates/web-sys/src/features/gen_OptionalEffectTiming.rs index 5838e3205de..3b329669c80 100644 --- a/crates/web-sys/src/features/gen_OptionalEffectTiming.rs +++ b/crates/web-sys/src/features/gen_OptionalEffectTiming.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OptionalEffectTiming)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "OptionalEffectTiming")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OptionalEffectTiming` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OscillatorNode.rs b/crates/web-sys/src/features/gen_OscillatorNode.rs index b72525ea4a1..7b3be8b6db9 100644 --- a/crates/web-sys/src/features/gen_OscillatorNode.rs +++ b/crates/web-sys/src/features/gen_OscillatorNode.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = OscillatorNode , typescript_type = "OscillatorNode")] + #[wasm_bindgen( + extends = "AudioScheduledSourceNode", + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "OscillatorNode", + typescript_type = "OscillatorNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OscillatorNode` class."] #[doc = ""] @@ -12,7 +19,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub type OscillatorNode; #[cfg(feature = "OscillatorType")] - # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OscillatorNode", + 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/OscillatorNode/type)"] @@ -20,7 +33,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"] pub fn type_(this: &OscillatorNode) -> OscillatorType; #[cfg(feature = "OscillatorType")] - # [wasm_bindgen (structural , method , setter , js_class = "OscillatorNode" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OscillatorNode", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type)"] @@ -28,7 +47,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"] pub fn set_type(this: &OscillatorNode, value: OscillatorType); #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = frequency)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OscillatorNode", + js_name = "frequency" + )] #[doc = "Getter for the `frequency` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/frequency)"] @@ -36,21 +61,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"] pub fn frequency(this: &OscillatorNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = detune)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OscillatorNode", + js_name = "detune" + )] #[doc = "Getter for the `detune` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/detune)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"] pub fn detune(this: &OscillatorNode) -> AudioParam; - # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "OscillatorNode", + js_name = "onended" + )] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn onended(this: &OscillatorNode) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "OscillatorNode" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "OscillatorNode", + js_name = "onended" + )] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"] @@ -77,35 +120,64 @@ extern "C" { options: &OscillatorOptions, ) -> Result; #[cfg(feature = "PeriodicWave")] - # [wasm_bindgen (method , structural , js_class = "OscillatorNode" , js_name = setPeriodicWave)] + #[wasm_bindgen( + method, + structural, + js_class = "OscillatorNode", + js_name = "setPeriodicWave" + )] #[doc = "The `setPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/setPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `PeriodicWave`*"] pub fn set_periodic_wave(this: &OscillatorNode, periodic_wave: &PeriodicWave); - # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OscillatorNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn start(this: &OscillatorNode) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OscillatorNode", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn start_with_when(this: &OscillatorNode, when: f64) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OscillatorNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn stop(this: &OscillatorNode) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = stop)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "OscillatorNode", + js_name = "stop" + )] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"] diff --git a/crates/web-sys/src/features/gen_OscillatorOptions.rs b/crates/web-sys/src/features/gen_OscillatorOptions.rs index becbba03395..9230da76cfc 100644 --- a/crates/web-sys/src/features/gen_OscillatorOptions.rs +++ b/crates/web-sys/src/features/gen_OscillatorOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OscillatorOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "OscillatorOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OscillatorOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PageTransitionEvent.rs b/crates/web-sys/src/features/gen_PageTransitionEvent.rs index 2fed4a4d02a..e9daaa650a0 100644 --- a/crates/web-sys/src/features/gen_PageTransitionEvent.rs +++ b/crates/web-sys/src/features/gen_PageTransitionEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PageTransitionEvent , typescript_type = "PageTransitionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "PageTransitionEvent", + typescript_type = "PageTransitionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PageTransitionEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`*"] pub type PageTransitionEvent; - # [wasm_bindgen (structural , method , getter , js_class = "PageTransitionEvent" , js_name = persisted)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PageTransitionEvent", + js_name = "persisted" + )] #[doc = "Getter for the `persisted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/persisted)"] diff --git a/crates/web-sys/src/features/gen_PageTransitionEventInit.rs b/crates/web-sys/src/features/gen_PageTransitionEventInit.rs index 460c6fdcfce..206aed4a7fc 100644 --- a/crates/web-sys/src/features/gen_PageTransitionEventInit.rs +++ b/crates/web-sys/src/features/gen_PageTransitionEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PageTransitionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PageTransitionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PageTransitionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PaintRequest.rs b/crates/web-sys/src/features/gen_PaintRequest.rs index 393bfe116fa..7f22f94e51a 100644 --- a/crates/web-sys/src/features/gen_PaintRequest.rs +++ b/crates/web-sys/src/features/gen_PaintRequest.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaintRequest , typescript_type = "PaintRequest")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PaintRequest", + typescript_type = "PaintRequest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaintRequest` class."] #[doc = ""] @@ -12,14 +16,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] pub type PaintRequest; #[cfg(feature = "DomRect")] - # [wasm_bindgen (structural , method , getter , js_class = "PaintRequest" , js_name = clientRect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaintRequest", + js_name = "clientRect" + )] #[doc = "Getter for the `clientRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/clientRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`, `PaintRequest`*"] pub fn client_rect(this: &PaintRequest) -> DomRect; - # [wasm_bindgen (structural , method , getter , js_class = "PaintRequest" , js_name = reason)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaintRequest", + js_name = "reason" + )] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/reason)"] diff --git a/crates/web-sys/src/features/gen_PaintRequestList.rs b/crates/web-sys/src/features/gen_PaintRequestList.rs index 25bf3d56c11..63e04aa02f3 100644 --- a/crates/web-sys/src/features/gen_PaintRequestList.rs +++ b/crates/web-sys/src/features/gen_PaintRequestList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaintRequestList , typescript_type = "PaintRequestList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PaintRequestList", + typescript_type = "PaintRequestList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaintRequestList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequestList`*"] pub type PaintRequestList; - # [wasm_bindgen (structural , method , getter , js_class = "PaintRequestList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaintRequestList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList/length)"] @@ -19,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PaintRequestList`*"] pub fn length(this: &PaintRequestList) -> u32; #[cfg(feature = "PaintRequest")] - # [wasm_bindgen (method , structural , js_class = "PaintRequestList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "PaintRequestList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList/item)"] diff --git a/crates/web-sys/src/features/gen_PaintWorkletGlobalScope.rs b/crates/web-sys/src/features/gen_PaintWorkletGlobalScope.rs index d022a7e2cb0..9d299945ce9 100644 --- a/crates/web-sys/src/features/gen_PaintWorkletGlobalScope.rs +++ b/crates/web-sys/src/features/gen_PaintWorkletGlobalScope.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = PaintWorkletGlobalScope , typescript_type = "PaintWorkletGlobalScope")] + #[wasm_bindgen( + extends = "WorkletGlobalScope", + extends = "::js_sys::Object", + js_name = "PaintWorkletGlobalScope", + typescript_type = "PaintWorkletGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaintWorkletGlobalScope` class."] #[doc = ""] @@ -11,7 +16,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintWorkletGlobalScope`*"] pub type PaintWorkletGlobalScope; - # [wasm_bindgen (method , structural , js_class = "PaintWorkletGlobalScope" , js_name = registerPaint)] + #[wasm_bindgen( + method, + structural, + js_class = "PaintWorkletGlobalScope", + js_name = "registerPaint" + )] #[doc = "The `registerPaint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope/registerPaint)"] diff --git a/crates/web-sys/src/features/gen_PannerNode.rs b/crates/web-sys/src/features/gen_PannerNode.rs index 47787d29026..8e1903f6ce3 100644 --- a/crates/web-sys/src/features/gen_PannerNode.rs +++ b/crates/web-sys/src/features/gen_PannerNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = PannerNode , typescript_type = "PannerNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "PannerNode", + typescript_type = "PannerNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PannerNode` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub type PannerNode; #[cfg(feature = "PanningModelType")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = panningModel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "panningModel" + )] #[doc = "Getter for the `panningModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"] @@ -20,7 +32,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"] pub fn panning_model(this: &PannerNode) -> PanningModelType; #[cfg(feature = "PanningModelType")] - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = panningModel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "panningModel" + )] #[doc = "Setter for the `panningModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"] @@ -28,7 +46,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"] pub fn set_panning_model(this: &PannerNode, value: PanningModelType); #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "positionX" + )] #[doc = "Getter for the `positionX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX)"] @@ -36,7 +60,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn position_x(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "positionY" + )] #[doc = "Getter for the `positionY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY)"] @@ -44,7 +74,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn position_y(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionZ)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "positionZ" + )] #[doc = "Getter for the `positionZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ)"] @@ -52,7 +88,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn position_z(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "orientationX" + )] #[doc = "Getter for the `orientationX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX)"] @@ -60,7 +102,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn orientation_x(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "orientationY" + )] #[doc = "Getter for the `orientationY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY)"] @@ -68,7 +116,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn orientation_y(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationZ)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "orientationZ" + )] #[doc = "Getter for the `orientationZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ)"] @@ -76,7 +130,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn orientation_z(this: &PannerNode) -> AudioParam; #[cfg(feature = "DistanceModelType")] - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = distanceModel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "distanceModel" + )] #[doc = "Getter for the `distanceModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"] @@ -84,91 +144,169 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"] pub fn distance_model(this: &PannerNode) -> DistanceModelType; #[cfg(feature = "DistanceModelType")] - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = distanceModel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "distanceModel" + )] #[doc = "Setter for the `distanceModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"] pub fn set_distance_model(this: &PannerNode, value: DistanceModelType); - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = refDistance)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "refDistance" + )] #[doc = "Getter for the `refDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn ref_distance(this: &PannerNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = refDistance)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "refDistance" + )] #[doc = "Setter for the `refDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_ref_distance(this: &PannerNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = maxDistance)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "maxDistance" + )] #[doc = "Getter for the `maxDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn max_distance(this: &PannerNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = maxDistance)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "maxDistance" + )] #[doc = "Setter for the `maxDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_max_distance(this: &PannerNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = rolloffFactor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "rolloffFactor" + )] #[doc = "Getter for the `rolloffFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn rolloff_factor(this: &PannerNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = rolloffFactor)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "rolloffFactor" + )] #[doc = "Setter for the `rolloffFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_rolloff_factor(this: &PannerNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneInnerAngle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "coneInnerAngle" + )] #[doc = "Getter for the `coneInnerAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn cone_inner_angle(this: &PannerNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneInnerAngle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "coneInnerAngle" + )] #[doc = "Setter for the `coneInnerAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_cone_inner_angle(this: &PannerNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneOuterAngle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "coneOuterAngle" + )] #[doc = "Getter for the `coneOuterAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn cone_outer_angle(this: &PannerNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneOuterAngle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "coneOuterAngle" + )] #[doc = "Setter for the `coneOuterAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_cone_outer_angle(this: &PannerNode, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneOuterGain)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PannerNode", + js_name = "coneOuterGain" + )] #[doc = "Getter for the `coneOuterGain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn cone_outer_gain(this: &PannerNode) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneOuterGain)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PannerNode", + js_name = "coneOuterGain" + )] #[doc = "Setter for the `coneOuterGain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"] @@ -194,21 +332,26 @@ extern "C" { context: &BaseAudioContext, options: &PannerOptions, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setOrientation)] + #[wasm_bindgen( + method, + structural, + js_class = "PannerNode", + js_name = "setOrientation" + )] #[doc = "The `setOrientation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_orientation(this: &PannerNode, x: f64, y: f64, z: f64); - # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setPosition)] + #[wasm_bindgen(method, structural, js_class = "PannerNode", js_name = "setPosition")] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_position(this: &PannerNode, x: f64, y: f64, z: f64); - # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setVelocity)] + #[wasm_bindgen(method, structural, js_class = "PannerNode", js_name = "setVelocity")] #[doc = "The `setVelocity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity)"] diff --git a/crates/web-sys/src/features/gen_PannerOptions.rs b/crates/web-sys/src/features/gen_PannerOptions.rs index 343ad89ca70..2850b57b9ca 100644 --- a/crates/web-sys/src/features/gen_PannerOptions.rs +++ b/crates/web-sys/src/features/gen_PannerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PannerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PannerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PannerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Path2d.rs b/crates/web-sys/src/features/gen_Path2d.rs index 7cdb3e8d95a..52aa3858acf 100644 --- a/crates/web-sys/src/features/gen_Path2d.rs +++ b/crates/web-sys/src/features/gen_Path2d.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Path2D , typescript_type = "Path2D")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Path2D", + typescript_type = "Path2D" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Path2d` class."] #[doc = ""] @@ -32,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn new_with_path_string(path_string: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = addPath)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "addPath")] #[doc = "The `addPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/addPath)"] @@ -40,14 +44,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn add_path(this: &Path2d, path: &Path2d); #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = addPath)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "addPath")] #[doc = "The `addPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/addPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`, `SvgMatrix`*"] pub fn add_path_with_transformation(this: &Path2d, path: &Path2d, transformation: &SvgMatrix); - # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = arc)] + #[wasm_bindgen(catch, method, structural, js_class = "Path2D", js_name = "arc")] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arc)"] @@ -61,7 +65,7 @@ extern "C" { start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = arc)] + #[wasm_bindgen(catch, method, structural, js_class = "Path2D", js_name = "arc")] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arc)"] @@ -76,7 +80,7 @@ extern "C" { end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = arcTo)] + #[wasm_bindgen(catch, method, structural, js_class = "Path2D", js_name = "arcTo")] #[doc = "The `arcTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arcTo)"] @@ -90,7 +94,7 @@ extern "C" { y2: f64, radius: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = bezierCurveTo)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "bezierCurveTo")] #[doc = "The `bezierCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/bezierCurveTo)"] @@ -105,14 +109,14 @@ extern "C" { x: f64, y: f64, ); - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = closePath)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "closePath")] #[doc = "The `closePath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/closePath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn close_path(this: &Path2d); - # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = ellipse)] + #[wasm_bindgen(catch, method, structural, js_class = "Path2D", js_name = "ellipse")] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/ellipse)"] @@ -128,7 +132,7 @@ extern "C" { start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = ellipse)] + #[wasm_bindgen(catch, method, structural, js_class = "Path2D", js_name = "ellipse")] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/ellipse)"] @@ -145,28 +149,28 @@ extern "C" { end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = lineTo)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "lineTo")] #[doc = "The `lineTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/lineTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn line_to(this: &Path2d, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = moveTo)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "moveTo")] #[doc = "The `moveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/moveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn move_to(this: &Path2d, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = quadraticCurveTo)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "quadraticCurveTo")] #[doc = "The `quadraticCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/quadraticCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn quadratic_curve_to(this: &Path2d, cpx: f64, cpy: f64, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = rect)] + #[wasm_bindgen(method, structural, js_class = "Path2D", js_name = "rect")] #[doc = "The `rect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/rect)"] diff --git a/crates/web-sys/src/features/gen_PaymentAddress.rs b/crates/web-sys/src/features/gen_PaymentAddress.rs index 7402ca5be9b..5a15a3e19d8 100644 --- a/crates/web-sys/src/features/gen_PaymentAddress.rs +++ b/crates/web-sys/src/features/gen_PaymentAddress.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentAddress , typescript_type = "PaymentAddress")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PaymentAddress", + typescript_type = "PaymentAddress" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentAddress` class."] #[doc = ""] @@ -11,84 +15,150 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub type PaymentAddress; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = country)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentAddress", + js_name = "country" + )] #[doc = "Getter for the `country` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = addressLine)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentAddress", + js_name = "addressLine" + )] #[doc = "Getter for the `addressLine` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/addressLine)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn address_line(this: &PaymentAddress) -> ::js_sys::Array; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = region)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentAddress", + js_name = "region" + )] #[doc = "Getter for the `region` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = city)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = dependentLocality)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = postalCode)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = sortingCode)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = languageCode)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = organization)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = recipient)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = phone)] + #[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; - # [wasm_bindgen (method , structural , js_class = "PaymentAddress" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "PaymentAddress", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs b/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs index 68d5868c894..b745d342ad2 100644 --- a/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs +++ b/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PaymentRequestUpdateEvent , extends = Event , extends = :: js_sys :: Object , js_name = PaymentMethodChangeEvent , typescript_type = "PaymentMethodChangeEvent")] + #[wasm_bindgen( + extends = "PaymentRequestUpdateEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "PaymentMethodChangeEvent", + typescript_type = "PaymentMethodChangeEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentMethodChangeEvent` class."] #[doc = ""] @@ -11,14 +17,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] pub type PaymentMethodChangeEvent; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentMethodChangeEvent" , js_name = methodName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentMethodChangeEvent", + 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/PaymentMethodChangeEvent/methodName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] pub fn method_name(this: &PaymentMethodChangeEvent) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentMethodChangeEvent" , js_name = methodDetails)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentMethodChangeEvent", + js_name = "methodDetails" + )] #[doc = "Getter for the `methodDetails` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/methodDetails)"] diff --git a/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs b/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs index 0aa07478f16..bd8f8d46fd9 100644 --- a/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentMethodChangeEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PaymentMethodChangeEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentMethodChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PaymentRequestUpdateEvent.rs b/crates/web-sys/src/features/gen_PaymentRequestUpdateEvent.rs index fa60547c348..9a8decec035 100644 --- a/crates/web-sys/src/features/gen_PaymentRequestUpdateEvent.rs +++ b/crates/web-sys/src/features/gen_PaymentRequestUpdateEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PaymentRequestUpdateEvent , typescript_type = "PaymentRequestUpdateEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "PaymentRequestUpdateEvent", + typescript_type = "PaymentRequestUpdateEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentRequestUpdateEvent` class."] #[doc = ""] @@ -29,7 +34,13 @@ extern "C" { type_: &str, event_init_dict: &PaymentRequestUpdateEventInit, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "PaymentRequestUpdateEvent" , js_name = updateWith)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PaymentRequestUpdateEvent", + js_name = "updateWith" + )] #[doc = "The `updateWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/updateWith)"] diff --git a/crates/web-sys/src/features/gen_PaymentRequestUpdateEventInit.rs b/crates/web-sys/src/features/gen_PaymentRequestUpdateEventInit.rs index c3877bf6b19..257a6fa07b0 100644 --- a/crates/web-sys/src/features/gen_PaymentRequestUpdateEventInit.rs +++ b/crates/web-sys/src/features/gen_PaymentRequestUpdateEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentRequestUpdateEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PaymentRequestUpdateEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentRequestUpdateEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PaymentResponse.rs b/crates/web-sys/src/features/gen_PaymentResponse.rs index b9007db1c07..11664cb8348 100644 --- a/crates/web-sys/src/features/gen_PaymentResponse.rs +++ b/crates/web-sys/src/features/gen_PaymentResponse.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentResponse , typescript_type = "PaymentResponse")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PaymentResponse", + typescript_type = "PaymentResponse" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentResponse` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub type PaymentResponse; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = requestId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentResponse", + js_name = "requestId" + )] #[doc = "Getter for the `requestId` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = methodName)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = details)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentResponse", + js_name = "details" + )] #[doc = "Getter for the `details` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/details)"] @@ -33,42 +55,72 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn details(this: &PaymentResponse) -> ::js_sys::Object; #[cfg(feature = "PaymentAddress")] - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = shippingAddress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentResponse", + js_name = "shippingAddress" + )] #[doc = "Getter for the `shippingAddress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingAddress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`, `PaymentResponse`*"] pub fn shipping_address(this: &PaymentResponse) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = shippingOption)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PaymentResponse", + js_name = "shippingOption" + )] #[doc = "Getter for the `shippingOption` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerName)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerEmail)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerPhone)] + #[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; - # [wasm_bindgen (method , structural , js_class = "PaymentResponse" , js_name = complete)] + #[wasm_bindgen(method, structural, js_class = "PaymentResponse", js_name = "complete")] #[doc = "The `complete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"] @@ -76,7 +128,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn complete(this: &PaymentResponse) -> ::js_sys::Promise; #[cfg(feature = "PaymentComplete")] - # [wasm_bindgen (method , structural , js_class = "PaymentResponse" , js_name = complete)] + #[wasm_bindgen(method, structural, js_class = "PaymentResponse", js_name = "complete")] #[doc = "The `complete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"] @@ -86,7 +138,7 @@ extern "C" { this: &PaymentResponse, result: PaymentComplete, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "PaymentResponse" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "PaymentResponse", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/toJSON)"] diff --git a/crates/web-sys/src/features/gen_Pbkdf2Params.rs b/crates/web-sys/src/features/gen_Pbkdf2Params.rs index 4bf39c68389..3a014ae6576 100644 --- a/crates/web-sys/src/features/gen_Pbkdf2Params.rs +++ b/crates/web-sys/src/features/gen_Pbkdf2Params.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Pbkdf2Params)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "Pbkdf2Params")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Pbkdf2Params` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Performance.rs b/crates/web-sys/src/features/gen_Performance.rs index 0e4212900f6..665071980a0 100644 --- a/crates/web-sys/src/features/gen_Performance.rs +++ b/crates/web-sys/src/features/gen_Performance.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Performance , typescript_type = "Performance")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Performance", + typescript_type = "Performance" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Performance` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub type Performance; - # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = timeOrigin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Performance", + js_name = "timeOrigin" + )] #[doc = "Getter for the `timeOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin)"] @@ -19,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn time_origin(this: &Performance) -> f64; #[cfg(feature = "PerformanceTiming")] - # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = timing)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Performance", + js_name = "timing" + )] #[doc = "Getter for the `timing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timing)"] @@ -27,77 +44,120 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceTiming`*"] pub fn timing(this: &Performance) -> PerformanceTiming; #[cfg(feature = "PerformanceNavigation")] - # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = navigation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Performance", + js_name = "navigation" + )] #[doc = "Getter for the `navigation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/navigation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceNavigation`*"] pub fn navigation(this: &Performance) -> PerformanceNavigation; - # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = onresourcetimingbufferfull)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Performance", + js_name = "onresourcetimingbufferfull" + )] #[doc = "Getter for the `onresourcetimingbufferfull` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn onresourcetimingbufferfull(this: &Performance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Performance" , js_name = onresourcetimingbufferfull)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Performance", + js_name = "onresourcetimingbufferfull" + )] #[doc = "Setter for the `onresourcetimingbufferfull` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn set_onresourcetimingbufferfull(this: &Performance, value: Option<&::js_sys::Function>); - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMarks)] + #[wasm_bindgen(method, structural, js_class = "Performance", js_name = "clearMarks")] #[doc = "The `clearMarks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_marks(this: &Performance); - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMarks)] + #[wasm_bindgen(method, structural, js_class = "Performance", js_name = "clearMarks")] #[doc = "The `clearMarks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_marks_with_mark_name(this: &Performance, mark_name: &str); - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMeasures)] + #[wasm_bindgen( + method, + structural, + js_class = "Performance", + js_name = "clearMeasures" + )] #[doc = "The `clearMeasures()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_measures(this: &Performance); - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMeasures)] + #[wasm_bindgen( + method, + structural, + js_class = "Performance", + js_name = "clearMeasures" + )] #[doc = "The `clearMeasures()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_measures_with_measure_name(this: &Performance, measure_name: &str); - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearResourceTimings)] + #[wasm_bindgen( + method, + structural, + js_class = "Performance", + js_name = "clearResourceTimings" + )] #[doc = "The `clearResourceTimings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearResourceTimings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_resource_timings(this: &Performance); - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntries)] + #[wasm_bindgen(method, structural, js_class = "Performance", js_name = "getEntries")] #[doc = "The `getEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn get_entries(this: &Performance) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByName)] + #[wasm_bindgen( + method, + structural, + js_class = "Performance", + js_name = "getEntriesByName" + )] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn get_entries_by_name(this: &Performance, name: &str) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByName)] + #[wasm_bindgen( + method, + structural, + js_class = "Performance", + js_name = "getEntriesByName" + )] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"] @@ -108,28 +168,45 @@ extern "C" { name: &str, entry_type: &str, ) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByType)] + #[wasm_bindgen( + method, + structural, + js_class = "Performance", + js_name = "getEntriesByType" + )] #[doc = "The `getEntriesByType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn get_entries_by_type(this: &Performance, entry_type: &str) -> ::js_sys::Array; - # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = mark)] + #[wasm_bindgen(catch, method, structural, js_class = "Performance", js_name = "mark")] #[doc = "The `mark()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn mark(this: &Performance, mark_name: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Performance", + js_name = "measure" + )] #[doc = "The `measure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn measure(this: &Performance, measure_name: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Performance", + js_name = "measure" + )] #[doc = "The `measure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] @@ -140,7 +217,13 @@ extern "C" { measure_name: &str, start_mark: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Performance", + js_name = "measure" + )] #[doc = "The `measure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] @@ -152,21 +235,26 @@ extern "C" { start_mark: &str, end_mark: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = now)] + #[wasm_bindgen(method, structural, js_class = "Performance", js_name = "now")] #[doc = "The `now()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn now(this: &Performance) -> f64; - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = setResourceTimingBufferSize)] + #[wasm_bindgen( + method, + structural, + js_class = "Performance", + js_name = "setResourceTimingBufferSize" + )] #[doc = "The `setResourceTimingBufferSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/setResourceTimingBufferSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn set_resource_timing_buffer_size(this: &Performance, max_size: u32); - # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "Performance", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PerformanceEntry.rs b/crates/web-sys/src/features/gen_PerformanceEntry.rs index 41e22c04f5e..f0fb7196d8f 100644 --- a/crates/web-sys/src/features/gen_PerformanceEntry.rs +++ b/crates/web-sys/src/features/gen_PerformanceEntry.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceEntry , typescript_type = "PerformanceEntry")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PerformanceEntry", + typescript_type = "PerformanceEntry" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceEntry` class."] #[doc = ""] @@ -11,35 +15,59 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub type PerformanceEntry; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceEntry", + 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/PerformanceEntry/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn name(this: &PerformanceEntry) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = entryType)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = startTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceEntry", + js_name = "startTime" + )] #[doc = "Getter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn start_time(this: &PerformanceEntry) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceEntry", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn duration(this: &PerformanceEntry) -> f64; - # [wasm_bindgen (method , structural , js_class = "PerformanceEntry" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "PerformanceEntry", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs b/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs index 8849719872c..82157f8e789 100644 --- a/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs +++ b/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceEntryEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PerformanceEntryEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceEntryEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs b/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs index abc5c78de82..8b3a8f31472 100644 --- a/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs +++ b/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceEntryFilterOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PerformanceEntryFilterOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceEntryFilterOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PerformanceMark.rs b/crates/web-sys/src/features/gen_PerformanceMark.rs index b74bed7fd3b..b201eb58bd5 100644 --- a/crates/web-sys/src/features/gen_PerformanceMark.rs +++ b/crates/web-sys/src/features/gen_PerformanceMark.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceMark , typescript_type = "PerformanceMark")] + #[wasm_bindgen( + extends = "PerformanceEntry", + extends = "::js_sys::Object", + js_name = "PerformanceMark", + typescript_type = "PerformanceMark" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceMark` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PerformanceMeasure.rs b/crates/web-sys/src/features/gen_PerformanceMeasure.rs index e7981e72043..bc98c60c4db 100644 --- a/crates/web-sys/src/features/gen_PerformanceMeasure.rs +++ b/crates/web-sys/src/features/gen_PerformanceMeasure.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceMeasure , typescript_type = "PerformanceMeasure")] + #[wasm_bindgen( + extends = "PerformanceEntry", + extends = "::js_sys::Object", + js_name = "PerformanceMeasure", + typescript_type = "PerformanceMeasure" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceMeasure` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PerformanceNavigation.rs b/crates/web-sys/src/features/gen_PerformanceNavigation.rs index 339e622276a..2055bbab8a3 100644 --- a/crates/web-sys/src/features/gen_PerformanceNavigation.rs +++ b/crates/web-sys/src/features/gen_PerformanceNavigation.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceNavigation , typescript_type = "PerformanceNavigation")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PerformanceNavigation", + typescript_type = "PerformanceNavigation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceNavigation` class."] #[doc = ""] @@ -11,21 +15,38 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub type PerformanceNavigation; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigation", + 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/PerformanceNavigation/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub fn type_(this: &PerformanceNavigation) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = redirectCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigation", + js_name = "redirectCount" + )] #[doc = "Getter for the `redirectCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/redirectCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub fn redirect_count(this: &PerformanceNavigation) -> u16; - # [wasm_bindgen (method , structural , js_class = "PerformanceNavigation" , js_name = toJSON)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceNavigation", + js_name = "toJSON" + )] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PerformanceNavigationTiming.rs b/crates/web-sys/src/features/gen_PerformanceNavigationTiming.rs index 2193b4c822e..5e80364779f 100644 --- a/crates/web-sys/src/features/gen_PerformanceNavigationTiming.rs +++ b/crates/web-sys/src/features/gen_PerformanceNavigationTiming.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PerformanceResourceTiming , extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceNavigationTiming , typescript_type = "PerformanceNavigationTiming")] + #[wasm_bindgen( + extends = "PerformanceResourceTiming", + extends = "PerformanceEntry", + extends = "::js_sys::Object", + js_name = "PerformanceNavigationTiming", + typescript_type = "PerformanceNavigationTiming" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceNavigationTiming` class."] #[doc = ""] @@ -11,56 +17,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub type PerformanceNavigationTiming; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "unloadEventStart" + )] #[doc = "Getter for the `unloadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn unload_event_start(this: &PerformanceNavigationTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "unloadEventEnd" + )] #[doc = "Getter for the `unloadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn unload_event_end(this: &PerformanceNavigationTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domInteractive)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "domInteractive" + )] #[doc = "Getter for the `domInteractive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domInteractive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_interactive(this: &PerformanceNavigationTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "domContentLoadedEventStart" + )] #[doc = "Getter for the `domContentLoadedEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_content_loaded_event_start(this: &PerformanceNavigationTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "domContentLoadedEventEnd" + )] #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_content_loaded_event_end(this: &PerformanceNavigationTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domComplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "domComplete" + )] #[doc = "Getter for the `domComplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domComplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_complete(this: &PerformanceNavigationTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "loadEventStart" + )] #[doc = "Getter for the `loadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn load_event_start(this: &PerformanceNavigationTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "loadEventEnd" + )] #[doc = "Getter for the `loadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)"] @@ -68,21 +122,38 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn load_event_end(this: &PerformanceNavigationTiming) -> f64; #[cfg(feature = "NavigationType")] - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + 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/PerformanceNavigationTiming/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigationType`, `PerformanceNavigationTiming`*"] pub fn type_(this: &PerformanceNavigationTiming) -> NavigationType; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = redirectCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceNavigationTiming", + js_name = "redirectCount" + )] #[doc = "Getter for the `redirectCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/redirectCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn redirect_count(this: &PerformanceNavigationTiming) -> u16; - # [wasm_bindgen (method , structural , js_class = "PerformanceNavigationTiming" , js_name = toJSON)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceNavigationTiming", + js_name = "toJSON" + )] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PerformanceObserver.rs b/crates/web-sys/src/features/gen_PerformanceObserver.rs index 1146a121ac9..17d12677c91 100644 --- a/crates/web-sys/src/features/gen_PerformanceObserver.rs +++ b/crates/web-sys/src/features/gen_PerformanceObserver.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceObserver , typescript_type = "PerformanceObserver")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PerformanceObserver", + typescript_type = "PerformanceObserver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceObserver` class."] #[doc = ""] @@ -18,7 +22,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] pub fn new(callback: &::js_sys::Function) -> Result; - # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = disconnect)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserver", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/disconnect)"] @@ -26,14 +35,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] pub fn disconnect(this: &PerformanceObserver); #[cfg(feature = "PerformanceObserverInit")] - # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = observe)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserver", + js_name = "observe" + )] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`, `PerformanceObserverInit`*"] pub fn observe(this: &PerformanceObserver, options: &PerformanceObserverInit); - # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = takeRecords)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserver", + js_name = "takeRecords" + )] #[doc = "The `takeRecords()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/takeRecords)"] diff --git a/crates/web-sys/src/features/gen_PerformanceObserverEntryList.rs b/crates/web-sys/src/features/gen_PerformanceObserverEntryList.rs index 29b5dd6da0f..45ea213cb5e 100644 --- a/crates/web-sys/src/features/gen_PerformanceObserverEntryList.rs +++ b/crates/web-sys/src/features/gen_PerformanceObserverEntryList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceObserverEntryList , typescript_type = "PerformanceObserverEntryList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PerformanceObserverEntryList", + typescript_type = "PerformanceObserverEntryList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceObserverEntryList` class."] #[doc = ""] @@ -11,7 +15,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub type PerformanceObserverEntryList; - # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserverEntryList", + js_name = "getEntries" + )] #[doc = "The `getEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"] @@ -19,7 +28,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub fn get_entries(this: &PerformanceObserverEntryList) -> ::js_sys::Array; #[cfg(feature = "PerformanceEntryFilterOptions")] - # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserverEntryList", + js_name = "getEntries" + )] #[doc = "The `getEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"] @@ -29,14 +43,24 @@ extern "C" { this: &PerformanceObserverEntryList, filter: &PerformanceEntryFilterOptions, ) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserverEntryList", + js_name = "getEntriesByName" + )] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub fn get_entries_by_name(this: &PerformanceObserverEntryList, name: &str) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserverEntryList", + js_name = "getEntriesByName" + )] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"] @@ -47,7 +71,12 @@ extern "C" { name: &str, entry_type: &str, ) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByType)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceObserverEntryList", + js_name = "getEntriesByType" + )] #[doc = "The `getEntriesByType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)"] diff --git a/crates/web-sys/src/features/gen_PerformanceObserverInit.rs b/crates/web-sys/src/features/gen_PerformanceObserverInit.rs index cdfef4c53e3..e21b1da8a7b 100644 --- a/crates/web-sys/src/features/gen_PerformanceObserverInit.rs +++ b/crates/web-sys/src/features/gen_PerformanceObserverInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceObserverInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PerformanceObserverInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceObserverInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs b/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs index 4aa5d2e721d..96fa8ba2989 100644 --- a/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs +++ b/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceResourceTiming , typescript_type = "PerformanceResourceTiming")] + #[wasm_bindgen( + extends = "PerformanceEntry", + extends = "::js_sys::Object", + js_name = "PerformanceResourceTiming", + typescript_type = "PerformanceResourceTiming" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceResourceTiming` class."] #[doc = ""] @@ -11,133 +16,246 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub type PerformanceResourceTiming; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = initiatorType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "initiatorType" + )] #[doc = "Getter for the `initiatorType` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = nextHopProtocol)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = workerStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "workerStart" + )] #[doc = "Getter for the `workerStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/workerStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn worker_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "redirectStart" + )] #[doc = "Getter for the `redirectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn redirect_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "redirectEnd" + )] #[doc = "Getter for the `redirectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn redirect_end(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = fetchStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "fetchStart" + )] #[doc = "Getter for the `fetchStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/fetchStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn fetch_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "domainLookupStart" + )] #[doc = "Getter for the `domainLookupStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn domain_lookup_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "domainLookupEnd" + )] #[doc = "Getter for the `domainLookupEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn domain_lookup_end(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "connectStart" + )] #[doc = "Getter for the `connectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn connect_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "connectEnd" + )] #[doc = "Getter for the `connectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn connect_end(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = secureConnectionStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "secureConnectionStart" + )] #[doc = "Getter for the `secureConnectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn secure_connection_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = requestStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "requestStart" + )] #[doc = "Getter for the `requestStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/requestStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn request_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "responseStart" + )] #[doc = "Getter for the `responseStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn response_start(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "responseEnd" + )] #[doc = "Getter for the `responseEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn response_end(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = transferSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "transferSize" + )] #[doc = "Getter for the `transferSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/transferSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn transfer_size(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = encodedBodySize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "encodedBodySize" + )] #[doc = "Getter for the `encodedBodySize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/encodedBodySize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn encoded_body_size(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = decodedBodySize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "decodedBodySize" + )] #[doc = "Getter for the `decodedBodySize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/decodedBodySize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn decoded_body_size(this: &PerformanceResourceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = serverTiming)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceResourceTiming", + js_name = "serverTiming" + )] #[doc = "Getter for the `serverTiming` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/serverTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn server_timing(this: &PerformanceResourceTiming) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "PerformanceResourceTiming" , js_name = toJSON)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceResourceTiming", + js_name = "toJSON" + )] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PerformanceServerTiming.rs b/crates/web-sys/src/features/gen_PerformanceServerTiming.rs index 2b77307e4ed..c5d7926e022 100644 --- a/crates/web-sys/src/features/gen_PerformanceServerTiming.rs +++ b/crates/web-sys/src/features/gen_PerformanceServerTiming.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceServerTiming , typescript_type = "PerformanceServerTiming")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PerformanceServerTiming", + typescript_type = "PerformanceServerTiming" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceServerTiming` class."] #[doc = ""] @@ -11,28 +15,51 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub type PerformanceServerTiming; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceServerTiming" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceServerTiming", + 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/PerformanceServerTiming/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub fn name(this: &PerformanceServerTiming) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceServerTiming" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceServerTiming", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub fn duration(this: &PerformanceServerTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceServerTiming" , js_name = description)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceServerTiming", + js_name = "description" + )] #[doc = "Getter for the `description` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "PerformanceServerTiming" , js_name = toJSON)] + #[wasm_bindgen( + method, + structural, + js_class = "PerformanceServerTiming", + js_name = "toJSON" + )] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PerformanceTiming.rs b/crates/web-sys/src/features/gen_PerformanceTiming.rs index f1fc6e29b5a..f8cd6328f80 100644 --- a/crates/web-sys/src/features/gen_PerformanceTiming.rs +++ b/crates/web-sys/src/features/gen_PerformanceTiming.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceTiming , typescript_type = "PerformanceTiming")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PerformanceTiming", + typescript_type = "PerformanceTiming" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceTiming` class."] #[doc = ""] @@ -11,168 +15,306 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub type PerformanceTiming; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = navigationStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "navigationStart" + )] #[doc = "Getter for the `navigationStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/navigationStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn navigation_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "unloadEventStart" + )] #[doc = "Getter for the `unloadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn unload_event_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "unloadEventEnd" + )] #[doc = "Getter for the `unloadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn unload_event_end(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "redirectStart" + )] #[doc = "Getter for the `redirectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn redirect_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "redirectEnd" + )] #[doc = "Getter for the `redirectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn redirect_end(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = fetchStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "fetchStart" + )] #[doc = "Getter for the `fetchStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/fetchStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn fetch_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "domainLookupStart" + )] #[doc = "Getter for the `domainLookupStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn domain_lookup_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "domainLookupEnd" + )] #[doc = "Getter for the `domainLookupEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn domain_lookup_end(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = connectStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "connectStart" + )] #[doc = "Getter for the `connectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn connect_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = connectEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "connectEnd" + )] #[doc = "Getter for the `connectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn connect_end(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = secureConnectionStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "secureConnectionStart" + )] #[doc = "Getter for the `secureConnectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/secureConnectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn secure_connection_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = requestStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "requestStart" + )] #[doc = "Getter for the `requestStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/requestStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn request_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = responseStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "responseStart" + )] #[doc = "Getter for the `responseStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn response_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = responseEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "responseEnd" + )] #[doc = "Getter for the `responseEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn response_end(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domLoading)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "domLoading" + )] #[doc = "Getter for the `domLoading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domLoading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_loading(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domInteractive)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "domInteractive" + )] #[doc = "Getter for the `domInteractive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domInteractive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_interactive(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "domContentLoadedEventStart" + )] #[doc = "Getter for the `domContentLoadedEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_content_loaded_event_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "domContentLoadedEventEnd" + )] #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_content_loaded_event_end(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domComplete)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "domComplete" + )] #[doc = "Getter for the `domComplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domComplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_complete(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "loadEventStart" + )] #[doc = "Getter for the `loadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn load_event_start(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "loadEventEnd" + )] #[doc = "Getter for the `loadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn load_event_end(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToNonBlankPaint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "timeToNonBlankPaint" + )] #[doc = "Getter for the `timeToNonBlankPaint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToNonBlankPaint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn time_to_non_blank_paint(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToDOMContentFlushed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PerformanceTiming", + js_name = "timeToDOMContentFlushed" + )] #[doc = "Getter for the `timeToDOMContentFlushed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToDOMContentFlushed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn time_to_dom_content_flushed(this: &PerformanceTiming) -> f64; - # [wasm_bindgen (method , structural , js_class = "PerformanceTiming" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "PerformanceTiming", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/toJSON)"] diff --git a/crates/web-sys/src/features/gen_PeriodicWave.rs b/crates/web-sys/src/features/gen_PeriodicWave.rs index a9ffc385582..5adedb92320 100644 --- a/crates/web-sys/src/features/gen_PeriodicWave.rs +++ b/crates/web-sys/src/features/gen_PeriodicWave.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PeriodicWave , typescript_type = "PeriodicWave")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PeriodicWave", + typescript_type = "PeriodicWave" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PeriodicWave` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PeriodicWaveConstraints.rs b/crates/web-sys/src/features/gen_PeriodicWaveConstraints.rs index 363337d8166..94c5e47fb5a 100644 --- a/crates/web-sys/src/features/gen_PeriodicWaveConstraints.rs +++ b/crates/web-sys/src/features/gen_PeriodicWaveConstraints.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PeriodicWaveConstraints)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PeriodicWaveConstraints")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PeriodicWaveConstraints` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PeriodicWaveOptions.rs b/crates/web-sys/src/features/gen_PeriodicWaveOptions.rs index e4db19baaa4..40e0ce81a9a 100644 --- a/crates/web-sys/src/features/gen_PeriodicWaveOptions.rs +++ b/crates/web-sys/src/features/gen_PeriodicWaveOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PeriodicWaveOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PeriodicWaveOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PeriodicWaveOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PermissionDescriptor.rs b/crates/web-sys/src/features/gen_PermissionDescriptor.rs index 4662732dfc8..377b1986a5f 100644 --- a/crates/web-sys/src/features/gen_PermissionDescriptor.rs +++ b/crates/web-sys/src/features/gen_PermissionDescriptor.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PermissionDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PermissionDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PermissionDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PermissionStatus.rs b/crates/web-sys/src/features/gen_PermissionStatus.rs index 7b2cacd3487..91d85ec1c14 100644 --- a/crates/web-sys/src/features/gen_PermissionStatus.rs +++ b/crates/web-sys/src/features/gen_PermissionStatus.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PermissionStatus , typescript_type = "PermissionStatus")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "PermissionStatus", + typescript_type = "PermissionStatus" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PermissionStatus` class."] #[doc = ""] @@ -12,21 +17,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] pub type PermissionStatus; #[cfg(feature = "PermissionState")] - # [wasm_bindgen (structural , method , getter , js_class = "PermissionStatus" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PermissionStatus", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionState`, `PermissionStatus`*"] pub fn state(this: &PermissionStatus) -> PermissionState; - # [wasm_bindgen (structural , method , getter , js_class = "PermissionStatus" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PermissionStatus", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] pub fn onchange(this: &PermissionStatus) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PermissionStatus" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PermissionStatus", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"] diff --git a/crates/web-sys/src/features/gen_Permissions.rs b/crates/web-sys/src/features/gen_Permissions.rs index 4d57a8dc10a..6503f5fa09e 100644 --- a/crates/web-sys/src/features/gen_Permissions.rs +++ b/crates/web-sys/src/features/gen_Permissions.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Permissions , typescript_type = "Permissions")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Permissions", + typescript_type = "Permissions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Permissions` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Permissions`*"] pub type Permissions; - # [wasm_bindgen (catch , method , structural , js_class = "Permissions" , js_name = query)] + #[wasm_bindgen(catch, method, structural, js_class = "Permissions", js_name = "query")] #[doc = "The `query()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query)"] @@ -21,7 +25,13 @@ extern "C" { this: &Permissions, permission: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Permissions" , js_name = revoke)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Permissions", + js_name = "revoke" + )] #[doc = "The `revoke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke)"] diff --git a/crates/web-sys/src/features/gen_PlaneLayout.rs b/crates/web-sys/src/features/gen_PlaneLayout.rs index 9b9b4bf4e7b..e912e99a4b0 100644 --- a/crates/web-sys/src/features/gen_PlaneLayout.rs +++ b/crates/web-sys/src/features/gen_PlaneLayout.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PlaneLayout)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PlaneLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PlaneLayout` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Plugin.rs b/crates/web-sys/src/features/gen_Plugin.rs index 5ca731a9057..417d8a71cae 100644 --- a/crates/web-sys/src/features/gen_Plugin.rs +++ b/crates/web-sys/src/features/gen_Plugin.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Plugin , typescript_type = "Plugin")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Plugin", + typescript_type = "Plugin" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Plugin` class."] #[doc = ""] @@ -11,35 +15,41 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub type Plugin; - # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = description)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Plugin", + js_name = "description" + )] #[doc = "Getter for the `description` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = filename)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = version)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = name)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = length)] + #[wasm_bindgen(structural, method, getter, js_class = "Plugin", js_name = "length")] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/length)"] @@ -47,7 +57,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub fn length(this: &Plugin) -> u32; #[cfg(feature = "MimeType")] - # [wasm_bindgen (method , structural , js_class = "Plugin" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "Plugin", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/item)"] @@ -55,7 +65,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] pub fn item(this: &Plugin, index: u32) -> Option; #[cfg(feature = "MimeType")] - # [wasm_bindgen (method , structural , js_class = "Plugin" , js_name = namedItem)] + #[wasm_bindgen(method, structural, js_class = "Plugin", js_name = "namedItem")] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/namedItem)"] diff --git a/crates/web-sys/src/features/gen_PluginArray.rs b/crates/web-sys/src/features/gen_PluginArray.rs index e31d5458ed0..c671a8d1f5a 100644 --- a/crates/web-sys/src/features/gen_PluginArray.rs +++ b/crates/web-sys/src/features/gen_PluginArray.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PluginArray , typescript_type = "PluginArray")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PluginArray", + typescript_type = "PluginArray" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PluginArray` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] pub type PluginArray; - # [wasm_bindgen (structural , method , getter , js_class = "PluginArray" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PluginArray", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/length)"] @@ -19,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] pub fn length(this: &PluginArray) -> u32; #[cfg(feature = "Plugin")] - # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "PluginArray", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/item)"] @@ -27,21 +37,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] pub fn item(this: &PluginArray, index: u32) -> Option; #[cfg(feature = "Plugin")] - # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = namedItem)] + #[wasm_bindgen(method, structural, js_class = "PluginArray", js_name = "namedItem")] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] pub fn named_item(this: &PluginArray, name: &str) -> Option; - # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = refresh)] + #[wasm_bindgen(method, structural, js_class = "PluginArray", js_name = "refresh")] #[doc = "The `refresh()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] pub fn refresh(this: &PluginArray); - # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = refresh)] + #[wasm_bindgen(method, structural, js_class = "PluginArray", js_name = "refresh")] #[doc = "The `refresh()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"] diff --git a/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs b/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs index b400555b55c..18b2449fb26 100644 --- a/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs +++ b/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PluginCrashedEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PluginCrashedEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PluginCrashedEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PointerEvent.rs b/crates/web-sys/src/features/gen_PointerEvent.rs index 7bdd3c987c0..a34bcdf68e9 100644 --- a/crates/web-sys/src/features/gen_PointerEvent.rs +++ b/crates/web-sys/src/features/gen_PointerEvent.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = PointerEvent , typescript_type = "PointerEvent")] + #[wasm_bindgen( + extends = "MouseEvent", + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "PointerEvent", + typescript_type = "PointerEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PointerEvent` class."] #[doc = ""] @@ -11,70 +18,130 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub type PointerEvent; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pointerId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "pointerId" + )] #[doc = "Getter for the `pointerId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn pointer_id(this: &PointerEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn width(this: &PointerEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn height(this: &PointerEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pressure)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "pressure" + )] #[doc = "Getter for the `pressure` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn pressure(this: &PointerEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tangentialPressure)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "tangentialPressure" + )] #[doc = "Getter for the `tangentialPressure` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tangentialPressure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn tangential_pressure(this: &PointerEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tiltX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "tiltX" + )] #[doc = "Getter for the `tiltX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn tilt_x(this: &PointerEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tiltY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "tiltY" + )] #[doc = "Getter for the `tiltY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn tilt_y(this: &PointerEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = twist)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "twist" + )] #[doc = "Getter for the `twist` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/twist)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn twist(this: &PointerEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pointerType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "pointerType" + )] #[doc = "Getter for the `pointerType` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = isPrimary)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PointerEvent", + js_name = "isPrimary" + )] #[doc = "Getter for the `isPrimary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary)"] @@ -99,7 +166,12 @@ extern "C" { type_: &str, event_init_dict: &PointerEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "PointerEvent" , js_name = getCoalescedEvents)] + #[wasm_bindgen( + method, + structural, + js_class = "PointerEvent", + js_name = "getCoalescedEvents" + )] #[doc = "The `getCoalescedEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/getCoalescedEvents)"] diff --git a/crates/web-sys/src/features/gen_PointerEventInit.rs b/crates/web-sys/src/features/gen_PointerEventInit.rs index 30655a4ab88..ebe7bf21bd9 100644 --- a/crates/web-sys/src/features/gen_PointerEventInit.rs +++ b/crates/web-sys/src/features/gen_PointerEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PointerEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PointerEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PointerEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PopStateEvent.rs b/crates/web-sys/src/features/gen_PopStateEvent.rs index 5fac86918f5..6f8ed165abf 100644 --- a/crates/web-sys/src/features/gen_PopStateEvent.rs +++ b/crates/web-sys/src/features/gen_PopStateEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PopStateEvent , typescript_type = "PopStateEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "PopStateEvent", + typescript_type = "PopStateEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopStateEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`*"] pub type PopStateEvent; - # [wasm_bindgen (structural , method , getter , js_class = "PopStateEvent" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PopStateEvent", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/state)"] diff --git a/crates/web-sys/src/features/gen_PopStateEventInit.rs b/crates/web-sys/src/features/gen_PopStateEventInit.rs index f1a0653c717..dfad9d89178 100644 --- a/crates/web-sys/src/features/gen_PopStateEventInit.rs +++ b/crates/web-sys/src/features/gen_PopStateEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PopStateEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PopStateEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopStateEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PopupBlockedEvent.rs b/crates/web-sys/src/features/gen_PopupBlockedEvent.rs index 22b008868ac..9a137ed822b 100644 --- a/crates/web-sys/src/features/gen_PopupBlockedEvent.rs +++ b/crates/web-sys/src/features/gen_PopupBlockedEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PopupBlockedEvent , typescript_type = "PopupBlockedEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "PopupBlockedEvent", + typescript_type = "PopupBlockedEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopupBlockedEvent` class."] #[doc = ""] @@ -12,21 +17,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] pub type PopupBlockedEvent; #[cfg(feature = "Window")] - # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = requestingWindow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PopupBlockedEvent", + js_name = "requestingWindow" + )] #[doc = "Getter for the `requestingWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/requestingWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `Window`*"] pub fn requesting_window(this: &PopupBlockedEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PopupBlockedEvent", + js_name = "popupWindowName" + )] #[doc = "Getter for the `popupWindowName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowFeatures)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs b/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs index 81494ec06bb..492a0285b41 100644 --- a/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs +++ b/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PopupBlockedEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PopupBlockedEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopupBlockedEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Position.rs b/crates/web-sys/src/features/gen_Position.rs index b8e1dfaed53..621b8b1ae73 100644 --- a/crates/web-sys/src/features/gen_Position.rs +++ b/crates/web-sys/src/features/gen_Position.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Position , typescript_type = "Position")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "Position" , typescript_type = "Position")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Position` class."] #[doc = ""] @@ -12,14 +12,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Position`*"] pub type Position; #[cfg(feature = "Coordinates")] - # [wasm_bindgen (structural , method , getter , js_class = "Position" , js_name = coords)] + #[wasm_bindgen(structural, method, getter, js_class = "Position", js_name = "coords")] #[doc = "Getter for the `coords` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`, `Position`*"] pub fn coords(this: &Position) -> Coordinates; - # [wasm_bindgen (structural , method , getter , js_class = "Position" , js_name = timestamp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Position", + js_name = "timestamp" + )] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/timestamp)"] diff --git a/crates/web-sys/src/features/gen_PositionError.rs b/crates/web-sys/src/features/gen_PositionError.rs index b21b7586b33..cf9cda3a895 100644 --- a/crates/web-sys/src/features/gen_PositionError.rs +++ b/crates/web-sys/src/features/gen_PositionError.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = PositionError , typescript_type = "PositionError")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "PositionError" , typescript_type = "PositionError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PositionError` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub type PositionError; - # [wasm_bindgen (structural , method , getter , js_class = "PositionError" , js_name = code)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PositionError", + 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/PositionError/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub fn code(this: &PositionError) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "PositionError" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PositionError", + 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/PositionError/message)"] diff --git a/crates/web-sys/src/features/gen_PositionOptions.rs b/crates/web-sys/src/features/gen_PositionOptions.rs index 30c0b106354..3f23da3b148 100644 --- a/crates/web-sys/src/features/gen_PositionOptions.rs +++ b/crates/web-sys/src/features/gen_PositionOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PositionOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PositionOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PositionOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Presentation.rs b/crates/web-sys/src/features/gen_Presentation.rs index 428975568de..61c4ba77a15 100644 --- a/crates/web-sys/src/features/gen_Presentation.rs +++ b/crates/web-sys/src/features/gen_Presentation.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Presentation , typescript_type = "Presentation")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Presentation", + typescript_type = "Presentation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Presentation` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Presentation`*"] pub type Presentation; #[cfg(feature = "PresentationRequest")] - # [wasm_bindgen (structural , method , getter , js_class = "Presentation" , js_name = defaultRequest)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Presentation", + js_name = "defaultRequest" + )] #[doc = "Getter for the `defaultRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"] pub fn default_request(this: &Presentation) -> Option; #[cfg(feature = "PresentationRequest")] - # [wasm_bindgen (structural , method , setter , js_class = "Presentation" , js_name = defaultRequest)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Presentation", + js_name = "defaultRequest" + )] #[doc = "Setter for the `defaultRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"] @@ -28,7 +44,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"] pub fn set_default_request(this: &Presentation, value: Option<&PresentationRequest>); #[cfg(feature = "PresentationReceiver")] - # [wasm_bindgen (structural , method , getter , js_class = "Presentation" , js_name = receiver)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Presentation", + js_name = "receiver" + )] #[doc = "Getter for the `receiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/receiver)"] diff --git a/crates/web-sys/src/features/gen_PresentationAvailability.rs b/crates/web-sys/src/features/gen_PresentationAvailability.rs index 90ea7c55cf1..4722a1cedcb 100644 --- a/crates/web-sys/src/features/gen_PresentationAvailability.rs +++ b/crates/web-sys/src/features/gen_PresentationAvailability.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationAvailability , typescript_type = "PresentationAvailability")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "PresentationAvailability", + typescript_type = "PresentationAvailability" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationAvailability` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] pub type PresentationAvailability; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationAvailability" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationAvailability", + 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/PresentationAvailability/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] pub fn value(this: &PresentationAvailability) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationAvailability" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationAvailability", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] pub fn onchange(this: &PresentationAvailability) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PresentationAvailability" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationAvailability", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"] diff --git a/crates/web-sys/src/features/gen_PresentationConnection.rs b/crates/web-sys/src/features/gen_PresentationConnection.rs index 8c4977879fa..4e977886bb9 100644 --- a/crates/web-sys/src/features/gen_PresentationConnection.rs +++ b/crates/web-sys/src/features/gen_PresentationConnection.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationConnection , typescript_type = "PresentationConnection")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "PresentationConnection", + typescript_type = "PresentationConnection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnection` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub type PresentationConnection; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = id)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnection", + 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/PresentationConnection/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn id(this: &PresentationConnection) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = url)] + #[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)"] @@ -26,49 +43,91 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn url(this: &PresentationConnection) -> String; #[cfg(feature = "PresentationConnectionState")] - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnection", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionState`*"] pub fn state(this: &PresentationConnection) -> PresentationConnectionState; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onconnect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnection", + js_name = "onconnect" + )] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onconnect(this: &PresentationConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onconnect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationConnection", + js_name = "onconnect" + )] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onconnect(this: &PresentationConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnection", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onclose(this: &PresentationConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationConnection", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onclose(this: &PresentationConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onterminate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnection", + js_name = "onterminate" + )] #[doc = "Getter for the `onterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onterminate(this: &PresentationConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onterminate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationConnection", + js_name = "onterminate" + )] #[doc = "Setter for the `onterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] @@ -76,7 +135,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onterminate(this: &PresentationConnection, value: Option<&::js_sys::Function>); #[cfg(feature = "PresentationConnectionBinaryType")] - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = binaryType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnection", + js_name = "binaryType" + )] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] @@ -84,35 +149,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] pub fn binary_type(this: &PresentationConnection) -> PresentationConnectionBinaryType; #[cfg(feature = "PresentationConnectionBinaryType")] - # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = binaryType)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationConnection", + js_name = "binaryType" + )] #[doc = "Setter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] pub fn set_binary_type(this: &PresentationConnection, value: PresentationConnectionBinaryType); - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnection", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onmessage(this: &PresentationConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationConnection", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onmessage(this: &PresentationConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = close)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationConnection", + js_name = "close" + )] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn close(this: &PresentationConnection) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationConnection", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] @@ -120,14 +215,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_str(this: &PresentationConnection, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationConnection", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `PresentationConnection`*"] pub fn send_with_blob(this: &PresentationConnection, data: &Blob) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationConnection", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] @@ -137,7 +244,13 @@ extern "C" { this: &PresentationConnection, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationConnection", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] @@ -147,14 +260,26 @@ extern "C" { this: &PresentationConnection, data: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationConnection", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_u8_array(this: &PresentationConnection, data: &[u8]) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = terminate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationConnection", + js_name = "terminate" + )] #[doc = "The `terminate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/terminate)"] diff --git a/crates/web-sys/src/features/gen_PresentationConnectionAvailableEvent.rs b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEvent.rs index 203c6b14aa3..d65481d573e 100644 --- a/crates/web-sys/src/features/gen_PresentationConnectionAvailableEvent.rs +++ b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PresentationConnectionAvailableEvent , typescript_type = "PresentationConnectionAvailableEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "PresentationConnectionAvailableEvent", + typescript_type = "PresentationConnectionAvailableEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionAvailableEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEvent`*"] pub type PresentationConnectionAvailableEvent; #[cfg(feature = "PresentationConnection")] - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionAvailableEvent" , js_name = connection)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnectionAvailableEvent", + js_name = "connection" + )] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionAvailableEvent/connection)"] diff --git a/crates/web-sys/src/features/gen_PresentationConnectionAvailableEventInit.rs b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEventInit.rs index 8ea8b696208..5119eaf43f3 100644 --- a/crates/web-sys/src/features/gen_PresentationConnectionAvailableEventInit.rs +++ b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PresentationConnectionAvailableEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PresentationConnectionAvailableEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionAvailableEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs b/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs index 405b2e59da6..ed17a7dcd2c 100644 --- a/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs +++ b/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PresentationConnectionCloseEvent , typescript_type = "PresentationConnectionCloseEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "PresentationConnectionCloseEvent", + typescript_type = "PresentationConnectionCloseEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionCloseEvent` class."] #[doc = ""] @@ -12,14 +17,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"] pub type PresentationConnectionCloseEvent; #[cfg(feature = "PresentationConnectionClosedReason")] - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = reason)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnectionCloseEvent", + js_name = "reason" + )] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`, `PresentationConnectionClosedReason`*"] pub fn reason(this: &PresentationConnectionCloseEvent) -> PresentationConnectionClosedReason; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnectionCloseEvent", + 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/PresentationConnectionCloseEvent/message)"] diff --git a/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs b/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs index 9a7c221c232..b0032ca194f 100644 --- a/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs +++ b/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PresentationConnectionCloseEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PresentationConnectionCloseEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionCloseEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PresentationConnectionList.rs b/crates/web-sys/src/features/gen_PresentationConnectionList.rs index c1c95cba5bd..e62365691b5 100644 --- a/crates/web-sys/src/features/gen_PresentationConnectionList.rs +++ b/crates/web-sys/src/features/gen_PresentationConnectionList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationConnectionList , typescript_type = "PresentationConnectionList")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "PresentationConnectionList", + typescript_type = "PresentationConnectionList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionList` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] pub type PresentationConnectionList; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionList" , js_name = connections)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnectionList", + js_name = "connections" + )] #[doc = "Getter for the `connections` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/connections)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] pub fn connections(this: &PresentationConnectionList) -> ::js_sys::Array; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionList" , js_name = onconnectionavailable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationConnectionList", + js_name = "onconnectionavailable" + )] #[doc = "Getter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] pub fn onconnectionavailable(this: &PresentationConnectionList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnectionList" , js_name = onconnectionavailable)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationConnectionList", + js_name = "onconnectionavailable" + )] #[doc = "Setter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"] diff --git a/crates/web-sys/src/features/gen_PresentationReceiver.rs b/crates/web-sys/src/features/gen_PresentationReceiver.rs index 5e1388a6e20..673180e674a 100644 --- a/crates/web-sys/src/features/gen_PresentationReceiver.rs +++ b/crates/web-sys/src/features/gen_PresentationReceiver.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PresentationReceiver , typescript_type = "PresentationReceiver")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PresentationReceiver", + typescript_type = "PresentationReceiver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationReceiver` class."] #[doc = ""] @@ -11,7 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationReceiver`*"] pub type PresentationReceiver; - # [wasm_bindgen (structural , catch , method , getter , js_class = "PresentationReceiver" , js_name = connectionList)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "PresentationReceiver", + js_name = "connectionList" + )] #[doc = "Getter for the `connectionList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationReceiver/connectionList)"] diff --git a/crates/web-sys/src/features/gen_PresentationRequest.rs b/crates/web-sys/src/features/gen_PresentationRequest.rs index 484b4c3f0b0..d0ed0cfe146 100644 --- a/crates/web-sys/src/features/gen_PresentationRequest.rs +++ b/crates/web-sys/src/features/gen_PresentationRequest.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationRequest , typescript_type = "PresentationRequest")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "PresentationRequest", + typescript_type = "PresentationRequest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationRequest` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub type PresentationRequest; - # [wasm_bindgen (structural , method , getter , js_class = "PresentationRequest" , js_name = onconnectionavailable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PresentationRequest", + js_name = "onconnectionavailable" + )] #[doc = "Getter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn onconnectionavailable(this: &PresentationRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "PresentationRequest" , js_name = onconnectionavailable)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "PresentationRequest", + js_name = "onconnectionavailable" + )] #[doc = "Setter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"] @@ -42,14 +59,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn new_with_urls(urls: &::wasm_bindgen::JsValue) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = getAvailability)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationRequest", + js_name = "getAvailability" + )] #[doc = "The `getAvailability()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/getAvailability)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn get_availability(this: &PresentationRequest) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = reconnect)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationRequest", + js_name = "reconnect" + )] #[doc = "The `reconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/reconnect)"] @@ -59,7 +88,13 @@ extern "C" { this: &PresentationRequest, presentation_id: &str, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PresentationRequest", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/start)"] diff --git a/crates/web-sys/src/features/gen_ProcessingInstruction.rs b/crates/web-sys/src/features/gen_ProcessingInstruction.rs index 158f56bf89e..6457725a90f 100644 --- a/crates/web-sys/src/features/gen_ProcessingInstruction.rs +++ b/crates/web-sys/src/features/gen_ProcessingInstruction.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ProcessingInstruction , typescript_type = "ProcessingInstruction")] + #[wasm_bindgen( + extends = "CharacterData", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ProcessingInstruction", + typescript_type = "ProcessingInstruction" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProcessingInstruction` class."] #[doc = ""] @@ -11,7 +18,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"] pub type ProcessingInstruction; - # [wasm_bindgen (structural , method , getter , js_class = "ProcessingInstruction" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ProcessingInstruction", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/target)"] @@ -19,7 +32,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"] pub fn target(this: &ProcessingInstruction) -> String; #[cfg(feature = "StyleSheet")] - # [wasm_bindgen (structural , method , getter , js_class = "ProcessingInstruction" , js_name = sheet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ProcessingInstruction", + js_name = "sheet" + )] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet)"] diff --git a/crates/web-sys/src/features/gen_ProfileTimelineLayerRect.rs b/crates/web-sys/src/features/gen_ProfileTimelineLayerRect.rs index b16776e3f42..8bdddc6c8db 100644 --- a/crates/web-sys/src/features/gen_ProfileTimelineLayerRect.rs +++ b/crates/web-sys/src/features/gen_ProfileTimelineLayerRect.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProfileTimelineLayerRect)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ProfileTimelineLayerRect")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProfileTimelineLayerRect` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs b/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs index f12f1a6b08d..b9b31f37061 100644 --- a/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs +++ b/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProfileTimelineMarker)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ProfileTimelineMarker")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProfileTimelineMarker` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs b/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs index 79bd3b74f2d..f7894e70860 100644 --- a/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs +++ b/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProfileTimelineStackFrame)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ProfileTimelineStackFrame")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProfileTimelineStackFrame` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ProgressEvent.rs b/crates/web-sys/src/features/gen_ProgressEvent.rs index 8ab6d36af81..8934d32b991 100644 --- a/crates/web-sys/src/features/gen_ProgressEvent.rs +++ b/crates/web-sys/src/features/gen_ProgressEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ProgressEvent , typescript_type = "ProgressEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "ProgressEvent", + typescript_type = "ProgressEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProgressEvent` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub type ProgressEvent; - # [wasm_bindgen (structural , method , getter , js_class = "ProgressEvent" , js_name = lengthComputable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ProgressEvent", + js_name = "lengthComputable" + )] #[doc = "Getter for the `lengthComputable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/lengthComputable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub fn length_computable(this: &ProgressEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ProgressEvent" , js_name = loaded)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ProgressEvent", + js_name = "loaded" + )] #[doc = "Getter for the `loaded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/loaded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub fn loaded(this: &ProgressEvent) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "ProgressEvent" , js_name = total)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ProgressEvent", + js_name = "total" + )] #[doc = "Getter for the `total` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/total)"] diff --git a/crates/web-sys/src/features/gen_ProgressEventInit.rs b/crates/web-sys/src/features/gen_ProgressEventInit.rs index ea6a5fe1113..99d6e6bbf03 100644 --- a/crates/web-sys/src/features/gen_ProgressEventInit.rs +++ b/crates/web-sys/src/features/gen_ProgressEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProgressEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ProgressEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProgressEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PromiseNativeHandler.rs b/crates/web-sys/src/features/gen_PromiseNativeHandler.rs index 6fbf1acf5bc..9392de7bdf0 100644 --- a/crates/web-sys/src/features/gen_PromiseNativeHandler.rs +++ b/crates/web-sys/src/features/gen_PromiseNativeHandler.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = PromiseNativeHandler , typescript_type = "PromiseNativeHandler")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "PromiseNativeHandler" , typescript_type = "PromiseNativeHandler")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PromiseNativeHandler` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PromiseRejectionEvent.rs b/crates/web-sys/src/features/gen_PromiseRejectionEvent.rs index 6d7361f694e..8041f1121d0 100644 --- a/crates/web-sys/src/features/gen_PromiseRejectionEvent.rs +++ b/crates/web-sys/src/features/gen_PromiseRejectionEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PromiseRejectionEvent , typescript_type = "PromiseRejectionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "PromiseRejectionEvent", + typescript_type = "PromiseRejectionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PromiseRejectionEvent` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] pub type PromiseRejectionEvent; - # [wasm_bindgen (structural , method , getter , js_class = "PromiseRejectionEvent" , js_name = promise)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PromiseRejectionEvent", + js_name = "promise" + )] #[doc = "Getter for the `promise` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/promise)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] pub fn promise(this: &PromiseRejectionEvent) -> ::js_sys::Promise; - # [wasm_bindgen (structural , method , getter , js_class = "PromiseRejectionEvent" , js_name = reason)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PromiseRejectionEvent", + js_name = "reason" + )] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/reason)"] diff --git a/crates/web-sys/src/features/gen_PromiseRejectionEventInit.rs b/crates/web-sys/src/features/gen_PromiseRejectionEventInit.rs index 30375764e86..f1a35bd903c 100644 --- a/crates/web-sys/src/features/gen_PromiseRejectionEventInit.rs +++ b/crates/web-sys/src/features/gen_PromiseRejectionEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PromiseRejectionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PromiseRejectionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PromiseRejectionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredential.rs b/crates/web-sys/src/features/gen_PublicKeyCredential.rs index dd7f8cbd0d9..39f8ff871b3 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredential.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredential.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Credential , extends = :: js_sys :: Object , js_name = PublicKeyCredential , typescript_type = "PublicKeyCredential")] + #[wasm_bindgen( + extends = "Credential", + extends = "::js_sys::Object", + js_name = "PublicKeyCredential", + typescript_type = "PublicKeyCredential" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredential` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] pub type PublicKeyCredential; - # [wasm_bindgen (structural , method , getter , js_class = "PublicKeyCredential" , js_name = rawId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PublicKeyCredential", + 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/PublicKeyCredential/rawId)"] @@ -19,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] pub fn raw_id(this: &PublicKeyCredential) -> ::js_sys::ArrayBuffer; #[cfg(feature = "AuthenticatorResponse")] - # [wasm_bindgen (structural , method , getter , js_class = "PublicKeyCredential" , js_name = response)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PublicKeyCredential", + js_name = "response" + )] #[doc = "Getter for the `response` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/response)"] @@ -27,7 +44,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`, `PublicKeyCredential`*"] pub fn response(this: &PublicKeyCredential) -> AuthenticatorResponse; #[cfg(feature = "AuthenticationExtensionsClientOutputs")] - # [wasm_bindgen (method , structural , js_class = "PublicKeyCredential" , js_name = getClientExtensionResults)] + #[wasm_bindgen( + method, + structural, + js_class = "PublicKeyCredential", + js_name = "getClientExtensionResults" + )] #[doc = "The `getClientExtensionResults()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/getClientExtensionResults)"] @@ -36,7 +58,11 @@ extern "C" { pub fn get_client_extension_results( this: &PublicKeyCredential, ) -> AuthenticationExtensionsClientOutputs; - # [wasm_bindgen (static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = isUserVerifyingPlatformAuthenticatorAvailable)] + #[wasm_bindgen( + static_method_of = "PublicKeyCredential", + js_class = "PublicKeyCredential", + js_name = "isUserVerifyingPlatformAuthenticatorAvailable" + )] #[doc = "The `isUserVerifyingPlatformAuthenticatorAvailable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable)"] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptions.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptions.rs index e1a1ed72d02..1e8cb7ad86b 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptions.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialCreationOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PublicKeyCredentialCreationOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialCreationOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptor.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptor.rs index 907d346a349..0d878300e1a 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptor.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptor.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialDescriptor)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PublicKeyCredentialDescriptor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs index d5ca9f981a9..c31c7cb4ea7 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialEntity)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PublicKeyCredentialEntity")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialEntity` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialParameters.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialParameters.rs index 9eac4922f98..fe2b43193c4 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialParameters.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialParameters.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialParameters)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PublicKeyCredentialParameters" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs index 7db1ffdfe20..8040bcad38d 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialRequestOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PublicKeyCredentialRequestOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialRequestOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs index a1152f87b23..50cfe3400d3 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialRpEntity)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PublicKeyCredentialRpEntity")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialRpEntity` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs index d9e369cb00b..9f9f22cbc57 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialUserEntity)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PublicKeyCredentialUserEntity" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialUserEntity` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PushEvent.rs b/crates/web-sys/src/features/gen_PushEvent.rs index c22f03058c1..7514ed1b430 100644 --- a/crates/web-sys/src/features/gen_PushEvent.rs +++ b/crates/web-sys/src/features/gen_PushEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = PushEvent , typescript_type = "PushEvent")] + #[wasm_bindgen( + extends = "ExtendableEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "PushEvent", + typescript_type = "PushEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushEvent` class."] #[doc = ""] @@ -12,7 +18,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PushEvent`*"] pub type PushEvent; #[cfg(feature = "PushMessageData")] - # [wasm_bindgen (structural , method , getter , js_class = "PushEvent" , js_name = data)] + #[wasm_bindgen(structural, method, getter, js_class = "PushEvent", 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/PushEvent/data)"] diff --git a/crates/web-sys/src/features/gen_PushEventInit.rs b/crates/web-sys/src/features/gen_PushEventInit.rs index 35c41227270..c63dff0b57d 100644 --- a/crates/web-sys/src/features/gen_PushEventInit.rs +++ b/crates/web-sys/src/features/gen_PushEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PushEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PushManager.rs b/crates/web-sys/src/features/gen_PushManager.rs index b272c50677e..3e1449f434f 100644 --- a/crates/web-sys/src/features/gen_PushManager.rs +++ b/crates/web-sys/src/features/gen_PushManager.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushManager , typescript_type = "PushManager")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PushManager", + typescript_type = "PushManager" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushManager` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub type PushManager; - # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = getSubscription)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushManager", + js_name = "getSubscription" + )] #[doc = "The `getSubscription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/getSubscription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub fn get_subscription(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = permissionState)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushManager", + js_name = "permissionState" + )] #[doc = "The `permissionState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"] @@ -26,7 +42,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub fn permission_state(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "PushSubscriptionOptionsInit")] - # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = permissionState)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushManager", + js_name = "permissionState" + )] #[doc = "The `permissionState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"] @@ -36,7 +58,13 @@ extern "C" { this: &PushManager, options: &PushSubscriptionOptionsInit, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = subscribe)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushManager", + js_name = "subscribe" + )] #[doc = "The `subscribe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"] @@ -44,7 +72,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub fn subscribe(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "PushSubscriptionOptionsInit")] - # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = subscribe)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushManager", + js_name = "subscribe" + )] #[doc = "The `subscribe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"] diff --git a/crates/web-sys/src/features/gen_PushMessageData.rs b/crates/web-sys/src/features/gen_PushMessageData.rs index b641f968ec4..d5d75854640 100644 --- a/crates/web-sys/src/features/gen_PushMessageData.rs +++ b/crates/web-sys/src/features/gen_PushMessageData.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushMessageData , typescript_type = "PushMessageData")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PushMessageData", + typescript_type = "PushMessageData" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushMessageData` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] pub type PushMessageData; - # [wasm_bindgen (catch , method , structural , js_class = "PushMessageData" , js_name = arrayBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushMessageData", + js_name = "arrayBuffer" + )] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/arrayBuffer)"] @@ -19,21 +29,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] pub fn array_buffer(this: &PushMessageData) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "PushMessageData" , js_name = blob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushMessageData", + js_name = "blob" + )] #[doc = "The `blob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `PushMessageData`*"] pub fn blob(this: &PushMessageData) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "PushMessageData" , js_name = json)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushMessageData", + js_name = "json" + )] #[doc = "The `json()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/json)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] pub fn json(this: &PushMessageData) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (method , structural , js_class = "PushMessageData" , js_name = text)] + #[wasm_bindgen(method, structural, js_class = "PushMessageData", js_name = "text")] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/text)"] diff --git a/crates/web-sys/src/features/gen_PushSubscription.rs b/crates/web-sys/src/features/gen_PushSubscription.rs index 46d48290b37..7c832a6d85f 100644 --- a/crates/web-sys/src/features/gen_PushSubscription.rs +++ b/crates/web-sys/src/features/gen_PushSubscription.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscription , typescript_type = "PushSubscription")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PushSubscription", + typescript_type = "PushSubscription" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscription` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] pub type PushSubscription; - # [wasm_bindgen (structural , method , getter , js_class = "PushSubscription" , js_name = endpoint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PushSubscription", + js_name = "endpoint" + )] #[doc = "Getter for the `endpoint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] pub fn endpoint(this: &PushSubscription) -> String; #[cfg(feature = "PushSubscriptionOptions")] - # [wasm_bindgen (structural , method , getter , js_class = "PushSubscription" , js_name = options)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "PushSubscription", + js_name = "options" + )] #[doc = "Getter for the `options` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options)"] @@ -27,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PushSubscription`, `PushSubscriptionOptions`*"] pub fn options(this: &PushSubscription) -> PushSubscriptionOptions; #[cfg(feature = "PushEncryptionKeyName")] - # [wasm_bindgen (catch , method , structural , js_class = "PushSubscription" , js_name = getKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushSubscription", + js_name = "getKey" + )] #[doc = "The `getKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/getKey)"] @@ -38,14 +60,26 @@ extern "C" { name: PushEncryptionKeyName, ) -> Result, JsValue>; #[cfg(feature = "PushSubscriptionJson")] - # [wasm_bindgen (catch , method , structural , js_class = "PushSubscription" , js_name = toJSON)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushSubscription", + js_name = "toJSON" + )] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`, `PushSubscriptionJson`*"] pub fn to_json(this: &PushSubscription) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "PushSubscription" , js_name = unsubscribe)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "PushSubscription", + js_name = "unsubscribe" + )] #[doc = "The `unsubscribe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/unsubscribe)"] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionInit.rs b/crates/web-sys/src/features/gen_PushSubscriptionInit.rs index 9b7784a8e05..ccc5df39f3a 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionInit.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PushSubscriptionInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionJson.rs b/crates/web-sys/src/features/gen_PushSubscriptionJson.rs index 6859af3f7c1..3bd5e542846 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionJson.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionJson.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionJSON)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PushSubscriptionJSON")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionJson` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs b/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs index d42b47eacd7..402a0ae32ed 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionKeys)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PushSubscriptionKeys")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionKeys` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionOptions.rs b/crates/web-sys/src/features/gen_PushSubscriptionOptions.rs index de64371c593..bfd4a5e22f3 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionOptions.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionOptions.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionOptions , typescript_type = "PushSubscriptionOptions")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "PushSubscriptionOptions", + typescript_type = "PushSubscriptionOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionOptions` class."] #[doc = ""] @@ -11,7 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptions`*"] pub type PushSubscriptionOptions; - # [wasm_bindgen (structural , catch , method , getter , js_class = "PushSubscriptionOptions" , js_name = applicationServerKey)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "PushSubscriptionOptions", + js_name = "applicationServerKey" + )] #[doc = "Getter for the `applicationServerKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscriptionOptions/applicationServerKey)"] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionOptionsInit.rs b/crates/web-sys/src/features/gen_PushSubscriptionOptionsInit.rs index 1e9ae13ed27..335c8f63b50 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionOptionsInit.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionOptionsInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionOptionsInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "PushSubscriptionOptionsInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionOptionsInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_QueuingStrategy.rs b/crates/web-sys/src/features/gen_QueuingStrategy.rs index d94bdba8dce..2d2fa80dbd2 100644 --- a/crates/web-sys/src/features/gen_QueuingStrategy.rs +++ b/crates/web-sys/src/features/gen_QueuingStrategy.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = QueuingStrategy)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "QueuingStrategy")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `QueuingStrategy` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RadioNodeList.rs b/crates/web-sys/src/features/gen_RadioNodeList.rs index 91c2398099e..9eab3ca6a54 100644 --- a/crates/web-sys/src/features/gen_RadioNodeList.rs +++ b/crates/web-sys/src/features/gen_RadioNodeList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = NodeList , extends = :: js_sys :: Object , js_name = RadioNodeList , typescript_type = "RadioNodeList")] + #[wasm_bindgen( + extends = "NodeList", + extends = "::js_sys::Object", + js_name = "RadioNodeList", + typescript_type = "RadioNodeList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RadioNodeList` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] pub type RadioNodeList; - # [wasm_bindgen (structural , method , getter , js_class = "RadioNodeList" , js_name = value)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RadioNodeList", + 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/RadioNodeList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] pub fn value(this: &RadioNodeList) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "RadioNodeList" , js_name = value)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RadioNodeList", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value)"] diff --git a/crates/web-sys/src/features/gen_Range.rs b/crates/web-sys/src/features/gen_Range.rs index 1aa1f937bfb..3a945572aaf 100644 --- a/crates/web-sys/src/features/gen_Range.rs +++ b/crates/web-sys/src/features/gen_Range.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Range , typescript_type = "Range")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Range", + typescript_type = "Range" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Range` class."] #[doc = ""] @@ -12,14 +16,28 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub type Range; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = startContainer)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Range", + js_name = "startContainer" + )] #[doc = "Getter for the `startContainer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/startContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn start_container(this: &Range) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = startOffset)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Range", + js_name = "startOffset" + )] #[doc = "Getter for the `startOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/startOffset)"] @@ -27,21 +45,35 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn start_offset(this: &Range) -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = endContainer)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Range", + js_name = "endContainer" + )] #[doc = "Getter for the `endContainer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/endContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn end_container(this: &Range) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = endOffset)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Range", + js_name = "endOffset" + )] #[doc = "Getter for the `endOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/endOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn end_offset(this: &Range) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Range" , js_name = collapsed)] + #[wasm_bindgen(structural, method, getter, js_class = "Range", js_name = "collapsed")] #[doc = "Getter for the `collapsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapsed)"] @@ -49,7 +81,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn collapsed(this: &Range) -> bool; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = commonAncestorContainer)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Range", + js_name = "commonAncestorContainer" + )] #[doc = "Getter for the `commonAncestorContainer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/commonAncestorContainer)"] @@ -64,35 +103,47 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn new() -> Result; #[cfg(feature = "DocumentFragment")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = cloneContents)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "cloneContents" + )] #[doc = "The `cloneContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/cloneContents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] pub fn clone_contents(this: &Range) -> Result; - # [wasm_bindgen (method , structural , js_class = "Range" , js_name = cloneRange)] + #[wasm_bindgen(method, structural, js_class = "Range", js_name = "cloneRange")] #[doc = "The `cloneRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/cloneRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn clone_range(this: &Range) -> Range; - # [wasm_bindgen (method , structural , js_class = "Range" , js_name = collapse)] + #[wasm_bindgen(method, structural, js_class = "Range", js_name = "collapse")] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn collapse(this: &Range); - # [wasm_bindgen (method , structural , js_class = "Range" , js_name = collapse)] + #[wasm_bindgen(method, structural, js_class = "Range", js_name = "collapse")] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn collapse_with_to_start(this: &Range, to_start: bool); - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = compareBoundaryPoints)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "compareBoundaryPoints" + )] #[doc = "The `compareBoundaryPoints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/compareBoundaryPoints)"] @@ -104,7 +155,13 @@ extern "C" { source_range: &Range, ) -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = comparePoint)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "comparePoint" + )] #[doc = "The `comparePoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/comparePoint)"] @@ -112,7 +169,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn compare_point(this: &Range, node: &Node, offset: u32) -> Result; #[cfg(feature = "DocumentFragment")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = createContextualFragment)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "createContextualFragment" + )] #[doc = "The `createContextualFragment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/createContextualFragment)"] @@ -122,14 +185,20 @@ extern "C" { this: &Range, fragment: &str, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = deleteContents)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "deleteContents" + )] #[doc = "The `deleteContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/deleteContents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn delete_contents(this: &Range) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Range" , js_name = detach)] + #[wasm_bindgen(method, structural, js_class = "Range", js_name = "detach")] #[doc = "The `detach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/detach)"] @@ -137,7 +206,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn detach(this: &Range); #[cfg(feature = "DocumentFragment")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = extractContents)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "extractContents" + )] #[doc = "The `extractContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/extractContents)"] @@ -145,7 +220,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] pub fn extract_contents(this: &Range) -> Result; #[cfg(feature = "DomRect")] - # [wasm_bindgen (method , structural , js_class = "Range" , js_name = getBoundingClientRect)] + #[wasm_bindgen( + method, + structural, + js_class = "Range", + js_name = "getBoundingClientRect" + )] #[doc = "The `getBoundingClientRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/getBoundingClientRect)"] @@ -153,7 +233,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRect`, `Range`*"] pub fn get_bounding_client_rect(this: &Range) -> DomRect; #[cfg(feature = "DomRectList")] - # [wasm_bindgen (method , structural , js_class = "Range" , js_name = getClientRects)] + #[wasm_bindgen(method, structural, js_class = "Range", js_name = "getClientRects")] #[doc = "The `getClientRects()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/getClientRects)"] @@ -161,7 +241,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomRectList`, `Range`*"] pub fn get_client_rects(this: &Range) -> Option; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = insertNode)] + #[wasm_bindgen(catch, method, structural, js_class = "Range", js_name = "insertNode")] #[doc = "The `insertNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode)"] @@ -169,7 +249,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn insert_node(this: &Range, node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = intersectsNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "intersectsNode" + )] #[doc = "The `intersectsNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/intersectsNode)"] @@ -177,7 +263,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn intersects_node(this: &Range, node: &Node) -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = isPointInRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "isPointInRange" + )] #[doc = "The `isPointInRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/isPointInRange)"] @@ -185,7 +277,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn is_point_in_range(this: &Range, node: &Node, offset: u32) -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = selectNode)] + #[wasm_bindgen(catch, method, structural, js_class = "Range", js_name = "selectNode")] #[doc = "The `selectNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/selectNode)"] @@ -193,7 +285,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn select_node(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = selectNodeContents)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "selectNodeContents" + )] #[doc = "The `selectNodeContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/selectNodeContents)"] @@ -201,7 +299,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn select_node_contents(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setEnd)] + #[wasm_bindgen(catch, method, structural, js_class = "Range", js_name = "setEnd")] #[doc = "The `setEnd()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEnd)"] @@ -209,7 +307,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_end(this: &Range, ref_node: &Node, offset: u32) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setEndAfter)] + #[wasm_bindgen(catch, method, structural, js_class = "Range", js_name = "setEndAfter")] #[doc = "The `setEndAfter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEndAfter)"] @@ -217,7 +315,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_end_after(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setEndBefore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "setEndBefore" + )] #[doc = "The `setEndBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEndBefore)"] @@ -225,7 +329,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_end_before(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setStart)] + #[wasm_bindgen(catch, method, structural, js_class = "Range", js_name = "setStart")] #[doc = "The `setStart()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStart)"] @@ -233,7 +337,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_start(this: &Range, ref_node: &Node, offset: u32) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setStartAfter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "setStartAfter" + )] #[doc = "The `setStartAfter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStartAfter)"] @@ -241,7 +351,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_start_after(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setStartBefore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "setStartBefore" + )] #[doc = "The `setStartBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStartBefore)"] @@ -249,7 +365,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_start_before(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = surroundContents)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Range", + js_name = "surroundContents" + )] #[doc = "The `surroundContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/surroundContents)"] diff --git a/crates/web-sys/src/features/gen_RcwnPerfStats.rs b/crates/web-sys/src/features/gen_RcwnPerfStats.rs index 251053a13e7..f16ccbc9aa1 100644 --- a/crates/web-sys/src/features/gen_RcwnPerfStats.rs +++ b/crates/web-sys/src/features/gen_RcwnPerfStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RcwnPerfStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RcwnPerfStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RcwnPerfStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RcwnStatus.rs b/crates/web-sys/src/features/gen_RcwnStatus.rs index 17c01013ff9..6d5ea1a1922 100644 --- a/crates/web-sys/src/features/gen_RcwnStatus.rs +++ b/crates/web-sys/src/features/gen_RcwnStatus.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RcwnStatus)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RcwnStatus")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RcwnStatus` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ReadableStream.rs b/crates/web-sys/src/features/gen_ReadableStream.rs index a68f982b964..d86471f2098 100644 --- a/crates/web-sys/src/features/gen_ReadableStream.rs +++ b/crates/web-sys/src/features/gen_ReadableStream.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStream , typescript_type = "ReadableStream")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ReadableStream", + typescript_type = "ReadableStream" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStream` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub type ReadableStream; - # [wasm_bindgen (structural , method , getter , js_class = "ReadableStream" , js_name = locked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ReadableStream", + js_name = "locked" + )] #[doc = "Getter for the `locked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/locked)"] @@ -57,14 +67,14 @@ extern "C" { underlying_source: &::js_sys::Object, strategy: &QueuingStrategy, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = cancel)] + #[wasm_bindgen(method, structural, js_class = "ReadableStream", js_name = "cancel")] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn cancel(this: &ReadableStream) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = cancel)] + #[wasm_bindgen(method, structural, js_class = "ReadableStream", js_name = "cancel")] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/cancel)"] @@ -74,7 +84,7 @@ extern "C" { this: &ReadableStream, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = getReader)] + #[wasm_bindgen(method, structural, js_class = "ReadableStream", js_name = "getReader")] #[doc = "The `getReader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/getReader)"] @@ -82,7 +92,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn get_reader(this: &ReadableStream) -> ::js_sys::Object; #[cfg(feature = "ReadableStreamGetReaderOptions")] - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = getReader)] + #[wasm_bindgen(method, structural, js_class = "ReadableStream", js_name = "getReader")] #[doc = "The `getReader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/getReader)"] @@ -93,7 +103,12 @@ extern "C" { options: &ReadableStreamGetReaderOptions, ) -> ::js_sys::Object; #[cfg(feature = "ReadableWritablePair")] - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeThrough)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStream", + js_name = "pipeThrough" + )] #[doc = "The `pipeThrough()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeThrough)"] @@ -101,7 +116,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableWritablePair`*"] pub fn pipe_through(this: &ReadableStream, transform: &ReadableWritablePair) -> ReadableStream; #[cfg(all(feature = "ReadableWritablePair", feature = "StreamPipeOptions",))] - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeThrough)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStream", + js_name = "pipeThrough" + )] #[doc = "The `pipeThrough()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeThrough)"] @@ -114,7 +134,7 @@ extern "C" { ) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeTo)] + #[wasm_bindgen(method, structural, js_class = "ReadableStream", js_name = "pipeTo")] #[doc = "The `pipeTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo)"] @@ -126,7 +146,7 @@ extern "C" { pub fn pipe_to(this: &ReadableStream, destination: &WritableStream) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "StreamPipeOptions", feature = "WritableStream",))] - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeTo)] + #[wasm_bindgen(method, structural, js_class = "ReadableStream", js_name = "pipeTo")] #[doc = "The `pipeTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo)"] @@ -140,7 +160,7 @@ extern "C" { destination: &WritableStream, options: &StreamPipeOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = tee)] + #[wasm_bindgen(method, structural, js_class = "ReadableStream", js_name = "tee")] #[doc = "The `tee()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/tee)"] diff --git a/crates/web-sys/src/features/gen_ReadableStreamByobReadResult.rs b/crates/web-sys/src/features/gen_ReadableStreamByobReadResult.rs index eb58aeca844..1d05dff2b56 100644 --- a/crates/web-sys/src/features/gen_ReadableStreamByobReadResult.rs +++ b/crates/web-sys/src/features/gen_ReadableStreamByobReadResult.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamBYOBReadResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ReadableStreamBYOBReadResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamByobReadResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ReadableStreamByobReader.rs b/crates/web-sys/src/features/gen_ReadableStreamByobReader.rs index a630495bad7..0e208292282 100644 --- a/crates/web-sys/src/features/gen_ReadableStreamByobReader.rs +++ b/crates/web-sys/src/features/gen_ReadableStreamByobReader.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamBYOBReader , typescript_type = "ReadableStreamBYOBReader")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ReadableStreamBYOBReader", + typescript_type = "ReadableStreamBYOBReader" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamByobReader` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ReadableStreamByobReader; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamBYOBReader" , js_name = closed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ReadableStreamBYOBReader", + js_name = "closed" + )] #[doc = "Getter for the `closed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/closed)"] @@ -39,7 +49,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(stream: &ReadableStream) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = read)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamBYOBReader", + js_name = "read" + )] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/read)"] @@ -53,7 +68,12 @@ extern "C" { view: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = read)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamBYOBReader", + js_name = "read" + )] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/read)"] @@ -67,7 +87,12 @@ extern "C" { view: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = releaseLock)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamBYOBReader", + js_name = "releaseLock" + )] #[doc = "The `releaseLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/releaseLock)"] @@ -78,7 +103,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_lock(this: &ReadableStreamByobReader); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = cancel)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamBYOBReader", + js_name = "cancel" + )] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/cancel)"] @@ -89,7 +119,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel(this: &ReadableStreamByobReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = cancel)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamBYOBReader", + js_name = "cancel" + )] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/cancel)"] diff --git a/crates/web-sys/src/features/gen_ReadableStreamDefaultReadResult.rs b/crates/web-sys/src/features/gen_ReadableStreamDefaultReadResult.rs index 82bbf8ca1e1..fabf9ee07fb 100644 --- a/crates/web-sys/src/features/gen_ReadableStreamDefaultReadResult.rs +++ b/crates/web-sys/src/features/gen_ReadableStreamDefaultReadResult.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamDefaultReadResult)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ReadableStreamDefaultReadResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamDefaultReadResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ReadableStreamDefaultReader.rs b/crates/web-sys/src/features/gen_ReadableStreamDefaultReader.rs index e47c2a3073f..6170ce1ca89 100644 --- a/crates/web-sys/src/features/gen_ReadableStreamDefaultReader.rs +++ b/crates/web-sys/src/features/gen_ReadableStreamDefaultReader.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamDefaultReader , typescript_type = "ReadableStreamDefaultReader")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ReadableStreamDefaultReader", + typescript_type = "ReadableStreamDefaultReader" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamDefaultReader` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ReadableStreamDefaultReader; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamDefaultReader" , js_name = closed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ReadableStreamDefaultReader", + js_name = "closed" + )] #[doc = "Getter for the `closed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/closed)"] @@ -39,7 +49,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(stream: &ReadableStream) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = read)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamDefaultReader", + js_name = "read" + )] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/read)"] @@ -50,7 +65,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = releaseLock)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamDefaultReader", + js_name = "releaseLock" + )] #[doc = "The `releaseLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/releaseLock)"] @@ -61,7 +81,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_lock(this: &ReadableStreamDefaultReader); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = cancel)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamDefaultReader", + js_name = "cancel" + )] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/cancel)"] @@ -72,7 +97,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = cancel)] + #[wasm_bindgen( + method, + structural, + js_class = "ReadableStreamDefaultReader", + js_name = "cancel" + )] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/cancel)"] diff --git a/crates/web-sys/src/features/gen_ReadableStreamGetReaderOptions.rs b/crates/web-sys/src/features/gen_ReadableStreamGetReaderOptions.rs index 632b8263402..7ae0e40db1b 100644 --- a/crates/web-sys/src/features/gen_ReadableStreamGetReaderOptions.rs +++ b/crates/web-sys/src/features/gen_ReadableStreamGetReaderOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamGetReaderOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ReadableStreamGetReaderOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamGetReaderOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ReadableStreamIteratorOptions.rs b/crates/web-sys/src/features/gen_ReadableStreamIteratorOptions.rs index f1c2d65b6cc..7d2a4af0180 100644 --- a/crates/web-sys/src/features/gen_ReadableStreamIteratorOptions.rs +++ b/crates/web-sys/src/features/gen_ReadableStreamIteratorOptions.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamIteratorOptions)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ReadableStreamIteratorOptions" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamIteratorOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ReadableWritablePair.rs b/crates/web-sys/src/features/gen_ReadableWritablePair.rs index 0ce861e74ab..9c99dc57c6b 100644 --- a/crates/web-sys/src/features/gen_ReadableWritablePair.rs +++ b/crates/web-sys/src/features/gen_ReadableWritablePair.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableWritablePair)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ReadableWritablePair")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableWritablePair` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RegisterRequest.rs b/crates/web-sys/src/features/gen_RegisterRequest.rs index c3ef767057d..ab8395ad6b7 100644 --- a/crates/web-sys/src/features/gen_RegisterRequest.rs +++ b/crates/web-sys/src/features/gen_RegisterRequest.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegisterRequest)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RegisterRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegisterRequest` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RegisterResponse.rs b/crates/web-sys/src/features/gen_RegisterResponse.rs index 19c324a2b9f..d1f5fd35be5 100644 --- a/crates/web-sys/src/features/gen_RegisterResponse.rs +++ b/crates/web-sys/src/features/gen_RegisterResponse.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegisterResponse)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RegisterResponse")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegisterResponse` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RegisteredKey.rs b/crates/web-sys/src/features/gen_RegisteredKey.rs index d18b0085300..b69314b467c 100644 --- a/crates/web-sys/src/features/gen_RegisteredKey.rs +++ b/crates/web-sys/src/features/gen_RegisteredKey.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegisteredKey)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RegisteredKey")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegisteredKey` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RegistrationOptions.rs b/crates/web-sys/src/features/gen_RegistrationOptions.rs index 9c186a6c8e6..e60f95b350a 100644 --- a/crates/web-sys/src/features/gen_RegistrationOptions.rs +++ b/crates/web-sys/src/features/gen_RegistrationOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegistrationOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RegistrationOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegistrationOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Request.rs b/crates/web-sys/src/features/gen_Request.rs index d83d86a2953..7f337672f15 100644 --- a/crates/web-sys/src/features/gen_Request.rs +++ b/crates/web-sys/src/features/gen_Request.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Request , typescript_type = "Request")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Request", + typescript_type = "Request" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Request` class."] #[doc = ""] @@ -11,14 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub type Request; - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = method)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", js_name = "method")] #[doc = "Getter for the `method` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = url)] + #[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)"] @@ -26,7 +30,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn url(this: &Request) -> String; #[cfg(feature = "Headers")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = headers)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", js_name = "headers")] #[doc = "Getter for the `headers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/headers)"] @@ -34,14 +38,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Headers`, `Request`*"] pub fn headers(this: &Request) -> Headers; #[cfg(feature = "RequestDestination")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = destination)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Request", + js_name = "destination" + )] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/destination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestDestination`*"] pub fn destination(this: &Request) -> RequestDestination; - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = referrer)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", 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/Request/referrer)"] @@ -49,7 +59,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn referrer(this: &Request) -> String; #[cfg(feature = "ReferrerPolicy")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Request", + js_name = "referrerPolicy" + )] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/referrerPolicy)"] @@ -57,7 +73,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`, `Request`*"] pub fn referrer_policy(this: &Request) -> ReferrerPolicy; #[cfg(feature = "RequestMode")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = mode)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", js_name = "mode")] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/mode)"] @@ -65,7 +81,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestMode`*"] pub fn mode(this: &Request) -> RequestMode; #[cfg(feature = "RequestCredentials")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = credentials)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Request", + js_name = "credentials" + )] #[doc = "Getter for the `credentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)"] @@ -73,7 +95,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestCredentials`*"] pub fn credentials(this: &Request) -> RequestCredentials; #[cfg(feature = "RequestCache")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = cache)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", js_name = "cache")] #[doc = "Getter for the `cache` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/cache)"] @@ -81,14 +103,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestCache`*"] pub fn cache(this: &Request) -> RequestCache; #[cfg(feature = "RequestRedirect")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = redirect)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", js_name = "redirect")] #[doc = "Getter for the `redirect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/redirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestRedirect`*"] pub fn redirect(this: &Request) -> RequestRedirect; - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = integrity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Request", + js_name = "integrity" + )] #[doc = "Getter for the `integrity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/integrity)"] @@ -96,14 +124,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn integrity(this: &Request) -> String; #[cfg(feature = "AbortSignal")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = signal)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", js_name = "signal")] #[doc = "Getter for the `signal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/signal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `Request`*"] pub fn signal(this: &Request) -> AbortSignal; - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = bodyUsed)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", js_name = "bodyUsed")] #[doc = "Getter for the `bodyUsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/bodyUsed)"] @@ -111,7 +139,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn body_used(this: &Request) -> bool; #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = body)] + #[wasm_bindgen(structural, method, getter, js_class = "Request", 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/Request/body)"] @@ -151,42 +179,48 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`*"] pub fn new_with_str_and_init(input: &str, init: &RequestInit) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = clone)] + #[wasm_bindgen(catch, method, structural, js_class = "Request", js_name = "clone")] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn clone(this: &Request) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = arrayBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Request", + js_name = "arrayBuffer" + )] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn array_buffer(this: &Request) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = blob)] + #[wasm_bindgen(catch, method, structural, js_class = "Request", js_name = "blob")] #[doc = "The `blob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn blob(this: &Request) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = formData)] + #[wasm_bindgen(catch, method, structural, js_class = "Request", js_name = "formData")] #[doc = "The `formData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/formData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn form_data(this: &Request) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = json)] + #[wasm_bindgen(catch, method, structural, js_class = "Request", js_name = "json")] #[doc = "The `json()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/json)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn json(this: &Request) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = text)] + #[wasm_bindgen(catch, method, structural, js_class = "Request", js_name = "text")] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/text)"] diff --git a/crates/web-sys/src/features/gen_RequestDeviceOptions.rs b/crates/web-sys/src/features/gen_RequestDeviceOptions.rs index 02f230278a7..e050d10fcbe 100644 --- a/crates/web-sys/src/features/gen_RequestDeviceOptions.rs +++ b/crates/web-sys/src/features/gen_RequestDeviceOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RequestDeviceOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RequestDeviceOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RequestDeviceOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RequestInit.rs b/crates/web-sys/src/features/gen_RequestInit.rs index 12ad7bf6151..2a88942bbd7 100644 --- a/crates/web-sys/src/features/gen_RequestInit.rs +++ b/crates/web-sys/src/features/gen_RequestInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RequestInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RequestInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RequestInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs b/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs index 2af8ca81280..d9df4e0e5de 100644 --- a/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs +++ b/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RequestMediaKeySystemAccessNotification)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RequestMediaKeySystemAccessNotification" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RequestMediaKeySystemAccessNotification` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ResizeObserver.rs b/crates/web-sys/src/features/gen_ResizeObserver.rs index 8b3ef38d228..31e676e6ba1 100644 --- a/crates/web-sys/src/features/gen_ResizeObserver.rs +++ b/crates/web-sys/src/features/gen_ResizeObserver.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserver , typescript_type = "ResizeObserver")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ResizeObserver", + typescript_type = "ResizeObserver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserver` class."] #[doc = ""] @@ -27,7 +31,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(callback: &::js_sys::Function) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = disconnect)] + #[wasm_bindgen( + method, + structural, + js_class = "ResizeObserver", + js_name = "disconnect" + )] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/disconnect)"] @@ -39,7 +48,7 @@ extern "C" { pub fn disconnect(this: &ResizeObserver); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = observe)] + #[wasm_bindgen(method, structural, js_class = "ResizeObserver", js_name = "observe")] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe)"] @@ -51,7 +60,7 @@ extern "C" { pub fn observe(this: &ResizeObserver, target: &Element); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "Element", feature = "ResizeObserverOptions",))] - # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = observe)] + #[wasm_bindgen(method, structural, js_class = "ResizeObserver", js_name = "observe")] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe)"] @@ -67,7 +76,7 @@ extern "C" { ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = unobserve)] + #[wasm_bindgen(method, structural, js_class = "ResizeObserver", js_name = "unobserve")] #[doc = "The `unobserve()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/unobserve)"] diff --git a/crates/web-sys/src/features/gen_ResizeObserverEntry.rs b/crates/web-sys/src/features/gen_ResizeObserverEntry.rs index 7b912228039..5c2510c00b5 100644 --- a/crates/web-sys/src/features/gen_ResizeObserverEntry.rs +++ b/crates/web-sys/src/features/gen_ResizeObserverEntry.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserverEntry , typescript_type = "ResizeObserverEntry")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ResizeObserverEntry", + typescript_type = "ResizeObserverEntry" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserverEntry` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type ResizeObserverEntry; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ResizeObserverEntry", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/target)"] @@ -29,7 +39,13 @@ extern "C" { pub fn target(this: &ResizeObserverEntry) -> Element; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentRect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ResizeObserverEntry", + js_name = "contentRect" + )] #[doc = "Getter for the `contentRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect)"] @@ -40,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn content_rect(this: &ResizeObserverEntry) -> DomRectReadOnly; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = borderBoxSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ResizeObserverEntry", + js_name = "borderBoxSize" + )] #[doc = "Getter for the `borderBoxSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize)"] @@ -51,7 +73,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn border_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentBoxSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ResizeObserverEntry", + js_name = "contentBoxSize" + )] #[doc = "Getter for the `contentBoxSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize)"] @@ -62,7 +90,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = devicePixelContentBoxSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ResizeObserverEntry", + js_name = "devicePixelContentBoxSize" + )] #[doc = "Getter for the `devicePixelContentBoxSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)"] diff --git a/crates/web-sys/src/features/gen_ResizeObserverOptions.rs b/crates/web-sys/src/features/gen_ResizeObserverOptions.rs index e5f60a39255..03ccf139e67 100644 --- a/crates/web-sys/src/features/gen_ResizeObserverOptions.rs +++ b/crates/web-sys/src/features/gen_ResizeObserverOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserverOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ResizeObserverOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserverOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ResizeObserverSize.rs b/crates/web-sys/src/features/gen_ResizeObserverSize.rs index fbe899f69bc..ce4d528e49f 100644 --- a/crates/web-sys/src/features/gen_ResizeObserverSize.rs +++ b/crates/web-sys/src/features/gen_ResizeObserverSize.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserverSize , typescript_type = "ResizeObserverSize")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ResizeObserverSize", + typescript_type = "ResizeObserverSize" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserverSize` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ResizeObserverSize; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverSize" , js_name = inlineSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ResizeObserverSize", + js_name = "inlineSize" + )] #[doc = "Getter for the `inlineSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverSize/inlineSize)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn inline_size(this: &ResizeObserverSize) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverSize" , js_name = blockSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ResizeObserverSize", + js_name = "blockSize" + )] #[doc = "Getter for the `blockSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverSize/blockSize)"] diff --git a/crates/web-sys/src/features/gen_Response.rs b/crates/web-sys/src/features/gen_Response.rs index 028c14206b9..9672b7cae6f 100644 --- a/crates/web-sys/src/features/gen_Response.rs +++ b/crates/web-sys/src/features/gen_Response.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Response , typescript_type = "Response")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Response", + typescript_type = "Response" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Response` class."] #[doc = ""] @@ -12,42 +16,54 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub type Response; #[cfg(feature = "ResponseType")] - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "Response", 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/Response/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseType`*"] pub fn type_(this: &Response) -> ResponseType; - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = url)] + #[wasm_bindgen(structural, method, getter, js_class = "Response", 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/Response/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn url(this: &Response) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = redirected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Response", + js_name = "redirected" + )] #[doc = "Getter for the `redirected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn redirected(this: &Response) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = status)] + #[wasm_bindgen(structural, method, getter, js_class = "Response", js_name = "status")] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn status(this: &Response) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = ok)] + #[wasm_bindgen(structural, method, getter, js_class = "Response", js_name = "ok")] #[doc = "Getter for the `ok` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/ok)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn ok(this: &Response) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = statusText)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Response", + js_name = "statusText" + )] #[doc = "Getter for the `statusText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText)"] @@ -55,14 +71,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn status_text(this: &Response) -> String; #[cfg(feature = "Headers")] - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = headers)] + #[wasm_bindgen(structural, method, getter, js_class = "Response", js_name = "headers")] #[doc = "Getter for the `headers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`, `Response`*"] pub fn headers(this: &Response) -> Headers; - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = bodyUsed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Response", + js_name = "bodyUsed" + )] #[doc = "Getter for the `bodyUsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/bodyUsed)"] @@ -70,7 +92,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn body_used(this: &Response) -> bool; #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = body)] + #[wasm_bindgen(structural, method, getter, js_class = "Response", 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/Response/body)"] @@ -218,63 +240,83 @@ extern "C" { body: Option<&ReadableStream>, init: &ResponseInit, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = clone)] + #[wasm_bindgen(catch, method, structural, js_class = "Response", js_name = "clone")] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn clone(this: &Response) -> Result; - # [wasm_bindgen (static_method_of = Response , js_class = "Response" , js_name = error)] + #[wasm_bindgen( + static_method_of = "Response", + js_class = "Response", + js_name = "error" + )] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn error() -> Response; - # [wasm_bindgen (catch , static_method_of = Response , js_class = "Response" , js_name = redirect)] + #[wasm_bindgen( + catch, + static_method_of = "Response", + js_class = "Response", + js_name = "redirect" + )] #[doc = "The `redirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn redirect(url: &str) -> Result; - # [wasm_bindgen (catch , static_method_of = Response , js_class = "Response" , js_name = redirect)] + #[wasm_bindgen( + catch, + static_method_of = "Response", + js_class = "Response", + js_name = "redirect" + )] #[doc = "The `redirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn redirect_with_status(url: &str, status: u16) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = arrayBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Response", + js_name = "arrayBuffer" + )] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn array_buffer(this: &Response) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = blob)] + #[wasm_bindgen(catch, method, structural, js_class = "Response", js_name = "blob")] #[doc = "The `blob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn blob(this: &Response) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = formData)] + #[wasm_bindgen(catch, method, structural, js_class = "Response", js_name = "formData")] #[doc = "The `formData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/formData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn form_data(this: &Response) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = json)] + #[wasm_bindgen(catch, method, structural, js_class = "Response", js_name = "json")] #[doc = "The `json()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/json)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn json(this: &Response) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = text)] + #[wasm_bindgen(catch, method, structural, js_class = "Response", js_name = "text")] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/text)"] diff --git a/crates/web-sys/src/features/gen_ResponseInit.rs b/crates/web-sys/src/features/gen_ResponseInit.rs index 14b2653505f..a182cc1d004 100644 --- a/crates/web-sys/src/features/gen_ResponseInit.rs +++ b/crates/web-sys/src/features/gen_ResponseInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResponseInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ResponseInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResponseInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RsaHashedImportParams.rs b/crates/web-sys/src/features/gen_RsaHashedImportParams.rs index d98141c4554..300ec609f5d 100644 --- a/crates/web-sys/src/features/gen_RsaHashedImportParams.rs +++ b/crates/web-sys/src/features/gen_RsaHashedImportParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaHashedImportParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RsaHashedImportParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaHashedImportParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RsaOaepParams.rs b/crates/web-sys/src/features/gen_RsaOaepParams.rs index fd50a473733..9917880825e 100644 --- a/crates/web-sys/src/features/gen_RsaOaepParams.rs +++ b/crates/web-sys/src/features/gen_RsaOaepParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaOaepParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RsaOaepParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaOaepParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs b/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs index 7f9ceb816cf..dec32398488 100644 --- a/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs +++ b/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaOtherPrimesInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RsaOtherPrimesInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaOtherPrimesInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RsaPssParams.rs b/crates/web-sys/src/features/gen_RsaPssParams.rs index cddd994e4cc..8258543036d 100644 --- a/crates/web-sys/src/features/gen_RsaPssParams.rs +++ b/crates/web-sys/src/features/gen_RsaPssParams.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaPssParams)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RsaPssParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaPssParams` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcAnswerOptions.rs b/crates/web-sys/src/features/gen_RtcAnswerOptions.rs index a3d7bcea5ea..c4b7c374ae0 100644 --- a/crates/web-sys/src/features/gen_RtcAnswerOptions.rs +++ b/crates/web-sys/src/features/gen_RtcAnswerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCAnswerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCAnswerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcAnswerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcCertificate.rs b/crates/web-sys/src/features/gen_RtcCertificate.rs index fe4bffb42f3..0449b2e99f5 100644 --- a/crates/web-sys/src/features/gen_RtcCertificate.rs +++ b/crates/web-sys/src/features/gen_RtcCertificate.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCCertificate , typescript_type = "RTCCertificate")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCCertificate", + typescript_type = "RTCCertificate" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcCertificate` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificate`*"] pub type RtcCertificate; - # [wasm_bindgen (structural , method , getter , js_class = "RTCCertificate" , js_name = expires)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCCertificate", + js_name = "expires" + )] #[doc = "Getter for the `expires` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCCertificate/expires)"] diff --git a/crates/web-sys/src/features/gen_RtcCertificateExpiration.rs b/crates/web-sys/src/features/gen_RtcCertificateExpiration.rs index 141c99548c7..0b6f5b5260a 100644 --- a/crates/web-sys/src/features/gen_RtcCertificateExpiration.rs +++ b/crates/web-sys/src/features/gen_RtcCertificateExpiration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCCertificateExpiration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCCertificateExpiration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcCertificateExpiration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcCodecStats.rs b/crates/web-sys/src/features/gen_RtcCodecStats.rs index 3ffe6ae5fea..ea853c0430d 100644 --- a/crates/web-sys/src/features/gen_RtcCodecStats.rs +++ b/crates/web-sys/src/features/gen_RtcCodecStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCCodecStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCCodecStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcCodecStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcConfiguration.rs b/crates/web-sys/src/features/gen_RtcConfiguration.rs index 284b6e295c8..66abc9f7516 100644 --- a/crates/web-sys/src/features/gen_RtcConfiguration.rs +++ b/crates/web-sys/src/features/gen_RtcConfiguration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcDataChannel.rs b/crates/web-sys/src/features/gen_RtcDataChannel.rs index 8f991858c16..b8a026713b6 100644 --- a/crates/web-sys/src/features/gen_RtcDataChannel.rs +++ b/crates/web-sys/src/features/gen_RtcDataChannel.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCDataChannel , typescript_type = "RTCDataChannel")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "RTCDataChannel", + typescript_type = "RTCDataChannel" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannel` class."] #[doc = ""] @@ -11,28 +16,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub type RtcDataChannel; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = label)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + 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/RTCDataChannel/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn label(this: &RtcDataChannel) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = reliable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "reliable" + )] #[doc = "Getter for the `reliable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/reliable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn reliable(this: &RtcDataChannel) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = maxPacketLifeTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "maxPacketLifeTime" + )] #[doc = "Getter for the `maxPacketLifeTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/maxPacketLifeTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn max_packet_life_time(this: &RtcDataChannel) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = maxRetransmits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "maxRetransmits" + )] #[doc = "Getter for the `maxRetransmits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/maxRetransmits)"] @@ -40,98 +69,182 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn max_retransmits(this: &RtcDataChannel) -> Option; #[cfg(feature = "RtcDataChannelState")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + 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/RTCDataChannel/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelState`*"] pub fn ready_state(this: &RtcDataChannel) -> RtcDataChannelState; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = bufferedAmount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "bufferedAmount" + )] #[doc = "Getter for the `bufferedAmount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn buffered_amount(this: &RtcDataChannel) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = bufferedAmountLowThreshold)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "bufferedAmountLowThreshold" + )] #[doc = "Getter for the `bufferedAmountLowThreshold` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn buffered_amount_low_threshold(this: &RtcDataChannel) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = bufferedAmountLowThreshold)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDataChannel", + js_name = "bufferedAmountLowThreshold" + )] #[doc = "Setter for the `bufferedAmountLowThreshold` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_buffered_amount_low_threshold(this: &RtcDataChannel, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onopen)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "onopen" + )] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onopen(this: &RtcDataChannel) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onopen)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDataChannel", + js_name = "onopen" + )] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onopen(this: &RtcDataChannel, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onerror(this: &RtcDataChannel) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDataChannel", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onerror(this: &RtcDataChannel, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onclose(this: &RtcDataChannel) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDataChannel", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onclose(this: &RtcDataChannel, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onmessage(this: &RtcDataChannel) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDataChannel", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onmessage(this: &RtcDataChannel, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onbufferedamountlow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "onbufferedamountlow" + )] #[doc = "Getter for the `onbufferedamountlow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onbufferedamountlow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onbufferedamountlow(this: &RtcDataChannel) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onbufferedamountlow)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDataChannel", + js_name = "onbufferedamountlow" + )] #[doc = "Setter for the `onbufferedamountlow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onbufferedamountlow)"] @@ -139,7 +252,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onbufferedamountlow(this: &RtcDataChannel, value: Option<&::js_sys::Function>); #[cfg(feature = "RtcDataChannelType")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = binaryType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannel", + js_name = "binaryType" + )] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/binaryType)"] @@ -147,21 +266,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelType`*"] pub fn binary_type(this: &RtcDataChannel) -> RtcDataChannelType; #[cfg(feature = "RtcDataChannelType")] - # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = binaryType)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDataChannel", + js_name = "binaryType" + )] #[doc = "Setter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelType`*"] pub fn set_binary_type(this: &RtcDataChannel, value: RtcDataChannelType); - # [wasm_bindgen (method , structural , js_class = "RTCDataChannel" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "RTCDataChannel", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn close(this: &RtcDataChannel); - # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "RTCDataChannel", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] @@ -169,14 +300,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn send_with_str(this: &RtcDataChannel, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "RTCDataChannel", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `RtcDataChannel`*"] pub fn send_with_blob(this: &RtcDataChannel, data: &Blob) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "RTCDataChannel", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] @@ -186,7 +329,13 @@ extern "C" { this: &RtcDataChannel, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "RTCDataChannel", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] @@ -196,7 +345,13 @@ extern "C" { this: &RtcDataChannel, data: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "RTCDataChannel", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] diff --git a/crates/web-sys/src/features/gen_RtcDataChannelEvent.rs b/crates/web-sys/src/features/gen_RtcDataChannelEvent.rs index 7782c81b5ce..6784a389a80 100644 --- a/crates/web-sys/src/features/gen_RtcDataChannelEvent.rs +++ b/crates/web-sys/src/features/gen_RtcDataChannelEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCDataChannelEvent , typescript_type = "RTCDataChannelEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "RTCDataChannelEvent", + typescript_type = "RTCDataChannelEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannelEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEvent`*"] pub type RtcDataChannelEvent; #[cfg(feature = "RtcDataChannel")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannelEvent" , js_name = channel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDataChannelEvent", + js_name = "channel" + )] #[doc = "Getter for the `channel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/channel)"] diff --git a/crates/web-sys/src/features/gen_RtcDataChannelEventInit.rs b/crates/web-sys/src/features/gen_RtcDataChannelEventInit.rs index 16f0bb782b0..f52a53d4243 100644 --- a/crates/web-sys/src/features/gen_RtcDataChannelEventInit.rs +++ b/crates/web-sys/src/features/gen_RtcDataChannelEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCDataChannelEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCDataChannelEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannelEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcDataChannelInit.rs b/crates/web-sys/src/features/gen_RtcDataChannelInit.rs index b8e2751e5f8..6fd6f3f0202 100644 --- a/crates/web-sys/src/features/gen_RtcDataChannelInit.rs +++ b/crates/web-sys/src/features/gen_RtcDataChannelInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCDataChannelInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCDataChannelInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannelInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcFecParameters.rs b/crates/web-sys/src/features/gen_RtcFecParameters.rs index d5b1a5487ca..9793e027fa9 100644 --- a/crates/web-sys/src/features/gen_RtcFecParameters.rs +++ b/crates/web-sys/src/features/gen_RtcFecParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCFecParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCFecParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcFecParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidate.rs b/crates/web-sys/src/features/gen_RtcIceCandidate.rs index ca7424e9914..96dbdd75c0b 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidate.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidate.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidate , typescript_type = "RTCIceCandidate")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCIceCandidate", + typescript_type = "RTCIceCandidate" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidate` class."] #[doc = ""] @@ -11,42 +15,78 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub type RtcIceCandidate; - # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = candidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCIceCandidate", + js_name = "candidate" + )] #[doc = "Getter for the `candidate` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = candidate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCIceCandidate", + js_name = "candidate" + )] #[doc = "Setter for the `candidate` field of this object."] #[doc = ""] #[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 set_candidate(this: &RtcIceCandidate, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCIceCandidate", + js_name = "sdpMid" + )] #[doc = "Getter for the `sdpMid` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMid)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCIceCandidate", + js_name = "sdpMid" + )] #[doc = "Setter for the `sdpMid` field of this object."] #[doc = ""] #[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 set_sdp_mid(this: &RtcIceCandidate, value: Option<&str>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCIceCandidate", + js_name = "sdpMLineIndex" + )] #[doc = "Getter for the `sdpMLineIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn sdp_m_line_index(this: &RtcIceCandidate) -> Option; - # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCIceCandidate", + js_name = "sdpMLineIndex" + )] #[doc = "Setter for the `sdpMLineIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] @@ -61,7 +101,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcIceCandidateInit`*"] pub fn new(candidate_init_dict: &RtcIceCandidateInit) -> Result; - # [wasm_bindgen (method , structural , js_class = "RTCIceCandidate" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "RTCIceCandidate", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/toJSON)"] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs b/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs index a23091f6be6..a6193856d3d 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidateInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIceCandidateInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidateInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs b/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs index 8fa447ae8a5..104a9147016 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidatePairStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIceCandidatePairStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidatePairStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs b/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs index 8d9c3a9506d..1aaa62dea8c 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidateStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIceCandidateStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidateStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIceComponentStats.rs b/crates/web-sys/src/features/gen_RtcIceComponentStats.rs index ec7d27bda60..de1e7fee23f 100644 --- a/crates/web-sys/src/features/gen_RtcIceComponentStats.rs +++ b/crates/web-sys/src/features/gen_RtcIceComponentStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceComponentStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIceComponentStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceComponentStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIceServer.rs b/crates/web-sys/src/features/gen_RtcIceServer.rs index ebdd79d8a8b..8ec57622abc 100644 --- a/crates/web-sys/src/features/gen_RtcIceServer.rs +++ b/crates/web-sys/src/features/gen_RtcIceServer.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceServer)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIceServer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceServer` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs b/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs index aa1fc60f149..294a12cdedf 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityAssertion)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIdentityAssertion")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityAssertion` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs b/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs index 98d9af7c861..31989e5ce63 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityAssertionResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIdentityAssertionResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityAssertionResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIdentityProvider.rs b/crates/web-sys/src/features/gen_RtcIdentityProvider.rs index bf64f976b7e..db01c2fbfa4 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityProvider.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityProvider.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityProvider)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIdentityProvider")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProvider` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs index dda6cbc9bc8..25ef4af4137 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityProviderDetails)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIdentityProviderDetails")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProviderDetails` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs index cdb594b4e09..086c72a6c6e 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityProviderOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIdentityProviderOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProviderOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderRegistrar.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderRegistrar.rs index 86a4f2be05c..5c8779ff8b5 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityProviderRegistrar.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderRegistrar.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = RTCIdentityProviderRegistrar , typescript_type = "RTCIdentityProviderRegistrar")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "RTCIdentityProviderRegistrar" , typescript_type = "RTCIdentityProviderRegistrar")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProviderRegistrar` class."] #[doc = ""] @@ -12,7 +12,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderRegistrar`*"] pub type RtcIdentityProviderRegistrar; #[cfg(feature = "RtcIdentityProvider")] - # [wasm_bindgen (method , structural , js_class = "RTCIdentityProviderRegistrar" , js_name = register)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCIdentityProviderRegistrar", + js_name = "register" + )] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIdentityProviderRegistrar/register)"] diff --git a/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs b/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs index cd5ba8e16df..4e804df4f1c 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityValidationResult)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCIdentityValidationResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityValidationResult` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs index 41091b2b2e8..173da8bf150 100644 --- a/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCInboundRTPStreamStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCInboundRTPStreamStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcInboundRtpStreamStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs b/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs index a226113198c..021d89e17b1 100644 --- a/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCMediaStreamStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCMediaStreamStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcMediaStreamStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs b/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs index 8caa058070e..af4b3c21ebd 100644 --- a/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs +++ b/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCMediaStreamTrackStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCMediaStreamTrackStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcMediaStreamTrackStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcOfferAnswerOptions.rs b/crates/web-sys/src/features/gen_RtcOfferAnswerOptions.rs index 9c84bcf9229..3ebe642af66 100644 --- a/crates/web-sys/src/features/gen_RtcOfferAnswerOptions.rs +++ b/crates/web-sys/src/features/gen_RtcOfferAnswerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCOfferAnswerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCOfferAnswerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcOfferAnswerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcOfferOptions.rs b/crates/web-sys/src/features/gen_RtcOfferOptions.rs index 4130baa257b..e3d44cf0a5f 100644 --- a/crates/web-sys/src/features/gen_RtcOfferOptions.rs +++ b/crates/web-sys/src/features/gen_RtcOfferOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCOfferOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCOfferOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcOfferOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs index 7630d96cab7..93525da6fb0 100644 --- a/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCOutboundRTPStreamStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCOutboundRTPStreamStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcOutboundRtpStreamStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcPeerConnection.rs b/crates/web-sys/src/features/gen_RtcPeerConnection.rs index 455a8820beb..0eed9d535a6 100644 --- a/crates/web-sys/src/features/gen_RtcPeerConnection.rs +++ b/crates/web-sys/src/features/gen_RtcPeerConnection.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCPeerConnection , typescript_type = "RTCPeerConnection")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "RTCPeerConnection", + typescript_type = "RTCPeerConnection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnection` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub type RtcPeerConnection; #[cfg(feature = "RtcSessionDescription")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = localDescription)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "localDescription" + )] #[doc = "Getter for the `localDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/localDescription)"] @@ -20,7 +31,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn local_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentLocalDescription)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "currentLocalDescription" + )] #[doc = "Getter for the `currentLocalDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentLocalDescription)"] @@ -28,7 +45,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn current_local_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingLocalDescription)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "pendingLocalDescription" + )] #[doc = "Getter for the `pendingLocalDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingLocalDescription)"] @@ -36,7 +59,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn pending_local_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = remoteDescription)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "remoteDescription" + )] #[doc = "Getter for the `remoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/remoteDescription)"] @@ -44,7 +73,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn remote_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentRemoteDescription)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "currentRemoteDescription" + )] #[doc = "Getter for the `currentRemoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentRemoteDescription)"] @@ -52,7 +87,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn current_remote_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingRemoteDescription)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "pendingRemoteDescription" + )] #[doc = "Getter for the `pendingRemoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingRemoteDescription)"] @@ -60,14 +101,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn pending_remote_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSignalingState")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = signalingState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "signalingState" + )] #[doc = "Getter for the `signalingState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/signalingState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSignalingState`*"] pub fn signaling_state(this: &RtcPeerConnection) -> RtcSignalingState; - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = canTrickleIceCandidates)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "canTrickleIceCandidates" + )] #[doc = "Getter for the `canTrickleIceCandidates` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates)"] @@ -75,7 +128,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn can_trickle_ice_candidates(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcIceGatheringState")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceGatheringState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "iceGatheringState" + )] #[doc = "Getter for the `iceGatheringState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceGatheringState)"] @@ -83,133 +142,247 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcIceGatheringState`, `RtcPeerConnection`*"] pub fn ice_gathering_state(this: &RtcPeerConnection) -> RtcIceGatheringState; #[cfg(feature = "RtcIceConnectionState")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceConnectionState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "iceConnectionState" + )] #[doc = "Getter for the `iceConnectionState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceConnectionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceConnectionState`, `RtcPeerConnection`*"] pub fn ice_connection_state(this: &RtcPeerConnection) -> RtcIceConnectionState; - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = peerIdentity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "peerIdentity" + )] #[doc = "Getter for the `peerIdentity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/peerIdentity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn peer_identity(this: &RtcPeerConnection) -> ::js_sys::Promise; - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = idpLoginUrl)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "idpLoginUrl" + )] #[doc = "Getter for the `idpLoginUrl` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "onnegotiationneeded" + )] #[doc = "Getter for the `onnegotiationneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onnegotiationneeded(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "onnegotiationneeded" + )] #[doc = "Setter for the `onnegotiationneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onnegotiationneeded(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicecandidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "onicecandidate" + )] #[doc = "Getter for the `onicecandidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onicecandidate(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicecandidate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "onicecandidate" + )] #[doc = "Setter for the `onicecandidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onicecandidate(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "onsignalingstatechange" + )] #[doc = "Getter for the `onsignalingstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onsignalingstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "onsignalingstatechange" + )] #[doc = "Setter for the `onsignalingstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onsignalingstatechange(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddstream)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "onaddstream" + )] #[doc = "Getter for the `onaddstream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onaddstream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddstream)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "onaddstream" + )] #[doc = "Setter for the `onaddstream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onaddstream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "onaddtrack" + )] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onaddtrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "onaddtrack" + )] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onaddtrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = ontrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "ontrack" + )] #[doc = "Getter for the `ontrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn ontrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = ontrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "ontrack" + )] #[doc = "Setter for the `ontrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_ontrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onremovestream)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "onremovestream" + )] #[doc = "Getter for the `onremovestream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onremovestream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onremovestream)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "onremovestream" + )] #[doc = "Setter for the `onremovestream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onremovestream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "oniceconnectionstatechange" + )] #[doc = "Getter for the `oniceconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn oniceconnectionstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "oniceconnectionstatechange" + )] #[doc = "Setter for the `oniceconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] @@ -219,14 +392,26 @@ extern "C" { this: &RtcPeerConnection, value: Option<&::js_sys::Function>, ); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "onicegatheringstatechange" + )] #[doc = "Getter for the `onicegatheringstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onicegatheringstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "onicegatheringstatechange" + )] #[doc = "Setter for the `onicegatheringstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] @@ -236,14 +421,26 @@ extern "C" { this: &RtcPeerConnection, value: Option<&::js_sys::Function>, ); - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = ondatachannel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnection", + js_name = "ondatachannel" + )] #[doc = "Getter for the `ondatachannel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn ondatachannel(this: &RtcPeerConnection) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = ondatachannel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCPeerConnection", + js_name = "ondatachannel" + )] #[doc = "Setter for the `ondatachannel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] @@ -279,7 +476,12 @@ extern "C" { constraints: Option<&::js_sys::Object>, ) -> Result; #[cfg(feature = "RtcIceCandidateInit")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addIceCandidate" + )] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] @@ -290,7 +492,12 @@ extern "C" { candidate: Option<&RtcIceCandidateInit>, ) -> ::js_sys::Promise; #[cfg(feature = "RtcIceCandidate")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addIceCandidate" + )] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] @@ -301,7 +508,12 @@ extern "C" { candidate: Option<&RtcIceCandidate>, ) -> ::js_sys::Promise; #[cfg(feature = "RtcIceCandidate")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addIceCandidate" + )] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] @@ -314,7 +526,12 @@ extern "C" { failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "MediaStream")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addStream)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addStream" + )] #[doc = "The `addStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream)"] @@ -326,7 +543,13 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , variadic , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + variadic, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -343,7 +566,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -359,7 +587,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -376,7 +609,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -394,7 +632,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -413,7 +656,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -433,7 +681,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -454,7 +707,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -476,7 +734,12 @@ extern "C" { feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTrack" + )] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] @@ -495,7 +758,12 @@ extern "C" { more_streams_7: &MediaStream, ) -> RtcRtpSender; #[cfg(all(feature = "MediaStreamTrack", feature = "RtcRtpTransceiver",))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTransceiver" + )] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] @@ -506,7 +774,12 @@ extern "C" { track_or_kind: &MediaStreamTrack, ) -> RtcRtpTransceiver; #[cfg(feature = "RtcRtpTransceiver")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTransceiver" + )] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] @@ -521,7 +794,12 @@ extern "C" { feature = "RtcRtpTransceiver", feature = "RtcRtpTransceiverInit", ))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTransceiver" + )] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] @@ -533,7 +811,12 @@ extern "C" { init: &RtcRtpTransceiverInit, ) -> RtcRtpTransceiver; #[cfg(all(feature = "RtcRtpTransceiver", feature = "RtcRtpTransceiverInit",))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "addTransceiver" + )] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] @@ -544,14 +827,19 @@ extern "C" { track_or_kind: &str, init: &RtcRtpTransceiverInit, ) -> RtcRtpTransceiver; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "RTCPeerConnection", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn close(this: &RtcPeerConnection); - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createAnswer" + )] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] @@ -559,7 +847,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_answer(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "RtcAnswerOptions")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createAnswer" + )] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] @@ -569,7 +862,12 @@ extern "C" { this: &RtcPeerConnection, options: &RtcAnswerOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createAnswer" + )] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] @@ -581,7 +879,12 @@ extern "C" { failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcDataChannel")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createDataChannel" + )] #[doc = "The `createDataChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] @@ -589,7 +892,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcPeerConnection`*"] pub fn create_data_channel(this: &RtcPeerConnection, label: &str) -> RtcDataChannel; #[cfg(all(feature = "RtcDataChannel", feature = "RtcDataChannelInit",))] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createDataChannel" + )] #[doc = "The `createDataChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] @@ -600,7 +908,12 @@ extern "C" { label: &str, data_channel_dict: &RtcDataChannelInit, ) -> RtcDataChannel; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createOffer" + )] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] @@ -608,7 +921,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_offer(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "RtcOfferOptions")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createOffer" + )] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] @@ -618,7 +936,12 @@ extern "C" { this: &RtcPeerConnection, options: &RtcOfferOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createOffer" + )] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] @@ -630,7 +953,12 @@ extern "C" { failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcOfferOptions")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "createOffer" + )] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] @@ -642,7 +970,12 @@ extern "C" { failure_callback: &::js_sys::Function, options: &RtcOfferOptions, ) -> ::js_sys::Promise; - # [wasm_bindgen (catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate)] + #[wasm_bindgen( + catch, + static_method_of = "RtcPeerConnection", + js_class = "RTCPeerConnection", + js_name = "generateCertificate" + )] #[doc = "The `generateCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] @@ -651,7 +984,12 @@ extern "C" { pub fn generate_certificate_with_object( keygen_algorithm: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate)] + #[wasm_bindgen( + catch, + static_method_of = "RtcPeerConnection", + js_class = "RTCPeerConnection", + js_name = "generateCertificate" + )] #[doc = "The `generateCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] @@ -661,49 +999,84 @@ extern "C" { keygen_algorithm: &str, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "RtcConfiguration")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getConfiguration)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getConfiguration" + )] #[doc = "The `getConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn get_configuration(this: &RtcPeerConnection) -> RtcConfiguration; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getIdentityAssertion)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getIdentityAssertion" + )] #[doc = "The `getIdentityAssertion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getIdentityAssertion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_identity_assertion(this: &RtcPeerConnection) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getLocalStreams)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getLocalStreams" + )] #[doc = "The `getLocalStreams()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getLocalStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_local_streams(this: &RtcPeerConnection) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getReceivers)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getReceivers" + )] #[doc = "The `getReceivers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getReceivers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_receivers(this: &RtcPeerConnection) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getRemoteStreams)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getRemoteStreams" + )] #[doc = "The `getRemoteStreams()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getRemoteStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_remote_streams(this: &RtcPeerConnection) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getSenders)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getSenders" + )] #[doc = "The `getSenders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getSenders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_senders(this: &RtcPeerConnection) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getStats" + )] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] @@ -711,7 +1084,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_stats(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getStats" + )] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] @@ -722,7 +1100,12 @@ extern "C" { selector: Option<&MediaStreamTrack>, ) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getStats" + )] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] @@ -734,7 +1117,12 @@ extern "C" { success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getTransceivers)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "getTransceivers" + )] #[doc = "The `getTransceivers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getTransceivers)"] @@ -742,14 +1130,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_transceivers(this: &RtcPeerConnection) -> ::js_sys::Array; #[cfg(feature = "RtcRtpSender")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = removeTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "removeTrack" + )] #[doc = "The `removeTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/removeTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpSender`*"] pub fn remove_track(this: &RtcPeerConnection, sender: &RtcRtpSender); - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "setIdentityProvider" + )] #[doc = "The `setIdentityProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] @@ -757,7 +1155,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_identity_provider(this: &RtcPeerConnection, provider: &str); #[cfg(feature = "RtcIdentityProviderOptions")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "setIdentityProvider" + )] #[doc = "The `setIdentityProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] @@ -769,7 +1172,12 @@ extern "C" { options: &RtcIdentityProviderOptions, ); #[cfg(feature = "RtcSessionDescriptionInit")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "setLocalDescription" + )] #[doc = "The `setLocalDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] @@ -780,7 +1188,12 @@ extern "C" { description: &RtcSessionDescriptionInit, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "setLocalDescription" + )] #[doc = "The `setLocalDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] @@ -793,7 +1206,12 @@ extern "C" { failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "setRemoteDescription" + )] #[doc = "The `setRemoteDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] @@ -804,7 +1222,12 @@ extern "C" { description: &RtcSessionDescriptionInit, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] - # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCPeerConnection", + js_name = "setRemoteDescription" + )] #[doc = "The `setRemoteDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] diff --git a/crates/web-sys/src/features/gen_RtcPeerConnectionIceEvent.rs b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEvent.rs index 3a59c593b76..e911c1ab73f 100644 --- a/crates/web-sys/src/features/gen_RtcPeerConnectionIceEvent.rs +++ b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceEvent , typescript_type = "RTCPeerConnectionIceEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "RTCPeerConnectionIceEvent", + typescript_type = "RTCPeerConnectionIceEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnectionIceEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"] pub type RtcPeerConnectionIceEvent; #[cfg(feature = "RtcIceCandidate")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceEvent" , js_name = candidate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCPeerConnectionIceEvent", + js_name = "candidate" + )] #[doc = "Getter for the `candidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/candidate)"] diff --git a/crates/web-sys/src/features/gen_RtcPeerConnectionIceEventInit.rs b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEventInit.rs index 2847f6ed77a..4e23d771e12 100644 --- a/crates/web-sys/src/features/gen_RtcPeerConnectionIceEventInit.rs +++ b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCPeerConnectionIceEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnectionIceEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtcpParameters.rs b/crates/web-sys/src/features/gen_RtcRtcpParameters.rs index 85df471a0d8..96c45b0f987 100644 --- a/crates/web-sys/src/features/gen_RtcRtcpParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtcpParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtcpParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtcpParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtcpParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs b/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs index 1292d7cac6c..0749d5a5778 100644 --- a/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpCodecParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtpCodecParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpCodecParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpContributingSource.rs b/crates/web-sys/src/features/gen_RtcRtpContributingSource.rs index 6f32c2053b8..bcfa3fa44fd 100644 --- a/crates/web-sys/src/features/gen_RtcRtpContributingSource.rs +++ b/crates/web-sys/src/features/gen_RtcRtpContributingSource.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpContributingSource)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtpContributingSource")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpContributingSource` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs b/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs index 339ec385af5..23dc94d6923 100644 --- a/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpEncodingParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtpEncodingParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpEncodingParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs index 5523869a37d..1a4a0a4ecb1 100644 --- a/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpHeaderExtensionParameters)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCRtpHeaderExtensionParameters" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpHeaderExtensionParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpParameters.rs b/crates/web-sys/src/features/gen_RtcRtpParameters.rs index 7b413d27512..c079e5f203d 100644 --- a/crates/web-sys/src/features/gen_RtcRtpParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtpParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtpParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpReceiver.rs b/crates/web-sys/src/features/gen_RtcRtpReceiver.rs index ee09e08053a..ba364001901 100644 --- a/crates/web-sys/src/features/gen_RtcRtpReceiver.rs +++ b/crates/web-sys/src/features/gen_RtcRtpReceiver.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpReceiver , typescript_type = "RTCRtpReceiver")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCRtpReceiver", + typescript_type = "RTCRtpReceiver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpReceiver` class."] #[doc = ""] @@ -12,28 +16,44 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] pub type RtcRtpReceiver; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , js_name = track)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpReceiver", + js_name = "track" + )] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"] pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack; - # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getContributingSources)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCRtpReceiver", + js_name = "getContributingSources" + )] #[doc = "The `getContributingSources()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getContributingSources)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] pub fn get_contributing_sources(this: &RtcRtpReceiver) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getStats)] + #[wasm_bindgen(method, structural, js_class = "RTCRtpReceiver", js_name = "getStats")] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] pub fn get_stats(this: &RtcRtpReceiver) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getSynchronizationSources)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCRtpReceiver", + js_name = "getSynchronizationSources" + )] #[doc = "The `getSynchronizationSources()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)"] diff --git a/crates/web-sys/src/features/gen_RtcRtpSender.rs b/crates/web-sys/src/features/gen_RtcRtpSender.rs index 8de87c61b10..78ebd62bb95 100644 --- a/crates/web-sys/src/features/gen_RtcRtpSender.rs +++ b/crates/web-sys/src/features/gen_RtcRtpSender.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpSender , typescript_type = "RTCRtpSender")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCRtpSender", + typescript_type = "RTCRtpSender" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpSender` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] pub type RtcRtpSender; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = track)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpSender", + js_name = "track" + )] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/track)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"] pub fn track(this: &RtcRtpSender) -> Option; #[cfg(feature = "RtcdtmfSender")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = dtmf)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpSender", + js_name = "dtmf" + )] #[doc = "Getter for the `dtmf` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/dtmf)"] @@ -28,14 +44,19 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcdtmfSender`*"] pub fn dtmf(this: &RtcRtpSender) -> Option; #[cfg(feature = "RtcRtpParameters")] - # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getParameters)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCRtpSender", + js_name = "getParameters" + )] #[doc = "The `getParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"] pub fn get_parameters(this: &RtcRtpSender) -> RtcRtpParameters; - # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getStats)] + #[wasm_bindgen(method, structural, js_class = "RTCRtpSender", js_name = "getStats")] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getStats)"] @@ -43,7 +64,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] pub fn get_stats(this: &RtcRtpSender) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = replaceTrack)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCRtpSender", + js_name = "replaceTrack" + )] #[doc = "The `replaceTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack)"] @@ -53,7 +79,12 @@ extern "C" { this: &RtcRtpSender, with_track: Option<&MediaStreamTrack>, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCRtpSender", + js_name = "setParameters" + )] #[doc = "The `setParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] @@ -61,7 +92,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] pub fn set_parameters(this: &RtcRtpSender) -> ::js_sys::Promise; #[cfg(feature = "RtcRtpParameters")] - # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCRtpSender", + js_name = "setParameters" + )] #[doc = "The `setParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] diff --git a/crates/web-sys/src/features/gen_RtcRtpSourceEntry.rs b/crates/web-sys/src/features/gen_RtcRtpSourceEntry.rs index a4673ba5200..42278b6cf69 100644 --- a/crates/web-sys/src/features/gen_RtcRtpSourceEntry.rs +++ b/crates/web-sys/src/features/gen_RtcRtpSourceEntry.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpSourceEntry)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtpSourceEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpSourceEntry` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpSynchronizationSource.rs b/crates/web-sys/src/features/gen_RtcRtpSynchronizationSource.rs index dcab4408333..1353edc4fd9 100644 --- a/crates/web-sys/src/features/gen_RtcRtpSynchronizationSource.rs +++ b/crates/web-sys/src/features/gen_RtcRtpSynchronizationSource.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpSynchronizationSource)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtpSynchronizationSource")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpSynchronizationSource` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs b/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs index 6d6eaf25159..86442f0da01 100644 --- a/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs +++ b/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpTransceiver , typescript_type = "RTCRtpTransceiver")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCRtpTransceiver", + typescript_type = "RTCRtpTransceiver" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpTransceiver` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub type RtcRtpTransceiver; - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = mid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpTransceiver", + js_name = "mid" + )] #[doc = "Getter for the `mid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/mid)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub fn mid(this: &RtcRtpTransceiver) -> Option; #[cfg(feature = "RtcRtpSender")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = sender)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpTransceiver", + js_name = "sender" + )] #[doc = "Getter for the `sender` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/sender)"] @@ -27,14 +43,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcRtpTransceiver`*"] pub fn sender(this: &RtcRtpTransceiver) -> RtcRtpSender; #[cfg(feature = "RtcRtpReceiver")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = receiver)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpTransceiver", + js_name = "receiver" + )] #[doc = "Getter for the `receiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/receiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcRtpTransceiver`*"] pub fn receiver(this: &RtcRtpTransceiver) -> RtcRtpReceiver; - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = stopped)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpTransceiver", + js_name = "stopped" + )] #[doc = "Getter for the `stopped` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stopped)"] @@ -42,7 +70,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub fn stopped(this: &RtcRtpTransceiver) -> bool; #[cfg(feature = "RtcRtpTransceiverDirection")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = direction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpTransceiver", + js_name = "direction" + )] #[doc = "Getter for the `direction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"] @@ -50,7 +84,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] pub fn direction(this: &RtcRtpTransceiver) -> RtcRtpTransceiverDirection; #[cfg(feature = "RtcRtpTransceiverDirection")] - # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpTransceiver" , js_name = direction)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCRtpTransceiver", + js_name = "direction" + )] #[doc = "Setter for the `direction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"] @@ -58,21 +98,32 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] pub fn set_direction(this: &RtcRtpTransceiver, value: RtcRtpTransceiverDirection); #[cfg(feature = "RtcRtpTransceiverDirection")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = currentDirection)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCRtpTransceiver", + js_name = "currentDirection" + )] #[doc = "Getter for the `currentDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/currentDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] pub fn current_direction(this: &RtcRtpTransceiver) -> Option; - # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = getRemoteTrackId)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCRtpTransceiver", + js_name = "getRemoteTrackId" + )] #[doc = "The `getRemoteTrackId()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = stop)] + #[wasm_bindgen(method, structural, js_class = "RTCRtpTransceiver", js_name = "stop")] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stop)"] diff --git a/crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs b/crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs index 3f6836a6b24..3a94c778d6f 100644 --- a/crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs +++ b/crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpTransceiverInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtpTransceiverInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpTransceiverInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtxParameters.rs b/crates/web-sys/src/features/gen_RtcRtxParameters.rs index 7540a981321..4bfd3b8e41f 100644 --- a/crates/web-sys/src/features/gen_RtcRtxParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtxParameters.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtxParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRtxParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtxParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcSessionDescription.rs b/crates/web-sys/src/features/gen_RtcSessionDescription.rs index 975d098e5e8..43def05ca57 100644 --- a/crates/web-sys/src/features/gen_RtcSessionDescription.rs +++ b/crates/web-sys/src/features/gen_RtcSessionDescription.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCSessionDescription , typescript_type = "RTCSessionDescription")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCSessionDescription", + typescript_type = "RTCSessionDescription" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcSessionDescription` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] pub type RtcSessionDescription; #[cfg(feature = "RtcSdpType")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCSessionDescription" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCSessionDescription", + 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/RTCSessionDescription/type)"] @@ -20,21 +30,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescription`*"] pub fn type_(this: &RtcSessionDescription) -> RtcSdpType; #[cfg(feature = "RtcSdpType")] - # [wasm_bindgen (structural , method , setter , js_class = "RTCSessionDescription" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCSessionDescription", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescription`*"] pub fn set_type(this: &RtcSessionDescription, value: RtcSdpType); - # [wasm_bindgen (structural , method , getter , js_class = "RTCSessionDescription" , js_name = sdp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCSessionDescription", + js_name = "sdp" + )] #[doc = "Getter for the `sdp` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "RTCSessionDescription" , js_name = sdp)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCSessionDescription", + js_name = "sdp" + )] #[doc = "Setter for the `sdp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/sdp)"] @@ -58,7 +86,12 @@ extern "C" { pub fn new_with_description_init_dict( description_init_dict: &RtcSessionDescriptionInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "RTCSessionDescription" , js_name = toJSON)] + #[wasm_bindgen( + method, + structural, + js_class = "RTCSessionDescription", + js_name = "toJSON" + )] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/toJSON)"] diff --git a/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs b/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs index 72ed9cc342d..919758505ba 100644 --- a/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs +++ b/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCSessionDescriptionInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCSessionDescriptionInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcSessionDescriptionInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcStats.rs b/crates/web-sys/src/features/gen_RtcStats.rs index fc54145da8a..15cd88bf843 100644 --- a/crates/web-sys/src/features/gen_RtcStats.rs +++ b/crates/web-sys/src/features/gen_RtcStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcStatsReport.rs b/crates/web-sys/src/features/gen_RtcStatsReport.rs index 5d419f22854..2d422593673 100644 --- a/crates/web-sys/src/features/gen_RtcStatsReport.rs +++ b/crates/web-sys/src/features/gen_RtcStatsReport.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStatsReport , typescript_type = "RTCStatsReport")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCStatsReport", + typescript_type = "RTCStatsReport" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcStatsReport` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs b/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs index 5b285c2b590..8cd7eb2b334 100644 --- a/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs +++ b/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStatsReportInternal)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCStatsReportInternal")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcStatsReportInternal` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcTrackEvent.rs b/crates/web-sys/src/features/gen_RtcTrackEvent.rs index 69870c1a305..e64f4ce828f 100644 --- a/crates/web-sys/src/features/gen_RtcTrackEvent.rs +++ b/crates/web-sys/src/features/gen_RtcTrackEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCTrackEvent , typescript_type = "RTCTrackEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "RTCTrackEvent", + typescript_type = "RTCTrackEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcTrackEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] pub type RtcTrackEvent; #[cfg(feature = "RtcRtpReceiver")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = receiver)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCTrackEvent", + js_name = "receiver" + )] #[doc = "Getter for the `receiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver)"] @@ -20,14 +31,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcTrackEvent`*"] pub fn receiver(this: &RtcTrackEvent) -> RtcRtpReceiver; #[cfg(feature = "MediaStreamTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = track)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCTrackEvent", + js_name = "track" + )] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcTrackEvent`*"] pub fn track(this: &RtcTrackEvent) -> MediaStreamTrack; - # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = streams)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCTrackEvent", + js_name = "streams" + )] #[doc = "Getter for the `streams` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams)"] @@ -35,7 +58,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] pub fn streams(this: &RtcTrackEvent) -> ::js_sys::Array; #[cfg(feature = "RtcRtpTransceiver")] - # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = transceiver)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCTrackEvent", + js_name = "transceiver" + )] #[doc = "Getter for the `transceiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver)"] diff --git a/crates/web-sys/src/features/gen_RtcTrackEventInit.rs b/crates/web-sys/src/features/gen_RtcTrackEventInit.rs index a8c8031da0b..8e2eabe978c 100644 --- a/crates/web-sys/src/features/gen_RtcTrackEventInit.rs +++ b/crates/web-sys/src/features/gen_RtcTrackEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCTrackEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCTrackEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcTrackEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcTransportStats.rs b/crates/web-sys/src/features/gen_RtcTransportStats.rs index bfe856e27fe..4285733c22f 100644 --- a/crates/web-sys/src/features/gen_RtcTransportStats.rs +++ b/crates/web-sys/src/features/gen_RtcTransportStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCTransportStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCTransportStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcTransportStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcdtmfSender.rs b/crates/web-sys/src/features/gen_RtcdtmfSender.rs index 8feda592ed0..7e77e5a27da 100644 --- a/crates/web-sys/src/features/gen_RtcdtmfSender.rs +++ b/crates/web-sys/src/features/gen_RtcdtmfSender.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCDTMFSender , typescript_type = "RTCDTMFSender")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "RTCDTMFSender", + typescript_type = "RTCDTMFSender" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcdtmfSender` class."] #[doc = ""] @@ -11,42 +16,60 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub type RtcdtmfSender; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDTMFSender" , js_name = ontonechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDTMFSender", + js_name = "ontonechange" + )] #[doc = "Getter for the `ontonechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn ontonechange(this: &RtcdtmfSender) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "RTCDTMFSender" , js_name = ontonechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "RTCDTMFSender", + js_name = "ontonechange" + )] #[doc = "Setter for the `ontonechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn set_ontonechange(this: &RtcdtmfSender, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "RTCDTMFSender" , js_name = toneBuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDTMFSender", + js_name = "toneBuffer" + )] #[doc = "Getter for the `toneBuffer` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)] + #[wasm_bindgen(method, structural, js_class = "RTCDTMFSender", js_name = "insertDTMF")] #[doc = "The `insertDTMF()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn insert_dtmf(this: &RtcdtmfSender, tones: &str); - # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)] + #[wasm_bindgen(method, structural, js_class = "RTCDTMFSender", js_name = "insertDTMF")] #[doc = "The `insertDTMF()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn insert_dtmf_with_duration(this: &RtcdtmfSender, tones: &str, duration: u32); - # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)] + #[wasm_bindgen(method, structural, js_class = "RTCDTMFSender", js_name = "insertDTMF")] #[doc = "The `insertDTMF()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] diff --git a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs index 3d513d29484..e32bdde817d 100644 --- a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs +++ b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCDTMFToneChangeEvent , typescript_type = "RTCDTMFToneChangeEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "RTCDTMFToneChangeEvent", + typescript_type = "RTCDTMFToneChangeEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcdtmfToneChangeEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] pub type RtcdtmfToneChangeEvent; - # [wasm_bindgen (structural , method , getter , js_class = "RTCDTMFToneChangeEvent" , js_name = tone)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "RTCDTMFToneChangeEvent", + js_name = "tone" + )] #[doc = "Getter for the `tone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/tone)"] diff --git a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs index eb6479aa456..b6dca0b0648 100644 --- a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCDTMFToneChangeEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCDTMFToneChangeEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcdtmfToneChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs b/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs index 46b293ae005..811e0397df1 100644 --- a/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs +++ b/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRTPContributingSourceStats)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "RTCRTPContributingSourceStats" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcrtpContributingSourceStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs index 8982a8eaece..9ef2414d893 100644 --- a/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRTPStreamStats)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "RTCRTPStreamStats")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcrtpStreamStats` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Screen.rs b/crates/web-sys/src/features/gen_Screen.rs index fc2b7a54e2a..239228fc553 100644 --- a/crates/web-sys/src/features/gen_Screen.rs +++ b/crates/web-sys/src/features/gen_Screen.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Screen , typescript_type = "Screen")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Screen", + typescript_type = "Screen" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Screen` class."] #[doc = ""] @@ -11,70 +16,140 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub type Screen; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availWidth)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "availWidth" + )] #[doc = "Getter for the `availWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_width(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availHeight)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "availHeight" + )] #[doc = "Getter for the `availHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_height(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = width)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn width(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = height)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn height(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = colorDepth)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "colorDepth" + )] #[doc = "Getter for the `colorDepth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn color_depth(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = pixelDepth)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "pixelDepth" + )] #[doc = "Getter for the `pixelDepth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn pixel_depth(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = top)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "top" + )] #[doc = "Getter for the `top` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/top)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn top(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = left)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "left" + )] #[doc = "Getter for the `left` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/left)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn left(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availTop)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "availTop" + )] #[doc = "Getter for the `availTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_top(this: &Screen) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availLeft)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Screen", + js_name = "availLeft" + )] #[doc = "Getter for the `availLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft)"] @@ -82,7 +157,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_left(this: &Screen) -> Result; #[cfg(feature = "ScreenOrientation")] - # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = orientation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Screen", + js_name = "orientation" + )] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation)"] @@ -90,7 +171,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenOrientation`*"] pub fn orientation(this: &Screen) -> ScreenOrientation; #[cfg(feature = "ScreenColorGamut")] - # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = colorGamut)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Screen", + js_name = "colorGamut" + )] #[doc = "Getter for the `colorGamut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorGamut)"] @@ -98,21 +185,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenColorGamut`*"] pub fn color_gamut(this: &Screen) -> ScreenColorGamut; #[cfg(feature = "ScreenLuminance")] - # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = luminance)] + #[wasm_bindgen(structural, method, getter, js_class = "Screen", js_name = "luminance")] #[doc = "Getter for the `luminance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/luminance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenLuminance`*"] pub fn luminance(this: &Screen) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = onchange)] + #[wasm_bindgen(structural, method, getter, js_class = "Screen", js_name = "onchange")] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn onchange(this: &Screen) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Screen" , js_name = onchange)] + #[wasm_bindgen(structural, method, setter, js_class = "Screen", js_name = "onchange")] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"] diff --git a/crates/web-sys/src/features/gen_ScreenLuminance.rs b/crates/web-sys/src/features/gen_ScreenLuminance.rs index 8bdb1ba167f..5f83fc7d8b8 100644 --- a/crates/web-sys/src/features/gen_ScreenLuminance.rs +++ b/crates/web-sys/src/features/gen_ScreenLuminance.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScreenLuminance , typescript_type = "ScreenLuminance")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ScreenLuminance", + typescript_type = "ScreenLuminance" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScreenLuminance` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] pub type ScreenLuminance; - # [wasm_bindgen (structural , method , getter , js_class = "ScreenLuminance" , js_name = min)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScreenLuminance", + js_name = "min" + )] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] pub fn min(this: &ScreenLuminance) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "ScreenLuminance" , js_name = max)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScreenLuminance", + js_name = "max" + )] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] pub fn max(this: &ScreenLuminance) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "ScreenLuminance" , js_name = maxAverage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScreenLuminance", + js_name = "maxAverage" + )] #[doc = "Getter for the `maxAverage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/maxAverage)"] diff --git a/crates/web-sys/src/features/gen_ScreenOrientation.rs b/crates/web-sys/src/features/gen_ScreenOrientation.rs index 1e26c3b90b4..e83747e3fe8 100644 --- a/crates/web-sys/src/features/gen_ScreenOrientation.rs +++ b/crates/web-sys/src/features/gen_ScreenOrientation.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ScreenOrientation , typescript_type = "ScreenOrientation")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ScreenOrientation", + typescript_type = "ScreenOrientation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScreenOrientation` class."] #[doc = ""] @@ -12,28 +17,54 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub type ScreenOrientation; #[cfg(feature = "OrientationType")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "ScreenOrientation" , js_name = type)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ScreenOrientation", + 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/ScreenOrientation/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OrientationType`, `ScreenOrientation`*"] pub fn type_(this: &ScreenOrientation) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "ScreenOrientation" , js_name = angle)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ScreenOrientation", + js_name = "angle" + )] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub fn angle(this: &ScreenOrientation) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "ScreenOrientation" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScreenOrientation", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub fn onchange(this: &ScreenOrientation) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ScreenOrientation" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ScreenOrientation", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange)"] @@ -41,7 +72,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub fn set_onchange(this: &ScreenOrientation, value: Option<&::js_sys::Function>); #[cfg(feature = "OrientationLockType")] - # [wasm_bindgen (catch , method , structural , js_class = "ScreenOrientation" , js_name = lock)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ScreenOrientation", + js_name = "lock" + )] #[doc = "The `lock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/lock)"] @@ -51,7 +88,13 @@ extern "C" { this: &ScreenOrientation, orientation: OrientationLockType, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ScreenOrientation" , js_name = unlock)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ScreenOrientation", + js_name = "unlock" + )] #[doc = "The `unlock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/unlock)"] diff --git a/crates/web-sys/src/features/gen_ScriptProcessorNode.rs b/crates/web-sys/src/features/gen_ScriptProcessorNode.rs index c213227403f..4e0c4afd26b 100644 --- a/crates/web-sys/src/features/gen_ScriptProcessorNode.rs +++ b/crates/web-sys/src/features/gen_ScriptProcessorNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ScriptProcessorNode , typescript_type = "ScriptProcessorNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ScriptProcessorNode", + typescript_type = "ScriptProcessorNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScriptProcessorNode` class."] #[doc = ""] @@ -11,21 +17,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] pub type ScriptProcessorNode; - # [wasm_bindgen (structural , method , getter , js_class = "ScriptProcessorNode" , js_name = onaudioprocess)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScriptProcessorNode", + js_name = "onaudioprocess" + )] #[doc = "Getter for the `onaudioprocess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/onaudioprocess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] pub fn onaudioprocess(this: &ScriptProcessorNode) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ScriptProcessorNode" , js_name = onaudioprocess)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ScriptProcessorNode", + js_name = "onaudioprocess" + )] #[doc = "Setter for the `onaudioprocess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/onaudioprocess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] pub fn set_onaudioprocess(this: &ScriptProcessorNode, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ScriptProcessorNode" , js_name = bufferSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScriptProcessorNode", + js_name = "bufferSize" + )] #[doc = "Getter for the `bufferSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/bufferSize)"] diff --git a/crates/web-sys/src/features/gen_ScrollAreaEvent.rs b/crates/web-sys/src/features/gen_ScrollAreaEvent.rs index c4c5103e4a9..cdc46001cb7 100644 --- a/crates/web-sys/src/features/gen_ScrollAreaEvent.rs +++ b/crates/web-sys/src/features/gen_ScrollAreaEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = ScrollAreaEvent , typescript_type = "ScrollAreaEvent")] + #[wasm_bindgen( + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "ScrollAreaEvent", + typescript_type = "ScrollAreaEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollAreaEvent` class."] #[doc = ""] @@ -11,42 +17,76 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub type ScrollAreaEvent; - # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScrollAreaEvent", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn x(this: &ScrollAreaEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScrollAreaEvent", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn y(this: &ScrollAreaEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScrollAreaEvent", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn width(this: &ScrollAreaEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ScrollAreaEvent", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn height(this: &ScrollAreaEvent) -> f32; - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn init_scroll_area_event(this: &ScrollAreaEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] @@ -57,7 +97,12 @@ extern "C" { type_: &str, can_bubble: bool, ); - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] @@ -70,7 +115,12 @@ extern "C" { cancelable: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] @@ -84,7 +134,12 @@ extern "C" { view: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] @@ -99,7 +154,12 @@ extern "C" { detail: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] @@ -115,7 +175,12 @@ extern "C" { x: f32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] @@ -132,7 +197,12 @@ extern "C" { y: f32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] @@ -150,7 +220,12 @@ extern "C" { width: f32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "ScrollAreaEvent", + js_name = "initScrollAreaEvent" + )] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] diff --git a/crates/web-sys/src/features/gen_ScrollBoxObject.rs b/crates/web-sys/src/features/gen_ScrollBoxObject.rs index 36749f197e3..b6f9da37266 100644 --- a/crates/web-sys/src/features/gen_ScrollBoxObject.rs +++ b/crates/web-sys/src/features/gen_ScrollBoxObject.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ScrollBoxObject , typescript_type = "ScrollBoxObject")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "ScrollBoxObject" , typescript_type = "ScrollBoxObject")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollBoxObject` class."] #[doc = ""] @@ -11,28 +11,56 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub type ScrollBoxObject; - # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionX)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ScrollBoxObject", + js_name = "positionX" + )] #[doc = "Getter for the `positionX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn position_x(this: &ScrollBoxObject) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionY)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ScrollBoxObject", + js_name = "positionY" + )] #[doc = "Getter for the `positionY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn position_y(this: &ScrollBoxObject) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledWidth)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ScrollBoxObject", + js_name = "scrolledWidth" + )] #[doc = "Getter for the `scrolledWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scrolled_width(this: &ScrollBoxObject) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledHeight)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ScrollBoxObject", + js_name = "scrolledHeight" + )] #[doc = "Getter for the `scrolledHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledHeight)"] @@ -40,7 +68,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scrolled_height(this: &ScrollBoxObject) -> Result; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = ensureElementIsVisible)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ScrollBoxObject", + js_name = "ensureElementIsVisible" + )] #[doc = "The `ensureElementIsVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/ensureElementIsVisible)"] @@ -50,21 +84,39 @@ extern "C" { this: &ScrollBoxObject, child: &Element, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollBy)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ScrollBoxObject", + js_name = "scrollBy" + )] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scroll_by(this: &ScrollBoxObject, dx: i32, dy: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollByIndex)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ScrollBoxObject", + js_name = "scrollByIndex" + )] #[doc = "The `scrollByIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollByIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scroll_by_index(this: &ScrollBoxObject, dindexes: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollTo)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ScrollBoxObject", + js_name = "scrollTo" + )] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollTo)"] @@ -72,7 +124,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scroll_to(this: &ScrollBoxObject, x: i32, y: i32) -> Result<(), JsValue>; #[cfg(feature = "Element")] - # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollToElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ScrollBoxObject", + js_name = "scrollToElement" + )] #[doc = "The `scrollToElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollToElement)"] diff --git a/crates/web-sys/src/features/gen_ScrollIntoViewOptions.rs b/crates/web-sys/src/features/gen_ScrollIntoViewOptions.rs index 41bbe879445..c5bb1d11619 100644 --- a/crates/web-sys/src/features/gen_ScrollIntoViewOptions.rs +++ b/crates/web-sys/src/features/gen_ScrollIntoViewOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollIntoViewOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ScrollIntoViewOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollIntoViewOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ScrollOptions.rs b/crates/web-sys/src/features/gen_ScrollOptions.rs index 8248151ed3b..c325789db40 100644 --- a/crates/web-sys/src/features/gen_ScrollOptions.rs +++ b/crates/web-sys/src/features/gen_ScrollOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ScrollOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ScrollToOptions.rs b/crates/web-sys/src/features/gen_ScrollToOptions.rs index 3458f6d5c34..87fd8b730dd 100644 --- a/crates/web-sys/src/features/gen_ScrollToOptions.rs +++ b/crates/web-sys/src/features/gen_ScrollToOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollToOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ScrollToOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollToOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ScrollViewChangeEventInit.rs b/crates/web-sys/src/features/gen_ScrollViewChangeEventInit.rs index 8ea656b578c..f2dd2889b63 100644 --- a/crates/web-sys/src/features/gen_ScrollViewChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_ScrollViewChangeEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollViewChangeEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ScrollViewChangeEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollViewChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs b/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs index 65b354d56a7..54dc131cb20 100644 --- a/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs +++ b/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SecurityPolicyViolationEvent , typescript_type = "SecurityPolicyViolationEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "SecurityPolicyViolationEvent", + typescript_type = "SecurityPolicyViolationEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SecurityPolicyViolationEvent` class."] #[doc = ""] @@ -11,56 +16,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub type SecurityPolicyViolationEvent; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = documentURI)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SecurityPolicyViolationEvent", + 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/SecurityPolicyViolationEvent/documentURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn document_uri(this: &SecurityPolicyViolationEvent) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = referrer)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = blockedURI)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = violatedDirective)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = effectiveDirective)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = originalPolicy)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sourceFile)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sample)] + #[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)"] @@ -68,7 +121,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn sample(this: &SecurityPolicyViolationEvent) -> String; #[cfg(feature = "SecurityPolicyViolationEventDisposition")] - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = disposition)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SecurityPolicyViolationEvent", + js_name = "disposition" + )] #[doc = "Getter for the `disposition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/disposition)"] @@ -77,21 +136,39 @@ extern "C" { pub fn disposition( this: &SecurityPolicyViolationEvent, ) -> SecurityPolicyViolationEventDisposition; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = statusCode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SecurityPolicyViolationEvent", + js_name = "statusCode" + )] #[doc = "Getter for the `statusCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/statusCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn status_code(this: &SecurityPolicyViolationEvent) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = lineNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SecurityPolicyViolationEvent", + js_name = "lineNumber" + )] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn line_number(this: &SecurityPolicyViolationEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = columnNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SecurityPolicyViolationEvent", + js_name = "columnNumber" + )] #[doc = "Getter for the `columnNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)"] diff --git a/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs index 8170d05ed63..f18797995d5 100644 --- a/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs +++ b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SecurityPolicyViolationEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SecurityPolicyViolationEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SecurityPolicyViolationEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Selection.rs b/crates/web-sys/src/features/gen_Selection.rs index d4636464b9b..68e79435639 100644 --- a/crates/web-sys/src/features/gen_Selection.rs +++ b/crates/web-sys/src/features/gen_Selection.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Selection , typescript_type = "Selection")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Selection", + typescript_type = "Selection" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Selection` class."] #[doc = ""] @@ -12,14 +16,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub type Selection; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = anchorNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Selection", + js_name = "anchorNode" + )] #[doc = "Getter for the `anchorNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn anchor_node(this: &Selection) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = anchorOffset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Selection", + js_name = "anchorOffset" + )] #[doc = "Getter for the `anchorOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorOffset)"] @@ -27,49 +43,87 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn anchor_offset(this: &Selection) -> u32; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = focusNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Selection", + js_name = "focusNode" + )] #[doc = "Getter for the `focusNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/focusNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn focus_node(this: &Selection) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = focusOffset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Selection", + js_name = "focusOffset" + )] #[doc = "Getter for the `focusOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/focusOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn focus_offset(this: &Selection) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = isCollapsed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Selection", + js_name = "isCollapsed" + )] #[doc = "Getter for the `isCollapsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/isCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn is_collapsed(this: &Selection) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = rangeCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Selection", + js_name = "rangeCount" + )] #[doc = "Getter for the `rangeCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/rangeCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn range_count(this: &Selection) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "Selection", 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/Selection/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn type_(this: &Selection) -> String; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Selection" , js_name = caretBidiLevel)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Selection", + js_name = "caretBidiLevel" + )] #[doc = "Getter for the `caretBidiLevel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/caretBidiLevel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn caret_bidi_level(this: &Selection) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Selection" , js_name = caretBidiLevel)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Selection", + js_name = "caretBidiLevel" + )] #[doc = "Setter for the `caretBidiLevel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/caretBidiLevel)"] @@ -77,7 +131,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn set_caret_bidi_level(this: &Selection, value: Option) -> Result<(), JsValue>; #[cfg(feature = "Range")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = addRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "addRange" + )] #[doc = "The `addRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/addRange)"] @@ -85,7 +145,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] pub fn add_range(this: &Selection, range: &Range) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapse)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "collapse" + )] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapse)"] @@ -93,7 +159,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn collapse(this: &Selection, node: Option<&Node>) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapse)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "collapse" + )] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapse)"] @@ -104,14 +176,26 @@ extern "C" { node: Option<&Node>, offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapseToEnd)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "collapseToEnd" + )] #[doc = "The `collapseToEnd()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapseToEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn collapse_to_end(this: &Selection) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapseToStart)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "collapseToStart" + )] #[doc = "The `collapseToStart()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapseToStart)"] @@ -119,7 +203,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn collapse_to_start(this: &Selection) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = containsNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "containsNode" + )] #[doc = "The `containsNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/containsNode)"] @@ -127,7 +217,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn contains_node(this: &Selection, node: &Node) -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = containsNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "containsNode" + )] #[doc = "The `containsNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/containsNode)"] @@ -138,14 +234,20 @@ extern "C" { node: &Node, allow_partial_containment: bool, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = deleteFromDocument)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "deleteFromDocument" + )] #[doc = "The `deleteFromDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/deleteFromDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn delete_from_document(this: &Selection) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = empty)] + #[wasm_bindgen(catch, method, structural, js_class = "Selection", js_name = "empty")] #[doc = "The `empty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/empty)"] @@ -153,7 +255,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn empty(this: &Selection) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = extend)] + #[wasm_bindgen(catch, method, structural, js_class = "Selection", js_name = "extend")] #[doc = "The `extend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/extend)"] @@ -161,7 +263,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn extend(this: &Selection, node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = extend)] + #[wasm_bindgen(catch, method, structural, js_class = "Selection", js_name = "extend")] #[doc = "The `extend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/extend)"] @@ -169,14 +271,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn extend_with_offset(this: &Selection, node: &Node, offset: u32) -> Result<(), JsValue>; #[cfg(feature = "Range")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = getRangeAt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "getRangeAt" + )] #[doc = "The `getRangeAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/getRangeAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] pub fn get_range_at(this: &Selection, index: u32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = modify)] + #[wasm_bindgen(catch, method, structural, js_class = "Selection", js_name = "modify")] #[doc = "The `modify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/modify)"] @@ -188,7 +296,13 @@ extern "C" { direction: &str, granularity: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = removeAllRanges)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "removeAllRanges" + )] #[doc = "The `removeAllRanges()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/removeAllRanges)"] @@ -196,7 +310,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn remove_all_ranges(this: &Selection) -> Result<(), JsValue>; #[cfg(feature = "Range")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = removeRange)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "removeRange" + )] #[doc = "The `removeRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/removeRange)"] @@ -204,7 +324,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] pub fn remove_range(this: &Selection, range: &Range) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = selectAllChildren)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "selectAllChildren" + )] #[doc = "The `selectAllChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/selectAllChildren)"] @@ -212,7 +338,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn select_all_children(this: &Selection, node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = setBaseAndExtent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "setBaseAndExtent" + )] #[doc = "The `setBaseAndExtent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setBaseAndExtent)"] @@ -226,7 +358,13 @@ extern "C" { focus_offset: u32, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = setPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "setPosition" + )] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setPosition)"] @@ -234,7 +372,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn set_position(this: &Selection, node: Option<&Node>) -> Result<(), JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = setPosition)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Selection", + js_name = "setPosition" + )] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setPosition)"] diff --git a/crates/web-sys/src/features/gen_ServerSocketOptions.rs b/crates/web-sys/src/features/gen_ServerSocketOptions.rs index c347b90a051..d1dbc20f55c 100644 --- a/crates/web-sys/src/features/gen_ServerSocketOptions.rs +++ b/crates/web-sys/src/features/gen_ServerSocketOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ServerSocketOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ServerSocketOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServerSocketOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ServiceWorker.rs b/crates/web-sys/src/features/gen_ServiceWorker.rs index 7e006d764a6..97925f82858 100644 --- a/crates/web-sys/src/features/gen_ServiceWorker.rs +++ b/crates/web-sys/src/features/gen_ServiceWorker.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorker , typescript_type = "ServiceWorker")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ServiceWorker", + typescript_type = "ServiceWorker" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorker` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub type ServiceWorker; - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = scriptURL)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorker", + js_name = "scriptURL" + )] #[doc = "Getter for the `scriptURL` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL)"] @@ -19,42 +30,78 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn script_url(this: &ServiceWorker) -> String; #[cfg(feature = "ServiceWorkerState")] - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorker", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerState`*"] pub fn state(this: &ServiceWorker) -> ServiceWorkerState; - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorker", + js_name = "onstatechange" + )] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn onstatechange(this: &ServiceWorker) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorker" , js_name = onstatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorker", + js_name = "onstatechange" + )] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn set_onstatechange(this: &ServiceWorker, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorker", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn onerror(this: &ServiceWorker) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorker" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorker", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn set_onerror(this: &ServiceWorker, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorker" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorker", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/postMessage)"] @@ -64,7 +111,13 @@ extern "C" { this: &ServiceWorker, message: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorker" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorker", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/postMessage)"] diff --git a/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs b/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs index d2be819c51e..4b0001ae43a 100644 --- a/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs +++ b/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerContainer , typescript_type = "ServiceWorkerContainer")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ServiceWorkerContainer", + typescript_type = "ServiceWorkerContainer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorkerContainer` class."] #[doc = ""] @@ -12,28 +17,53 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub type ServiceWorkerContainer; #[cfg(feature = "ServiceWorker")] - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = controller)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerContainer", + js_name = "controller" + )] #[doc = "Getter for the `controller` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/controller)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerContainer`*"] pub fn controller(this: &ServiceWorkerContainer) -> Option; - # [wasm_bindgen (structural , catch , method , getter , js_class = "ServiceWorkerContainer" , js_name = ready)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ServiceWorkerContainer", + js_name = "ready" + )] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn ready(this: &ServiceWorkerContainer) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = oncontrollerchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerContainer", + js_name = "oncontrollerchange" + )] #[doc = "Getter for the `oncontrollerchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/oncontrollerchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn oncontrollerchange(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = oncontrollerchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerContainer", + js_name = "oncontrollerchange" + )] #[doc = "Setter for the `oncontrollerchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/oncontrollerchange)"] @@ -43,42 +73,76 @@ extern "C" { this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>, ); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerContainer", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn onerror(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerContainer", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn set_onerror(this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerContainer", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn onmessage(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerContainer", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn set_onmessage(this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>); - # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistration)] + #[wasm_bindgen( + method, + structural, + js_class = "ServiceWorkerContainer", + js_name = "getRegistration" + )] #[doc = "The `getRegistration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn get_registration(this: &ServiceWorkerContainer) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistration)] + #[wasm_bindgen( + method, + structural, + js_class = "ServiceWorkerContainer", + js_name = "getRegistration" + )] #[doc = "The `getRegistration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistration)"] @@ -88,21 +152,37 @@ extern "C" { this: &ServiceWorkerContainer, document_url: &str, ) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistrations)] + #[wasm_bindgen( + method, + structural, + js_class = "ServiceWorkerContainer", + js_name = "getRegistrations" + )] #[doc = "The `getRegistrations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistrations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn get_registrations(this: &ServiceWorkerContainer) -> ::js_sys::Promise; - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerContainer" , js_name = getScopeForUrl)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerContainer", + js_name = "getScopeForUrl" + )] #[doc = "The `getScopeForUrl()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = register)] + #[wasm_bindgen( + method, + structural, + js_class = "ServiceWorkerContainer", + js_name = "register" + )] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register)"] @@ -110,7 +190,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn register(this: &ServiceWorkerContainer, script_url: &str) -> ::js_sys::Promise; #[cfg(feature = "RegistrationOptions")] - # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = register)] + #[wasm_bindgen( + method, + structural, + js_class = "ServiceWorkerContainer", + js_name = "register" + )] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register)"] diff --git a/crates/web-sys/src/features/gen_ServiceWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_ServiceWorkerGlobalScope.rs index e25ebbc4459..77f774cee4c 100644 --- a/crates/web-sys/src/features/gen_ServiceWorkerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_ServiceWorkerGlobalScope.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerGlobalScope , typescript_type = "ServiceWorkerGlobalScope")] + #[wasm_bindgen( + extends = "WorkerGlobalScope", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ServiceWorkerGlobalScope", + typescript_type = "ServiceWorkerGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorkerGlobalScope` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub type ServiceWorkerGlobalScope; #[cfg(feature = "Clients")] - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = clients)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "clients" + )] #[doc = "Getter for the `clients` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/clients)"] @@ -20,91 +32,169 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Clients`, `ServiceWorkerGlobalScope`*"] pub fn clients(this: &ServiceWorkerGlobalScope) -> Clients; #[cfg(feature = "ServiceWorkerRegistration")] - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = registration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "registration" + )] #[doc = "Getter for the `registration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/registration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`, `ServiceWorkerRegistration`*"] pub fn registration(this: &ServiceWorkerGlobalScope) -> ServiceWorkerRegistration; - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = oninstall)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "oninstall" + )] #[doc = "Getter for the `oninstall` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/oninstall)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn oninstall(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = oninstall)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "oninstall" + )] #[doc = "Setter for the `oninstall` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/oninstall)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_oninstall(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onactivate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onactivate" + )] #[doc = "Getter for the `onactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onactivate(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onactivate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onactivate" + )] #[doc = "Setter for the `onactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onactivate(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onfetch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onfetch" + )] #[doc = "Getter for the `onfetch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onfetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onfetch(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onfetch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onfetch" + )] #[doc = "Setter for the `onfetch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onfetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onfetch(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onmessage(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onmessage(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onpush)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onpush" + )] #[doc = "Getter for the `onpush` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onpush(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onpush)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onpush" + )] #[doc = "Setter for the `onpush` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onpush(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onpushsubscriptionchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onpushsubscriptionchange" + )] #[doc = "Getter for the `onpushsubscriptionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpushsubscriptionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onpushsubscriptionchange(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onpushsubscriptionchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onpushsubscriptionchange" + )] #[doc = "Setter for the `onpushsubscriptionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpushsubscriptionchange)"] @@ -114,14 +204,26 @@ extern "C" { this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>, ); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onnotificationclick" + )] #[doc = "Getter for the `onnotificationclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onnotificationclick(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onnotificationclick" + )] #[doc = "Setter for the `onnotificationclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclick)"] @@ -131,14 +233,26 @@ extern "C" { this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>, ); - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onnotificationclose" + )] #[doc = "Getter for the `onnotificationclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onnotificationclose(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerGlobalScope", + js_name = "onnotificationclose" + )] #[doc = "Setter for the `onnotificationclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclose)"] @@ -148,7 +262,13 @@ extern "C" { this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>, ); - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerGlobalScope" , js_name = skipWaiting)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerGlobalScope", + js_name = "skipWaiting" + )] #[doc = "The `skipWaiting()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting)"] diff --git a/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs b/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs index 06155365c92..28cff1f0f26 100644 --- a/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs +++ b/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerRegistration , typescript_type = "ServiceWorkerRegistration")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ServiceWorkerRegistration", + typescript_type = "ServiceWorkerRegistration" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorkerRegistration` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub type ServiceWorkerRegistration; #[cfg(feature = "ServiceWorker")] - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = installing)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerRegistration", + js_name = "installing" + )] #[doc = "Getter for the `installing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/installing)"] @@ -20,7 +31,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] pub fn installing(this: &ServiceWorkerRegistration) -> Option; #[cfg(feature = "ServiceWorker")] - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = waiting)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerRegistration", + js_name = "waiting" + )] #[doc = "Getter for the `waiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/waiting)"] @@ -28,14 +45,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] pub fn waiting(this: &ServiceWorkerRegistration) -> Option; #[cfg(feature = "ServiceWorker")] - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = active)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerRegistration", + js_name = "active" + )] #[doc = "Getter for the `active` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] pub fn active(this: &ServiceWorkerRegistration) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = scope)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerRegistration", + js_name = "scope" + )] #[doc = "Getter for the `scope` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope)"] @@ -43,7 +72,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn scope(this: &ServiceWorkerRegistration) -> String; #[cfg(feature = "ServiceWorkerUpdateViaCache")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "ServiceWorkerRegistration" , js_name = updateViaCache)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ServiceWorkerRegistration", + js_name = "updateViaCache" + )] #[doc = "Getter for the `updateViaCache` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/updateViaCache)"] @@ -52,14 +88,26 @@ extern "C" { pub fn update_via_cache( this: &ServiceWorkerRegistration, ) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = onupdatefound)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ServiceWorkerRegistration", + js_name = "onupdatefound" + )] #[doc = "Getter for the `onupdatefound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn onupdatefound(this: &ServiceWorkerRegistration) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerRegistration" , js_name = onupdatefound)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ServiceWorkerRegistration", + js_name = "onupdatefound" + )] #[doc = "Setter for the `onupdatefound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound)"] @@ -67,14 +115,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn set_onupdatefound(this: &ServiceWorkerRegistration, value: Option<&::js_sys::Function>); #[cfg(feature = "PushManager")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "ServiceWorkerRegistration" , js_name = pushManager)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "ServiceWorkerRegistration", + js_name = "pushManager" + )] #[doc = "Getter for the `pushManager` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`, `ServiceWorkerRegistration`*"] pub fn push_manager(this: &ServiceWorkerRegistration) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = getNotifications)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerRegistration", + js_name = "getNotifications" + )] #[doc = "The `getNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications)"] @@ -84,7 +145,13 @@ extern "C" { this: &ServiceWorkerRegistration, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "GetNotificationOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = getNotifications)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerRegistration", + js_name = "getNotifications" + )] #[doc = "The `getNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications)"] @@ -94,7 +161,13 @@ extern "C" { this: &ServiceWorkerRegistration, filter: &GetNotificationOptions, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = showNotification)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerRegistration", + js_name = "showNotification" + )] #[doc = "The `showNotification()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification)"] @@ -105,7 +178,13 @@ extern "C" { title: &str, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "NotificationOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = showNotification)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerRegistration", + js_name = "showNotification" + )] #[doc = "The `showNotification()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification)"] @@ -116,14 +195,26 @@ extern "C" { title: &str, options: &NotificationOptions, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = unregister)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerRegistration", + js_name = "unregister" + )] #[doc = "The `unregister()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/unregister)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn unregister(this: &ServiceWorkerRegistration) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = update)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "ServiceWorkerRegistration", + js_name = "update" + )] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/update)"] diff --git a/crates/web-sys/src/features/gen_ShadowRoot.rs b/crates/web-sys/src/features/gen_ShadowRoot.rs index a0186ea2eb4..740a5d5b8e2 100644 --- a/crates/web-sys/src/features/gen_ShadowRoot.rs +++ b/crates/web-sys/src/features/gen_ShadowRoot.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = DocumentFragment , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ShadowRoot , typescript_type = "ShadowRoot")] + #[wasm_bindgen( + extends = "DocumentFragment", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "ShadowRoot", + typescript_type = "ShadowRoot" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ShadowRoot` class."] #[doc = ""] @@ -12,7 +19,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub type ShadowRoot; #[cfg(feature = "ShadowRootMode")] - # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = mode)] + #[wasm_bindgen(structural, method, getter, js_class = "ShadowRoot", js_name = "mode")] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode)"] @@ -20,21 +27,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `ShadowRootMode`*"] pub fn mode(this: &ShadowRoot) -> ShadowRootMode; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = host)] + #[wasm_bindgen(structural, method, getter, js_class = "ShadowRoot", 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/ShadowRoot/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn host(this: &ShadowRoot) -> Element; - # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = innerHTML)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ShadowRoot", + js_name = "innerHTML" + )] #[doc = "Getter for the `innerHTML` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "ShadowRoot" , js_name = innerHTML)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "ShadowRoot", + js_name = "innerHTML" + )] #[doc = "Setter for the `innerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"] @@ -42,7 +61,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub fn set_inner_html(this: &ShadowRoot, value: &str); #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = activeElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ShadowRoot", + js_name = "activeElement" + )] #[doc = "Getter for the `activeElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/activeElement)"] @@ -50,7 +75,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn active_element(this: &ShadowRoot) -> Option; #[cfg(feature = "StyleSheetList")] - # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = styleSheets)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ShadowRoot", + js_name = "styleSheets" + )] #[doc = "Getter for the `styleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/styleSheets)"] @@ -58,7 +89,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `StyleSheetList`*"] pub fn style_sheets(this: &ShadowRoot) -> StyleSheetList; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = pointerLockElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ShadowRoot", + js_name = "pointerLockElement" + )] #[doc = "Getter for the `pointerLockElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/pointerLockElement)"] @@ -66,7 +103,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn pointer_lock_element(this: &ShadowRoot) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = fullscreenElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ShadowRoot", + js_name = "fullscreenElement" + )] #[doc = "Getter for the `fullscreenElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/fullscreenElement)"] @@ -74,7 +117,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn fullscreen_element(this: &ShadowRoot) -> Option; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementById)] + #[wasm_bindgen( + method, + structural, + js_class = "ShadowRoot", + js_name = "getElementById" + )] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementById)"] @@ -82,7 +130,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn get_element_by_id(this: &ShadowRoot, element_id: &str) -> Option; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByClassName)] + #[wasm_bindgen( + method, + structural, + js_class = "ShadowRoot", + js_name = "getElementsByClassName" + )] #[doc = "The `getElementsByClassName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByClassName)"] @@ -90,7 +143,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] pub fn get_elements_by_class_name(this: &ShadowRoot, class_names: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagName)] + #[wasm_bindgen( + method, + structural, + js_class = "ShadowRoot", + js_name = "getElementsByTagName" + )] #[doc = "The `getElementsByTagName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagName)"] @@ -98,7 +156,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] pub fn get_elements_by_tag_name(this: &ShadowRoot, local_name: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] - # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagNameNS)] + #[wasm_bindgen( + method, + structural, + js_class = "ShadowRoot", + js_name = "getElementsByTagNameNS" + )] #[doc = "The `getElementsByTagNameNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagNameNS)"] @@ -110,14 +173,24 @@ extern "C" { local_name: &str, ) -> HtmlCollection; #[cfg(feature = "Element")] - # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementFromPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "ShadowRoot", + js_name = "elementFromPoint" + )] #[doc = "The `elementFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementFromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn element_from_point(this: &ShadowRoot, x: f32, y: f32) -> Option; - # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementsFromPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "ShadowRoot", + js_name = "elementsFromPoint" + )] #[doc = "The `elementsFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementsFromPoint)"] diff --git a/crates/web-sys/src/features/gen_ShadowRootInit.rs b/crates/web-sys/src/features/gen_ShadowRootInit.rs index 762fc9e81dd..d2e275ba156 100644 --- a/crates/web-sys/src/features/gen_ShadowRootInit.rs +++ b/crates/web-sys/src/features/gen_ShadowRootInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ShadowRootInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ShadowRootInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ShadowRootInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ShareData.rs b/crates/web-sys/src/features/gen_ShareData.rs index 982cbd480d9..00f5e61171b 100644 --- a/crates/web-sys/src/features/gen_ShareData.rs +++ b/crates/web-sys/src/features/gen_ShareData.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ShareData)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ShareData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ShareData` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SharedWorker.rs b/crates/web-sys/src/features/gen_SharedWorker.rs index 28c93e7700c..e7fce4a7fdc 100644 --- a/crates/web-sys/src/features/gen_SharedWorker.rs +++ b/crates/web-sys/src/features/gen_SharedWorker.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SharedWorker , typescript_type = "SharedWorker")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SharedWorker", + typescript_type = "SharedWorker" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SharedWorker` class."] #[doc = ""] @@ -12,21 +17,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] pub type SharedWorker; #[cfg(feature = "MessagePort")] - # [wasm_bindgen (structural , method , getter , js_class = "SharedWorker" , js_name = port)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SharedWorker", + 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/SharedWorker/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`, `SharedWorker`*"] pub fn port(this: &SharedWorker) -> MessagePort; - # [wasm_bindgen (structural , method , getter , js_class = "SharedWorker" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SharedWorker", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] pub fn onerror(this: &SharedWorker) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SharedWorker" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SharedWorker", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/onerror)"] diff --git a/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs index b77b9f89245..c2fe3dab064 100644 --- a/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = SharedWorkerGlobalScope , typescript_type = "SharedWorkerGlobalScope")] + #[wasm_bindgen( + extends = "WorkerGlobalScope", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SharedWorkerGlobalScope", + typescript_type = "SharedWorkerGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SharedWorkerGlobalScope` class."] #[doc = ""] @@ -11,28 +17,51 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub type SharedWorkerGlobalScope; - # [wasm_bindgen (structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SharedWorkerGlobalScope", + 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/SharedWorkerGlobalScope/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub fn name(this: &SharedWorkerGlobalScope) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SharedWorkerGlobalScope", + js_name = "onconnect" + )] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub fn onconnect(this: &SharedWorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SharedWorkerGlobalScope", + js_name = "onconnect" + )] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub fn set_onconnect(this: &SharedWorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (method , structural , js_class = "SharedWorkerGlobalScope" , js_name = close)] + #[wasm_bindgen( + method, + structural, + js_class = "SharedWorkerGlobalScope", + js_name = "close" + )] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close)"] diff --git a/crates/web-sys/src/features/gen_SignResponse.rs b/crates/web-sys/src/features/gen_SignResponse.rs index 5b0680e1d67..7c978ddeede 100644 --- a/crates/web-sys/src/features/gen_SignResponse.rs +++ b/crates/web-sys/src/features/gen_SignResponse.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SignResponse)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SignResponse")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SignResponse` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SocketElement.rs b/crates/web-sys/src/features/gen_SocketElement.rs index 81bc62c7236..f6db6ee9f38 100644 --- a/crates/web-sys/src/features/gen_SocketElement.rs +++ b/crates/web-sys/src/features/gen_SocketElement.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SocketElement)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SocketElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SocketElement` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SocketOptions.rs b/crates/web-sys/src/features/gen_SocketOptions.rs index 103c82e19b5..7b02ad419d1 100644 --- a/crates/web-sys/src/features/gen_SocketOptions.rs +++ b/crates/web-sys/src/features/gen_SocketOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SocketOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SocketOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SocketOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SocketsDict.rs b/crates/web-sys/src/features/gen_SocketsDict.rs index 15e87f1184d..0da1f5f6c55 100644 --- a/crates/web-sys/src/features/gen_SocketsDict.rs +++ b/crates/web-sys/src/features/gen_SocketsDict.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SocketsDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SocketsDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SocketsDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SourceBuffer.rs b/crates/web-sys/src/features/gen_SourceBuffer.rs index 8405987e393..6d3104bc2f3 100644 --- a/crates/web-sys/src/features/gen_SourceBuffer.rs +++ b/crates/web-sys/src/features/gen_SourceBuffer.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBuffer , typescript_type = "SourceBuffer")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SourceBuffer", + typescript_type = "SourceBuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SourceBuffer` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub type SourceBuffer; #[cfg(feature = "SourceBufferAppendMode")] - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = mode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "mode" + )] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"] @@ -20,14 +31,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"] pub fn mode(this: &SourceBuffer) -> SourceBufferAppendMode; #[cfg(feature = "SourceBufferAppendMode")] - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = mode)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "mode" + )] #[doc = "Setter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"] pub fn set_mode(this: &SourceBuffer, value: SourceBufferAppendMode); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = updating)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "updating" + )] #[doc = "Getter for the `updating` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating)"] @@ -35,21 +58,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn updating(this: &SourceBuffer) -> bool; #[cfg(feature = "TimeRanges")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "SourceBuffer" , js_name = buffered)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "SourceBuffer", + js_name = "buffered" + )] #[doc = "Getter for the `buffered` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TimeRanges`*"] pub fn buffered(this: &SourceBuffer) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = timestampOffset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "timestampOffset" + )] #[doc = "Getter for the `timestampOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn timestamp_offset(this: &SourceBuffer) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = timestampOffset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "timestampOffset" + )] #[doc = "Setter for the `timestampOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"] @@ -57,7 +99,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_timestamp_offset(this: &SourceBuffer, value: f64); #[cfg(feature = "AudioTrackList")] - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = audioTracks)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "audioTracks" + )] #[doc = "Getter for the `audioTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/audioTracks)"] @@ -65,7 +113,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`, `SourceBuffer`*"] pub fn audio_tracks(this: &SourceBuffer) -> AudioTrackList; #[cfg(feature = "VideoTrackList")] - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = videoTracks)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "videoTracks" + )] #[doc = "Getter for the `videoTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/videoTracks)"] @@ -73,119 +127,221 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `VideoTrackList`*"] pub fn video_tracks(this: &SourceBuffer) -> VideoTrackList; #[cfg(feature = "TextTrackList")] - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = textTracks)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "textTracks" + )] #[doc = "Getter for the `textTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TextTrackList`*"] pub fn text_tracks(this: &SourceBuffer) -> TextTrackList; - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowStart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "appendWindowStart" + )] #[doc = "Getter for the `appendWindowStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_window_start(this: &SourceBuffer) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowStart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "appendWindowStart" + )] #[doc = "Setter for the `appendWindowStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_append_window_start(this: &SourceBuffer, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowEnd)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "appendWindowEnd" + )] #[doc = "Getter for the `appendWindowEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_window_end(this: &SourceBuffer) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowEnd)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "appendWindowEnd" + )] #[doc = "Setter for the `appendWindowEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_append_window_end(this: &SourceBuffer, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdatestart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "onupdatestart" + )] #[doc = "Getter for the `onupdatestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onupdatestart(this: &SourceBuffer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdatestart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "onupdatestart" + )] #[doc = "Setter for the `onupdatestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onupdatestart(this: &SourceBuffer, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "onupdate" + )] #[doc = "Getter for the `onupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onupdate(this: &SourceBuffer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "onupdate" + )] #[doc = "Setter for the `onupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onupdate(this: &SourceBuffer, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdateend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "onupdateend" + )] #[doc = "Getter for the `onupdateend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onupdateend(this: &SourceBuffer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdateend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "onupdateend" + )] #[doc = "Setter for the `onupdateend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onupdateend(this: &SourceBuffer, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onerror(this: &SourceBuffer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onerror(this: &SourceBuffer, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBuffer", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onabort(this: &SourceBuffer) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBuffer", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onabort(this: &SourceBuffer, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = abort)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "abort" + )] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn abort(this: &SourceBuffer) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "appendBuffer" + )] #[doc = "The `appendBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] @@ -195,7 +351,13 @@ extern "C" { this: &SourceBuffer, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "appendBuffer" + )] #[doc = "The `appendBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] @@ -205,7 +367,13 @@ extern "C" { this: &SourceBuffer, data: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "appendBuffer" + )] #[doc = "The `appendBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] @@ -213,7 +381,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_buffer_with_u8_array(this: &SourceBuffer, data: &mut [u8]) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "appendBufferAsync" + )] #[doc = "The `appendBufferAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] @@ -223,7 +397,13 @@ extern "C" { this: &SourceBuffer, data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "appendBufferAsync" + )] #[doc = "The `appendBufferAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] @@ -233,7 +413,13 @@ extern "C" { this: &SourceBuffer, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "appendBufferAsync" + )] #[doc = "The `appendBufferAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] @@ -243,21 +429,39 @@ extern "C" { this: &SourceBuffer, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = changeType)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "changeType" + )] #[doc = "The `changeType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/changeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn change_type(this: &SourceBuffer, type_: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = remove)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "remove" + )] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn remove(this: &SourceBuffer, start: f64, end: f64) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = removeAsync)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SourceBuffer", + js_name = "removeAsync" + )] #[doc = "The `removeAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/removeAsync)"] diff --git a/crates/web-sys/src/features/gen_SourceBufferList.rs b/crates/web-sys/src/features/gen_SourceBufferList.rs index 37e0e23075b..50c23d61abd 100644 --- a/crates/web-sys/src/features/gen_SourceBufferList.rs +++ b/crates/web-sys/src/features/gen_SourceBufferList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBufferList , typescript_type = "SourceBufferList")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SourceBufferList", + typescript_type = "SourceBufferList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SourceBufferList` class."] #[doc = ""] @@ -11,35 +16,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub type SourceBufferList; - # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBufferList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn length(this: &SourceBufferList) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBufferList", + js_name = "onaddsourcebuffer" + )] #[doc = "Getter for the `onaddsourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn onaddsourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBufferList", + js_name = "onaddsourcebuffer" + )] #[doc = "Setter for the `onaddsourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn set_onaddsourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SourceBufferList", + js_name = "onremovesourcebuffer" + )] #[doc = "Getter for the `onremovesourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn onremovesourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SourceBufferList", + js_name = "onremovesourcebuffer" + )] #[doc = "Setter for the `onremovesourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"] diff --git a/crates/web-sys/src/features/gen_SpeechGrammar.rs b/crates/web-sys/src/features/gen_SpeechGrammar.rs index f9a24accc5f..b01edd48ed3 100644 --- a/crates/web-sys/src/features/gen_SpeechGrammar.rs +++ b/crates/web-sys/src/features/gen_SpeechGrammar.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechGrammar , typescript_type = "SpeechGrammar")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SpeechGrammar", + typescript_type = "SpeechGrammar" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechGrammar` class."] #[doc = ""] @@ -11,28 +15,56 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub type SpeechGrammar; - # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = src)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "SpeechGrammar", + js_name = "src" + )] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = src)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "SpeechGrammar", + js_name = "src" + )] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[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 set_src(this: &SpeechGrammar, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = weight)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "SpeechGrammar", + js_name = "weight" + )] #[doc = "Getter for the `weight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub fn weight(this: &SpeechGrammar) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = weight)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "SpeechGrammar", + js_name = "weight" + )] #[doc = "Setter for the `weight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"] diff --git a/crates/web-sys/src/features/gen_SpeechGrammarList.rs b/crates/web-sys/src/features/gen_SpeechGrammarList.rs index 1f9e7a72160..86fc17198c6 100644 --- a/crates/web-sys/src/features/gen_SpeechGrammarList.rs +++ b/crates/web-sys/src/features/gen_SpeechGrammarList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechGrammarList , typescript_type = "SpeechGrammarList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SpeechGrammarList", + typescript_type = "SpeechGrammarList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechGrammarList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub type SpeechGrammarList; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechGrammarList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechGrammarList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/length)"] @@ -25,14 +35,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn new() -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechGrammarList", + js_name = "addFromString" + )] #[doc = "The `addFromString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn add_from_string(this: &SpeechGrammarList, string: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechGrammarList", + js_name = "addFromString" + )] #[doc = "The `addFromString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"] @@ -43,14 +65,26 @@ extern "C" { string: &str, weight: f32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechGrammarList", + js_name = "addFromURI" + )] #[doc = "The `addFromURI()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn add_from_uri(this: &SpeechGrammarList, src: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechGrammarList", + js_name = "addFromURI" + )] #[doc = "The `addFromURI()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"] @@ -62,7 +96,13 @@ extern "C" { weight: f32, ) -> Result<(), JsValue>; #[cfg(feature = "SpeechGrammar")] - # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = item)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechGrammarList", + js_name = "item" + )] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/item)"] diff --git a/crates/web-sys/src/features/gen_SpeechRecognition.rs b/crates/web-sys/src/features/gen_SpeechRecognition.rs index 10bb4a75e95..b29187f8940 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognition.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognition.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechRecognition , typescript_type = "SpeechRecognition")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SpeechRecognition", + typescript_type = "SpeechRecognition" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognition` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub type SpeechRecognition; #[cfg(feature = "SpeechGrammarList")] - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = grammars)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "grammars" + )] #[doc = "Getter for the `grammars` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/grammars)"] @@ -20,231 +31,433 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`, `SpeechRecognition`*"] pub fn grammars(this: &SpeechRecognition) -> SpeechGrammarList; #[cfg(feature = "SpeechGrammarList")] - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = grammars)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "grammars" + )] #[doc = "Setter for the `grammars` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/grammars)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`, `SpeechRecognition`*"] pub fn set_grammars(this: &SpeechRecognition, value: &SpeechGrammarList); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = lang)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + 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/SpeechRecognition/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn lang(this: &SpeechRecognition) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = lang)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "lang" + )] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] #[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 set_lang(this: &SpeechRecognition, value: &str); - # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechRecognition" , js_name = continuous)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "SpeechRecognition", + js_name = "continuous" + )] #[doc = "Getter for the `continuous` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/continuous)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn continuous(this: &SpeechRecognition) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechRecognition" , js_name = continuous)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "SpeechRecognition", + js_name = "continuous" + )] #[doc = "Setter for the `continuous` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/continuous)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_continuous(this: &SpeechRecognition, value: bool) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = interimResults)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "interimResults" + )] #[doc = "Getter for the `interimResults` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn interim_results(this: &SpeechRecognition) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = interimResults)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "interimResults" + )] #[doc = "Setter for the `interimResults` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_interim_results(this: &SpeechRecognition, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = maxAlternatives)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "maxAlternatives" + )] #[doc = "Getter for the `maxAlternatives` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/maxAlternatives)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn max_alternatives(this: &SpeechRecognition) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = maxAlternatives)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "maxAlternatives" + )] #[doc = "Setter for the `maxAlternatives` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/maxAlternatives)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_max_alternatives(this: &SpeechRecognition, value: u32); - # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechRecognition" , js_name = serviceURI)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "SpeechRecognition", + js_name = "serviceURI" + )] #[doc = "Getter for the `serviceURI` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechRecognition" , js_name = serviceURI)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "SpeechRecognition", + js_name = "serviceURI" + )] #[doc = "Setter for the `serviceURI` field of this object."] #[doc = ""] #[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 set_service_uri(this: &SpeechRecognition, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onaudiostart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onaudiostart" + )] #[doc = "Getter for the `onaudiostart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudiostart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onaudiostart(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onaudiostart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onaudiostart" + )] #[doc = "Setter for the `onaudiostart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudiostart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onaudiostart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onsoundstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onsoundstart" + )] #[doc = "Getter for the `onsoundstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onsoundstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onsoundstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onsoundstart" + )] #[doc = "Setter for the `onsoundstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onsoundstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onspeechstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onspeechstart" + )] #[doc = "Getter for the `onspeechstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onspeechstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onspeechstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onspeechstart" + )] #[doc = "Setter for the `onspeechstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onspeechstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onspeechend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onspeechend" + )] #[doc = "Getter for the `onspeechend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onspeechend(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onspeechend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onspeechend" + )] #[doc = "Setter for the `onspeechend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onspeechend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onsoundend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onsoundend" + )] #[doc = "Getter for the `onsoundend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onsoundend(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onsoundend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onsoundend" + )] #[doc = "Setter for the `onsoundend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onsoundend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onaudioend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onaudioend" + )] #[doc = "Getter for the `onaudioend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudioend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onaudioend(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onaudioend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onaudioend" + )] #[doc = "Setter for the `onaudioend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudioend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onaudioend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onresult)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onresult" + )] #[doc = "Getter for the `onresult` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onresult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onresult(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onresult)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onresult" + )] #[doc = "Setter for the `onresult` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onresult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onresult(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onnomatch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onnomatch" + )] #[doc = "Getter for the `onnomatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onnomatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onnomatch(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onnomatch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onnomatch" + )] #[doc = "Setter for the `onnomatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onnomatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onnomatch(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onerror(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onerror(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onstart" + )] #[doc = "Getter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onstart" + )] #[doc = "Setter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognition", + js_name = "onend" + )] #[doc = "Getter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onend(this: &SpeechRecognition) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechRecognition", + js_name = "onend" + )] #[doc = "Setter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onend)"] @@ -258,14 +471,20 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn new() -> Result; - # [wasm_bindgen (method , structural , js_class = "SpeechRecognition" , js_name = abort)] + #[wasm_bindgen(method, structural, js_class = "SpeechRecognition", js_name = "abort")] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn abort(this: &SpeechRecognition); - # [wasm_bindgen (catch , method , structural , js_class = "SpeechRecognition" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechRecognition", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/start)"] @@ -273,7 +492,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn start(this: &SpeechRecognition) -> Result<(), JsValue>; #[cfg(feature = "MediaStream")] - # [wasm_bindgen (catch , method , structural , js_class = "SpeechRecognition" , js_name = start)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechRecognition", + js_name = "start" + )] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/start)"] @@ -281,7 +506,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `SpeechRecognition`*"] pub fn start_with_stream(this: &SpeechRecognition, stream: &MediaStream) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "SpeechRecognition" , js_name = stop)] + #[wasm_bindgen(method, structural, js_class = "SpeechRecognition", js_name = "stop")] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/stop)"] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs b/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs index 5aced7fb38d..cdb885018b9 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionAlternative , typescript_type = "SpeechRecognitionAlternative")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SpeechRecognitionAlternative", + typescript_type = "SpeechRecognitionAlternative" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionAlternative` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] pub type SpeechRecognitionAlternative; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionAlternative" , js_name = transcript)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionAlternative", + js_name = "transcript" + )] #[doc = "Getter for the `transcript` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionAlternative" , js_name = confidence)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionAlternative", + js_name = "confidence" + )] #[doc = "Getter for the `confidence` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/confidence)"] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionError.rs b/crates/web-sys/src/features/gen_SpeechRecognitionError.rs index 37111271203..11ccd61b349 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionError.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionError.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechRecognitionError , typescript_type = "SpeechRecognitionError")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "SpeechRecognitionError", + typescript_type = "SpeechRecognitionError" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionError` class."] #[doc = ""] @@ -12,14 +17,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] pub type SpeechRecognitionError; #[cfg(feature = "SpeechRecognitionErrorCode")] - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionError" , js_name = error)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionError", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`, `SpeechRecognitionErrorCode`*"] pub fn error(this: &SpeechRecognitionError) -> SpeechRecognitionErrorCode; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionError" , js_name = message)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionError", + 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/SpeechRecognitionError/message)"] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs b/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs index 1a7d578ac51..5b1cdbe3556 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionErrorInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SpeechRecognitionErrorInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionErrorInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionEvent.rs b/crates/web-sys/src/features/gen_SpeechRecognitionEvent.rs index 1e37c86ab59..8a5179c496a 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionEvent.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechRecognitionEvent , typescript_type = "SpeechRecognitionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "SpeechRecognitionEvent", + typescript_type = "SpeechRecognitionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] pub type SpeechRecognitionEvent; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = resultIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionEvent", + js_name = "resultIndex" + )] #[doc = "Getter for the `resultIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/resultIndex)"] @@ -19,14 +30,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] pub fn result_index(this: &SpeechRecognitionEvent) -> u32; #[cfg(feature = "SpeechRecognitionResultList")] - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = results)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionEvent", + js_name = "results" + )] #[doc = "Getter for the `results` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/results)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`, `SpeechRecognitionResultList`*"] pub fn results(this: &SpeechRecognitionEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = interpretation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionEvent", + js_name = "interpretation" + )] #[doc = "Getter for the `interpretation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/interpretation)"] @@ -34,7 +57,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] pub fn interpretation(this: &SpeechRecognitionEvent) -> ::wasm_bindgen::JsValue; #[cfg(feature = "Document")] - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = emma)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionEvent", + js_name = "emma" + )] #[doc = "Getter for the `emma` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/emma)"] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionEventInit.rs b/crates/web-sys/src/features/gen_SpeechRecognitionEventInit.rs index 7ac78ecf219..533918ffbee 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionEventInit.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SpeechRecognitionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionResult.rs b/crates/web-sys/src/features/gen_SpeechRecognitionResult.rs index 15075334d81..054b863fa26 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionResult.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionResult.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionResult , typescript_type = "SpeechRecognitionResult")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SpeechRecognitionResult", + typescript_type = "SpeechRecognitionResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionResult` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] pub type SpeechRecognitionResult; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionResult", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] pub fn length(this: &SpeechRecognitionResult) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = isFinal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionResult", + js_name = "isFinal" + )] #[doc = "Getter for the `isFinal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/isFinal)"] @@ -26,7 +42,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] pub fn is_final(this: &SpeechRecognitionResult) -> bool; #[cfg(feature = "SpeechRecognitionAlternative")] - # [wasm_bindgen (method , structural , js_class = "SpeechRecognitionResult" , js_name = item)] + #[wasm_bindgen( + method, + structural, + js_class = "SpeechRecognitionResult", + js_name = "item" + )] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/item)"] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionResultList.rs b/crates/web-sys/src/features/gen_SpeechRecognitionResultList.rs index 9201f8e5312..ed5e9d69b75 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionResultList.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionResultList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionResultList , typescript_type = "SpeechRecognitionResultList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SpeechRecognitionResultList", + typescript_type = "SpeechRecognitionResultList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionResultList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"] pub type SpeechRecognitionResultList; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResultList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechRecognitionResultList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/length)"] @@ -19,7 +29,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"] pub fn length(this: &SpeechRecognitionResultList) -> u32; #[cfg(feature = "SpeechRecognitionResult")] - # [wasm_bindgen (method , structural , js_class = "SpeechRecognitionResultList" , js_name = item)] + #[wasm_bindgen( + method, + structural, + js_class = "SpeechRecognitionResultList", + js_name = "item" + )] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/item)"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesis.rs b/crates/web-sys/src/features/gen_SpeechSynthesis.rs index 729f47d0022..e38eecd23f1 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesis.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesis.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesis , typescript_type = "SpeechSynthesis")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SpeechSynthesis", + typescript_type = "SpeechSynthesis" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesis` class."] #[doc = ""] @@ -11,63 +16,98 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub type SpeechSynthesis; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = pending)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesis", + js_name = "pending" + )] #[doc = "Getter for the `pending` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pending)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn pending(this: &SpeechSynthesis) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = speaking)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesis", + js_name = "speaking" + )] #[doc = "Getter for the `speaking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speaking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn speaking(this: &SpeechSynthesis) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = paused)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesis", + js_name = "paused" + )] #[doc = "Getter for the `paused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/paused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn paused(this: &SpeechSynthesis) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesis", + js_name = "onvoiceschanged" + )] #[doc = "Getter for the `onvoiceschanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn onvoiceschanged(this: &SpeechSynthesis) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesis", + js_name = "onvoiceschanged" + )] #[doc = "Setter for the `onvoiceschanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn set_onvoiceschanged(this: &SpeechSynthesis, value: Option<&::js_sys::Function>); - # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = cancel)] + #[wasm_bindgen(method, structural, js_class = "SpeechSynthesis", js_name = "cancel")] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn cancel(this: &SpeechSynthesis); - # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = getVoices)] + #[wasm_bindgen( + method, + structural, + js_class = "SpeechSynthesis", + js_name = "getVoices" + )] #[doc = "The `getVoices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/getVoices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn get_voices(this: &SpeechSynthesis) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = pause)] + #[wasm_bindgen(method, structural, js_class = "SpeechSynthesis", js_name = "pause")] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn pause(this: &SpeechSynthesis); - # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = resume)] + #[wasm_bindgen(method, structural, js_class = "SpeechSynthesis", js_name = "resume")] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/resume)"] @@ -75,7 +115,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn resume(this: &SpeechSynthesis); #[cfg(feature = "SpeechSynthesisUtterance")] - # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = speak)] + #[wasm_bindgen(method, structural, js_class = "SpeechSynthesis", js_name = "speak")] #[doc = "The `speak()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speak)"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEvent.rs b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEvent.rs index 9d6354531ab..9cb116d895e 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEvent.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SpeechSynthesisEvent , extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisErrorEvent , typescript_type = "SpeechSynthesisErrorEvent")] + #[wasm_bindgen( + extends = "SpeechSynthesisEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "SpeechSynthesisErrorEvent", + typescript_type = "SpeechSynthesisErrorEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisErrorEvent` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEvent`*"] pub type SpeechSynthesisErrorEvent; #[cfg(feature = "SpeechSynthesisErrorCode")] - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisErrorEvent" , js_name = error)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisErrorEvent", + js_name = "error" + )] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent/error)"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs index 8bb2801a3ab..e68cbea6661 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechSynthesisErrorEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SpeechSynthesisErrorEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisErrorEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs b/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs index 361fb54c98f..26698df7560 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisEvent , typescript_type = "SpeechSynthesisEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "SpeechSynthesisEvent", + typescript_type = "SpeechSynthesisEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisEvent` class."] #[doc = ""] @@ -12,35 +17,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub type SpeechSynthesisEvent; #[cfg(feature = "SpeechSynthesisUtterance")] - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = utterance)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisEvent", + js_name = "utterance" + )] #[doc = "Getter for the `utterance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/utterance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisUtterance`*"] pub fn utterance(this: &SpeechSynthesisEvent) -> SpeechSynthesisUtterance; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisEvent", + js_name = "charIndex" + )] #[doc = "Getter for the `charIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub fn char_index(this: &SpeechSynthesisEvent) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisEvent", + js_name = "charLength" + )] #[doc = "Getter for the `charLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub fn char_length(this: &SpeechSynthesisEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = elapsedTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisEvent", + js_name = "elapsedTime" + )] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/elapsedTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub fn elapsed_time(this: &SpeechSynthesisEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisEvent", + 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/SpeechSynthesisEvent/name)"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs b/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs index 83ddf5e9715..ffea84d46b6 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechSynthesisEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SpeechSynthesisEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs b/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs index aa7eaacf3a9..a70063259db 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesisUtterance , typescript_type = "SpeechSynthesisUtterance")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SpeechSynthesisUtterance", + typescript_type = "SpeechSynthesisUtterance" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisUtterance` class."] #[doc = ""] @@ -11,28 +16,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub type SpeechSynthesisUtterance; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = text)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "text" + )] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = text)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "text" + )] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[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 set_text(this: &SpeechSynthesisUtterance, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = lang)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + 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/SpeechSynthesisUtterance/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn lang(this: &SpeechSynthesisUtterance) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = lang)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "lang" + )] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"] @@ -40,7 +69,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_lang(this: &SpeechSynthesisUtterance, value: &str); #[cfg(feature = "SpeechSynthesisVoice")] - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = voice)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "voice" + )] #[doc = "Getter for the `voice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"] @@ -48,147 +83,273 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"] pub fn voice(this: &SpeechSynthesisUtterance) -> Option; #[cfg(feature = "SpeechSynthesisVoice")] - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = voice)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "voice" + )] #[doc = "Setter for the `voice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"] pub fn set_voice(this: &SpeechSynthesisUtterance, value: Option<&SpeechSynthesisVoice>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = volume)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "volume" + )] #[doc = "Getter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn volume(this: &SpeechSynthesisUtterance) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = volume)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "volume" + )] #[doc = "Setter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_volume(this: &SpeechSynthesisUtterance, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = rate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "rate" + )] #[doc = "Getter for the `rate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn rate(this: &SpeechSynthesisUtterance) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = rate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "rate" + )] #[doc = "Setter for the `rate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_rate(this: &SpeechSynthesisUtterance, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = pitch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "pitch" + )] #[doc = "Getter for the `pitch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn pitch(this: &SpeechSynthesisUtterance) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = pitch)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "pitch" + )] #[doc = "Setter for the `pitch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_pitch(this: &SpeechSynthesisUtterance, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "onstart" + )] #[doc = "Getter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onstart(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "onstart" + )] #[doc = "Setter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onstart(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "onend" + )] #[doc = "Getter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onend(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "onend" + )] #[doc = "Setter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onend(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onerror(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onerror(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onpause)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "onpause" + )] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onpause(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onpause)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "onpause" + )] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onpause(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onresume)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "onresume" + )] #[doc = "Getter for the `onresume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onresume(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onresume)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "onresume" + )] #[doc = "Setter for the `onresume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onresume(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onmark)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "onmark" + )] #[doc = "Getter for the `onmark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onmark(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onmark)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "onmark" + )] #[doc = "Setter for the `onmark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onmark(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisUtterance", + js_name = "onboundary" + )] #[doc = "Getter for the `onboundary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onboundary(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SpeechSynthesisUtterance", + js_name = "onboundary" + )] #[doc = "Setter for the `onboundary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs b/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs index 26012757927..99e6caf251c 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechSynthesisVoice , typescript_type = "SpeechSynthesisVoice")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SpeechSynthesisVoice", + typescript_type = "SpeechSynthesisVoice" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisVoice` class."] #[doc = ""] @@ -11,35 +15,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub type SpeechSynthesisVoice; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = voiceURI)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisVoice", + js_name = "voiceURI" + )] #[doc = "Getter for the `voiceURI` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = name)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = lang)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = localService)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisVoice", + js_name = "localService" + )] #[doc = "Getter for the `localService` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/localService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub fn local_service(this: &SpeechSynthesisVoice) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = default)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SpeechSynthesisVoice", + js_name = "default" + )] #[doc = "Getter for the `default` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/default)"] diff --git a/crates/web-sys/src/features/gen_StereoPannerNode.rs b/crates/web-sys/src/features/gen_StereoPannerNode.rs index 8accee506f1..767abb1136d 100644 --- a/crates/web-sys/src/features/gen_StereoPannerNode.rs +++ b/crates/web-sys/src/features/gen_StereoPannerNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = StereoPannerNode , typescript_type = "StereoPannerNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "StereoPannerNode", + typescript_type = "StereoPannerNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StereoPannerNode` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `StereoPannerNode`*"] pub type StereoPannerNode; #[cfg(feature = "AudioParam")] - # [wasm_bindgen (structural , method , getter , js_class = "StereoPannerNode" , js_name = pan)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "StereoPannerNode", + js_name = "pan" + )] #[doc = "Getter for the `pan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/pan)"] diff --git a/crates/web-sys/src/features/gen_StereoPannerOptions.rs b/crates/web-sys/src/features/gen_StereoPannerOptions.rs index f1996c603bf..ba97e8ef480 100644 --- a/crates/web-sys/src/features/gen_StereoPannerOptions.rs +++ b/crates/web-sys/src/features/gen_StereoPannerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StereoPannerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "StereoPannerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StereoPannerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Storage.rs b/crates/web-sys/src/features/gen_Storage.rs index 2a287b7d928..dd206060fa6 100644 --- a/crates/web-sys/src/features/gen_Storage.rs +++ b/crates/web-sys/src/features/gen_Storage.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Storage , typescript_type = "Storage")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Storage", + typescript_type = "Storage" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Storage` class."] #[doc = ""] @@ -11,42 +15,55 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub type Storage; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Storage" , js_name = length)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Storage", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn length(this: &Storage) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = clear)] + #[wasm_bindgen(catch, method, structural, js_class = "Storage", js_name = "clear")] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn clear(this: &Storage) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = getItem)] + #[wasm_bindgen(catch, method, structural, js_class = "Storage", js_name = "getItem")] #[doc = "The `getItem()` method."] #[doc = ""] #[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>; - # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = key)] + #[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>; - # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = removeItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Storage", + js_name = "removeItem" + )] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn remove_item(this: &Storage, key: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = setItem)] + #[wasm_bindgen(catch, method, structural, js_class = "Storage", js_name = "setItem")] #[doc = "The `setItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/setItem)"] diff --git a/crates/web-sys/src/features/gen_StorageEstimate.rs b/crates/web-sys/src/features/gen_StorageEstimate.rs index 20cebe9a154..4834841859c 100644 --- a/crates/web-sys/src/features/gen_StorageEstimate.rs +++ b/crates/web-sys/src/features/gen_StorageEstimate.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageEstimate)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "StorageEstimate")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageEstimate` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_StorageEvent.rs b/crates/web-sys/src/features/gen_StorageEvent.rs index 8030d407dcf..6c60a46e1b3 100644 --- a/crates/web-sys/src/features/gen_StorageEvent.rs +++ b/crates/web-sys/src/features/gen_StorageEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = StorageEvent , typescript_type = "StorageEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "StorageEvent", + typescript_type = "StorageEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageEvent` class."] #[doc = ""] @@ -11,28 +16,40 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub type StorageEvent; - # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = key)] + #[wasm_bindgen(structural, method, getter, js_class = "StorageEvent", js_name = "key")] #[doc = "Getter for the `key` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = oldValue)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = newValue)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = url)] + #[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)"] @@ -40,7 +57,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn url(this: &StorageEvent) -> Option; #[cfg(feature = "Storage")] - # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = storageArea)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "StorageEvent", + js_name = "storageArea" + )] #[doc = "Getter for the `storageArea` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/storageArea)"] @@ -65,21 +88,36 @@ extern "C" { type_: &str, event_init_dict: &StorageEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event(this: &StorageEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event_with_can_bubble(this: &StorageEvent, type_: &str, can_bubble: bool); - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] @@ -91,7 +129,12 @@ extern "C" { can_bubble: bool, cancelable: bool, ); - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] @@ -104,7 +147,12 @@ extern "C" { cancelable: bool, key: Option<&str>, ); - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] @@ -118,7 +166,12 @@ extern "C" { key: Option<&str>, old_value: Option<&str>, ); - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] @@ -133,7 +186,12 @@ extern "C" { old_value: Option<&str>, new_value: Option<&str>, ); - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] @@ -150,7 +208,12 @@ extern "C" { url: Option<&str>, ); #[cfg(feature = "Storage")] - # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "StorageEvent", + js_name = "initStorageEvent" + )] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] diff --git a/crates/web-sys/src/features/gen_StorageEventInit.rs b/crates/web-sys/src/features/gen_StorageEventInit.rs index d3509e51359..b013154fcaa 100644 --- a/crates/web-sys/src/features/gen_StorageEventInit.rs +++ b/crates/web-sys/src/features/gen_StorageEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "StorageEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_StorageManager.rs b/crates/web-sys/src/features/gen_StorageManager.rs index 9901c79509c..bb5eb8b7477 100644 --- a/crates/web-sys/src/features/gen_StorageManager.rs +++ b/crates/web-sys/src/features/gen_StorageManager.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageManager , typescript_type = "StorageManager")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "StorageManager", + typescript_type = "StorageManager" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageManager` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub type StorageManager; - # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = estimate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "StorageManager", + js_name = "estimate" + )] #[doc = "The `estimate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/estimate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub fn estimate(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = persist)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "StorageManager", + js_name = "persist" + )] #[doc = "The `persist()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub fn persist(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = persisted)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "StorageManager", + js_name = "persisted" + )] #[doc = "The `persisted()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persisted)"] diff --git a/crates/web-sys/src/features/gen_StreamPipeOptions.rs b/crates/web-sys/src/features/gen_StreamPipeOptions.rs index b58cee2a2e6..72cb3ed4e5f 100644 --- a/crates/web-sys/src/features/gen_StreamPipeOptions.rs +++ b/crates/web-sys/src/features/gen_StreamPipeOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StreamPipeOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "StreamPipeOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StreamPipeOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_StyleRuleChangeEventInit.rs b/crates/web-sys/src/features/gen_StyleRuleChangeEventInit.rs index 7a9d3033c2d..5c92ee5a457 100644 --- a/crates/web-sys/src/features/gen_StyleRuleChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_StyleRuleChangeEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleRuleChangeEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "StyleRuleChangeEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleRuleChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_StyleSheet.rs b/crates/web-sys/src/features/gen_StyleSheet.rs index b539c60e30c..63e21d7e66a 100644 --- a/crates/web-sys/src/features/gen_StyleSheet.rs +++ b/crates/web-sys/src/features/gen_StyleSheet.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheet , typescript_type = "StyleSheet")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "StyleSheet", + typescript_type = "StyleSheet" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheet` class."] #[doc = ""] @@ -11,14 +15,21 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub type StyleSheet; - # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "StyleSheet", 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/StyleSheet/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn type_(this: &StyleSheet) -> String; - # [wasm_bindgen (structural , catch , method , getter , js_class = "StyleSheet" , js_name = href)] + #[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)"] @@ -26,21 +37,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn href(this: &StyleSheet) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = ownerNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "StyleSheet", + js_name = "ownerNode" + )] #[doc = "Getter for the `ownerNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/ownerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `StyleSheet`*"] pub fn owner_node(this: &StyleSheet) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = parentStyleSheet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "StyleSheet", + js_name = "parentStyleSheet" + )] #[doc = "Getter for the `parentStyleSheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/parentStyleSheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn parent_style_sheet(this: &StyleSheet) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = title)] + #[wasm_bindgen(structural, method, getter, js_class = "StyleSheet", 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/StyleSheet/title)"] @@ -48,21 +71,33 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn title(this: &StyleSheet) -> Option; #[cfg(feature = "MediaList")] - # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = media)] + #[wasm_bindgen(structural, method, getter, js_class = "StyleSheet", js_name = "media")] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`, `StyleSheet`*"] pub fn media(this: &StyleSheet) -> MediaList; - # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "StyleSheet", + js_name = "disabled" + )] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn disabled(this: &StyleSheet) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "StyleSheet" , js_name = disabled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "StyleSheet", + js_name = "disabled" + )] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"] diff --git a/crates/web-sys/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs b/crates/web-sys/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs index b4ff3d124c1..016ddda8f8c 100644 --- a/crates/web-sys/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs @@ -3,7 +3,10 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheetApplicableStateChangeEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "StyleSheetApplicableStateChangeEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheetApplicableStateChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_StyleSheetChangeEventInit.rs b/crates/web-sys/src/features/gen_StyleSheetChangeEventInit.rs index 75b3235d9ea..debba5b2fdc 100644 --- a/crates/web-sys/src/features/gen_StyleSheetChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_StyleSheetChangeEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheetChangeEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "StyleSheetChangeEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheetChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_StyleSheetList.rs b/crates/web-sys/src/features/gen_StyleSheetList.rs index ce7c706e881..47822237ecb 100644 --- a/crates/web-sys/src/features/gen_StyleSheetList.rs +++ b/crates/web-sys/src/features/gen_StyleSheetList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheetList , typescript_type = "StyleSheetList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "StyleSheetList", + typescript_type = "StyleSheetList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheetList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetList`*"] pub type StyleSheetList; - # [wasm_bindgen (structural , method , getter , js_class = "StyleSheetList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "StyleSheetList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList/length)"] @@ -19,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `StyleSheetList`*"] pub fn length(this: &StyleSheetList) -> u32; #[cfg(feature = "StyleSheet")] - # [wasm_bindgen (method , structural , js_class = "StyleSheetList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "StyleSheetList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList/item)"] diff --git a/crates/web-sys/src/features/gen_SubtleCrypto.rs b/crates/web-sys/src/features/gen_SubtleCrypto.rs index 516e819bacb..729ada1edb2 100644 --- a/crates/web-sys/src/features/gen_SubtleCrypto.rs +++ b/crates/web-sys/src/features/gen_SubtleCrypto.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SubtleCrypto , typescript_type = "SubtleCrypto")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SubtleCrypto", + typescript_type = "SubtleCrypto" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SubtleCrypto` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub type SubtleCrypto; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "decrypt" + )] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] @@ -25,7 +35,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "decrypt" + )] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] @@ -38,7 +54,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "decrypt" + )] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] @@ -51,7 +73,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "decrypt" + )] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] @@ -64,7 +92,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "deriveBits" + )] #[doc = "The `deriveBits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"] @@ -77,7 +111,13 @@ extern "C" { length: u32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "deriveBits" + )] #[doc = "The `deriveBits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"] @@ -90,7 +130,13 @@ extern "C" { length: u32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "deriveKey" + )] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] @@ -105,7 +151,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "deriveKey" + )] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] @@ -120,7 +172,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "deriveKey" + )] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] @@ -135,7 +193,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "deriveKey" + )] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] @@ -149,7 +213,13 @@ extern "C" { extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "digest" + )] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] @@ -160,7 +230,13 @@ extern "C" { algorithm: &::js_sys::Object, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "digest" + )] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] @@ -171,7 +247,13 @@ extern "C" { algorithm: &str, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "digest" + )] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] @@ -182,7 +264,13 @@ extern "C" { algorithm: &::js_sys::Object, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "digest" + )] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] @@ -194,7 +282,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "encrypt" + )] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] @@ -207,7 +301,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "encrypt" + )] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] @@ -220,7 +320,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "encrypt" + )] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] @@ -233,7 +339,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "encrypt" + )] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] @@ -246,7 +358,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = exportKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "exportKey" + )] #[doc = "The `exportKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey)"] @@ -257,7 +375,13 @@ extern "C" { format: &str, key: &CryptoKey, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "generateKey" + )] #[doc = "The `generateKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"] @@ -269,7 +393,13 @@ extern "C" { extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "generateKey" + )] #[doc = "The `generateKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"] @@ -281,7 +411,13 @@ extern "C" { extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "importKey" + )] #[doc = "The `importKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"] @@ -295,7 +431,13 @@ extern "C" { extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "importKey" + )] #[doc = "The `importKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"] @@ -310,7 +452,7 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] + #[wasm_bindgen(catch, method, structural, js_class = "SubtleCrypto", js_name = "sign")] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] @@ -323,7 +465,7 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] + #[wasm_bindgen(catch, method, structural, js_class = "SubtleCrypto", js_name = "sign")] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] @@ -336,7 +478,7 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] + #[wasm_bindgen(catch, method, structural, js_class = "SubtleCrypto", js_name = "sign")] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] @@ -349,7 +491,7 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] + #[wasm_bindgen(catch, method, structural, js_class = "SubtleCrypto", js_name = "sign")] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] @@ -362,7 +504,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -379,7 +527,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -396,7 +550,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -413,7 +573,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -430,7 +596,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -447,7 +619,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -464,7 +642,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -481,7 +665,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "unwrapKey" + )] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] @@ -498,7 +688,13 @@ extern "C" { key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -512,7 +708,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -526,7 +728,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -540,7 +748,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -554,7 +768,13 @@ extern "C" { data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -568,7 +788,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -582,7 +808,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -596,7 +828,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "verify" + )] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] @@ -610,7 +848,13 @@ extern "C" { data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "wrapKey" + )] #[doc = "The `wrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"] @@ -624,7 +868,13 @@ extern "C" { wrap_algorithm: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] - # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SubtleCrypto", + js_name = "wrapKey" + )] #[doc = "The `wrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"] diff --git a/crates/web-sys/src/features/gen_SvcOutputMetadata.rs b/crates/web-sys/src/features/gen_SvcOutputMetadata.rs index aebaa2040f2..7ba7e75d31f 100644 --- a/crates/web-sys/src/features/gen_SvcOutputMetadata.rs +++ b/crates/web-sys/src/features/gen_SvcOutputMetadata.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SvcOutputMetadata)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SvcOutputMetadata")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvcOutputMetadata` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgAngle.rs b/crates/web-sys/src/features/gen_SvgAngle.rs index 3406dfdfe8c..bb34307d996 100644 --- a/crates/web-sys/src/features/gen_SvgAngle.rs +++ b/crates/web-sys/src/features/gen_SvgAngle.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAngle , typescript_type = "SVGAngle")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAngle", + typescript_type = "SVGAngle" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAngle` class."] #[doc = ""] @@ -11,63 +15,105 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub type SvgAngle; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = unitType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAngle", + js_name = "unitType" + )] #[doc = "Getter for the `unitType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/unitType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn unit_type(this: &SvgAngle) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = value)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGAngle", 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/SVGAngle/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn value(this: &SvgAngle) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = value)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGAngle", js_name = "value")] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn set_value(this: &SvgAngle, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAngle", + js_name = "valueInSpecifiedUnits" + )] #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn value_in_specified_units(this: &SvgAngle) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAngle", + js_name = "valueInSpecifiedUnits" + )] #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn set_value_in_specified_units(this: &SvgAngle, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = valueAsString)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAngle", + js_name = "valueAsString" + )] #[doc = "Getter for the `valueAsString` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = valueAsString)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAngle", + js_name = "valueAsString" + )] #[doc = "Setter for the `valueAsString` field of this object."] #[doc = ""] #[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 set_value_as_string(this: &SvgAngle, value: &str); - # [wasm_bindgen (catch , method , structural , js_class = "SVGAngle" , js_name = convertToSpecifiedUnits)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAngle", + js_name = "convertToSpecifiedUnits" + )] #[doc = "The `convertToSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/convertToSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn convert_to_specified_units(this: &SvgAngle, unit_type: u16) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGAngle" , js_name = newValueSpecifiedUnits)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAngle", + js_name = "newValueSpecifiedUnits" + )] #[doc = "The `newValueSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/newValueSpecifiedUnits)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimateElement.rs b/crates/web-sys/src/features/gen_SvgAnimateElement.rs index 273f132de67..7760643cb10 100644 --- a/crates/web-sys/src/features/gen_SvgAnimateElement.rs +++ b/crates/web-sys/src/features/gen_SvgAnimateElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateElement , typescript_type = "SVGAnimateElement")] + #[wasm_bindgen( + extends = "SvgAnimationElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGAnimateElement", + typescript_type = "SVGAnimateElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimateElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgAnimateMotionElement.rs b/crates/web-sys/src/features/gen_SvgAnimateMotionElement.rs index 2d29f194876..02f98081f0e 100644 --- a/crates/web-sys/src/features/gen_SvgAnimateMotionElement.rs +++ b/crates/web-sys/src/features/gen_SvgAnimateMotionElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateMotionElement , typescript_type = "SVGAnimateMotionElement")] + #[wasm_bindgen( + extends = "SvgAnimationElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGAnimateMotionElement", + typescript_type = "SVGAnimateMotionElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimateMotionElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgAnimateTransformElement.rs b/crates/web-sys/src/features/gen_SvgAnimateTransformElement.rs index c1d437c228a..174f0a594ae 100644 --- a/crates/web-sys/src/features/gen_SvgAnimateTransformElement.rs +++ b/crates/web-sys/src/features/gen_SvgAnimateTransformElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateTransformElement , typescript_type = "SVGAnimateTransformElement")] + #[wasm_bindgen( + extends = "SvgAnimationElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGAnimateTransformElement", + typescript_type = "SVGAnimateTransformElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimateTransformElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedAngle.rs b/crates/web-sys/src/features/gen_SvgAnimatedAngle.rs index ffcfd63e42d..b919ab54b44 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedAngle.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedAngle.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedAngle , typescript_type = "SVGAnimatedAngle")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedAngle", + typescript_type = "SVGAnimatedAngle" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedAngle` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`*"] pub type SvgAnimatedAngle; #[cfg(feature = "SvgAngle")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedAngle" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedAngle", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle/baseVal)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgAnimatedAngle`*"] pub fn base_val(this: &SvgAnimatedAngle) -> SvgAngle; #[cfg(feature = "SvgAngle")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedAngle" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedAngle", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedBoolean.rs b/crates/web-sys/src/features/gen_SvgAnimatedBoolean.rs index 99b3d98a05d..9711f1c7d14 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedBoolean.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedBoolean.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedBoolean , typescript_type = "SVGAnimatedBoolean")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedBoolean", + typescript_type = "SVGAnimatedBoolean" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedBoolean` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] pub type SvgAnimatedBoolean; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedBoolean" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedBoolean", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] pub fn base_val(this: &SvgAnimatedBoolean) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedBoolean" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAnimatedBoolean", + js_name = "baseVal" + )] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] pub fn set_base_val(this: &SvgAnimatedBoolean, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedBoolean" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedBoolean", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedEnumeration.rs b/crates/web-sys/src/features/gen_SvgAnimatedEnumeration.rs index 2d9172db7e6..8f0a8afee06 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedEnumeration.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedEnumeration.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedEnumeration , typescript_type = "SVGAnimatedEnumeration")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedEnumeration", + typescript_type = "SVGAnimatedEnumeration" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedEnumeration` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] pub type SvgAnimatedEnumeration; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedEnumeration" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedEnumeration", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] pub fn base_val(this: &SvgAnimatedEnumeration) -> u16; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedEnumeration" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAnimatedEnumeration", + js_name = "baseVal" + )] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] pub fn set_base_val(this: &SvgAnimatedEnumeration, value: u16); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedEnumeration" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedEnumeration", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedInteger.rs b/crates/web-sys/src/features/gen_SvgAnimatedInteger.rs index 89690a26105..cd7ed0698fa 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedInteger.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedInteger.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedInteger , typescript_type = "SVGAnimatedInteger")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedInteger", + typescript_type = "SVGAnimatedInteger" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedInteger` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] pub type SvgAnimatedInteger; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedInteger" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedInteger", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] pub fn base_val(this: &SvgAnimatedInteger) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedInteger" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAnimatedInteger", + js_name = "baseVal" + )] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] pub fn set_base_val(this: &SvgAnimatedInteger, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedInteger" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedInteger", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedLength.rs b/crates/web-sys/src/features/gen_SvgAnimatedLength.rs index 8348f7d0259..8d3047c474d 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedLength.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedLength.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedLength , typescript_type = "SVGAnimatedLength")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedLength", + typescript_type = "SVGAnimatedLength" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedLength` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`*"] pub type SvgAnimatedLength; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLength" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedLength", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength/baseVal)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLength`*"] pub fn base_val(this: &SvgAnimatedLength) -> SvgLength; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLength" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedLength", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedLengthList.rs b/crates/web-sys/src/features/gen_SvgAnimatedLengthList.rs index 9e5032f1688..ab2427c0212 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedLengthList.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedLengthList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedLengthList , typescript_type = "SVGAnimatedLengthList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedLengthList", + typescript_type = "SVGAnimatedLengthList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedLengthList` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`*"] pub type SvgAnimatedLengthList; #[cfg(feature = "SvgLengthList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLengthList" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedLengthList", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList/baseVal)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgLengthList`*"] pub fn base_val(this: &SvgAnimatedLengthList) -> SvgLengthList; #[cfg(feature = "SvgLengthList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLengthList" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedLengthList", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedNumber.rs b/crates/web-sys/src/features/gen_SvgAnimatedNumber.rs index c38e204b89c..7c199bc1979 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedNumber.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedNumber.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedNumber , typescript_type = "SVGAnimatedNumber")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedNumber", + typescript_type = "SVGAnimatedNumber" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedNumber` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] pub type SvgAnimatedNumber; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumber" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedNumber", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] pub fn base_val(this: &SvgAnimatedNumber) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedNumber" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAnimatedNumber", + js_name = "baseVal" + )] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] pub fn set_base_val(this: &SvgAnimatedNumber, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumber" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedNumber", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedNumberList.rs b/crates/web-sys/src/features/gen_SvgAnimatedNumberList.rs index ec5ab3718dd..3d25b186715 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedNumberList.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedNumberList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedNumberList , typescript_type = "SVGAnimatedNumberList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedNumberList", + typescript_type = "SVGAnimatedNumberList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedNumberList` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`*"] pub type SvgAnimatedNumberList; #[cfg(feature = "SvgNumberList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumberList" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedNumberList", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList/baseVal)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgNumberList`*"] pub fn base_val(this: &SvgAnimatedNumberList) -> SvgNumberList; #[cfg(feature = "SvgNumberList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumberList" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedNumberList", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedPreserveAspectRatio.rs b/crates/web-sys/src/features/gen_SvgAnimatedPreserveAspectRatio.rs index 4dee971d759..b82d32edfd3 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedPreserveAspectRatio.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedPreserveAspectRatio.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedPreserveAspectRatio , typescript_type = "SVGAnimatedPreserveAspectRatio")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedPreserveAspectRatio", + typescript_type = "SVGAnimatedPreserveAspectRatio" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedPreserveAspectRatio` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`*"] pub type SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedPreserveAspectRatio" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedPreserveAspectRatio", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPreserveAspectRatio`*"] pub fn base_val(this: &SvgAnimatedPreserveAspectRatio) -> SvgPreserveAspectRatio; #[cfg(feature = "SvgPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedPreserveAspectRatio" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedPreserveAspectRatio", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedRect.rs b/crates/web-sys/src/features/gen_SvgAnimatedRect.rs index 45daf5d4f56..cd26aff8f3e 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedRect.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedRect.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedRect , typescript_type = "SVGAnimatedRect")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedRect", + typescript_type = "SVGAnimatedRect" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedRect` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`*"] pub type SvgAnimatedRect; #[cfg(feature = "SvgRect")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedRect" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedRect", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect/baseVal)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgRect`*"] pub fn base_val(this: &SvgAnimatedRect) -> Option; #[cfg(feature = "SvgRect")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedRect" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedRect", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedString.rs b/crates/web-sys/src/features/gen_SvgAnimatedString.rs index b02669aaa6b..f6325001fbe 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedString.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedString.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedString , typescript_type = "SVGAnimatedString")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedString", + typescript_type = "SVGAnimatedString" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedString` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] pub type SvgAnimatedString; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedString" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedString", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedString" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAnimatedString", + js_name = "baseVal" + )] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[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 set_base_val(this: &SvgAnimatedString, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedString" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedString", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedTransformList.rs b/crates/web-sys/src/features/gen_SvgAnimatedTransformList.rs index 08e923b00af..ebb7f95a2c6 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedTransformList.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedTransformList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedTransformList , typescript_type = "SVGAnimatedTransformList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGAnimatedTransformList", + typescript_type = "SVGAnimatedTransformList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedTransformList` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`*"] pub type SvgAnimatedTransformList; #[cfg(feature = "SvgTransformList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedTransformList" , js_name = baseVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedTransformList", + js_name = "baseVal" + )] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList/baseVal)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgTransformList`*"] pub fn base_val(this: &SvgAnimatedTransformList) -> SvgTransformList; #[cfg(feature = "SvgTransformList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedTransformList" , js_name = animVal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimatedTransformList", + js_name = "animVal" + )] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList/animVal)"] diff --git a/crates/web-sys/src/features/gen_SvgAnimationElement.rs b/crates/web-sys/src/features/gen_SvgAnimationElement.rs index 6135908286f..53ec8c2eec6 100644 --- a/crates/web-sys/src/features/gen_SvgAnimationElement.rs +++ b/crates/web-sys/src/features/gen_SvgAnimationElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimationElement , typescript_type = "SVGAnimationElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGAnimationElement", + typescript_type = "SVGAnimationElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimationElement` class."] #[doc = ""] @@ -11,7 +19,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub type SvgAnimationElement; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = targetElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimationElement", + js_name = "targetElement" + )] #[doc = "Getter for the `targetElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/targetElement)"] @@ -19,7 +33,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn target_element(this: &SvgAnimationElement) -> Option; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredFeatures)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimationElement", + js_name = "requiredFeatures" + )] #[doc = "Getter for the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredFeatures)"] @@ -27,7 +47,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] pub fn required_features(this: &SvgAnimationElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredExtensions)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimationElement", + js_name = "requiredExtensions" + )] #[doc = "Getter for the `requiredExtensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredExtensions)"] @@ -35,63 +61,115 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] pub fn required_extensions(this: &SvgAnimationElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = systemLanguage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAnimationElement", + js_name = "systemLanguage" + )] #[doc = "Getter for the `systemLanguage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/systemLanguage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] pub fn system_language(this: &SvgAnimationElement) -> SvgStringList; - # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAnimationElement", + js_name = "beginElement" + )] #[doc = "The `beginElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn begin_element(this: &SvgAnimationElement) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElementAt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAnimationElement", + js_name = "beginElementAt" + )] #[doc = "The `beginElementAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElementAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn begin_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAnimationElement", + js_name = "endElement" + )] #[doc = "The `endElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn end_element(this: &SvgAnimationElement) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElementAt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAnimationElement", + js_name = "endElementAt" + )] #[doc = "The `endElementAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElementAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn end_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "SVGAnimationElement" , js_name = getCurrentTime)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGAnimationElement", + js_name = "getCurrentTime" + )] #[doc = "The `getCurrentTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getCurrentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn get_current_time(this: &SvgAnimationElement) -> f32; - # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = getSimpleDuration)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAnimationElement", + js_name = "getSimpleDuration" + )] #[doc = "The `getSimpleDuration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getSimpleDuration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn get_simple_duration(this: &SvgAnimationElement) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = getStartTime)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGAnimationElement", + js_name = "getStartTime" + )] #[doc = "The `getStartTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getStartTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn get_start_time(this: &SvgAnimationElement) -> Result; - # [wasm_bindgen (method , structural , js_class = "SVGAnimationElement" , js_name = hasExtension)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGAnimationElement", + js_name = "hasExtension" + )] #[doc = "The `hasExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/hasExtension)"] diff --git a/crates/web-sys/src/features/gen_SvgBoundingBoxOptions.rs b/crates/web-sys/src/features/gen_SvgBoundingBoxOptions.rs index 81a1e4365cc..be947100f0f 100644 --- a/crates/web-sys/src/features/gen_SvgBoundingBoxOptions.rs +++ b/crates/web-sys/src/features/gen_SvgBoundingBoxOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGBoundingBoxOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "SVGBoundingBoxOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgBoundingBoxOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgCircleElement.rs b/crates/web-sys/src/features/gen_SvgCircleElement.rs index c3a6e9297b6..7a890b8f03c 100644 --- a/crates/web-sys/src/features/gen_SvgCircleElement.rs +++ b/crates/web-sys/src/features/gen_SvgCircleElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGCircleElement , typescript_type = "SVGCircleElement")] + #[wasm_bindgen( + extends = "SvgGeometryElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGCircleElement", + typescript_type = "SVGCircleElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgCircleElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgCircleElement`*"] pub type SvgCircleElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGCircleElement" , js_name = cx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGCircleElement", + js_name = "cx" + )] #[doc = "Getter for the `cx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/cx)"] @@ -20,7 +36,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] pub fn cx(this: &SvgCircleElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGCircleElement" , js_name = cy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGCircleElement", + js_name = "cy" + )] #[doc = "Getter for the `cy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/cy)"] @@ -28,7 +50,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] pub fn cy(this: &SvgCircleElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGCircleElement" , js_name = r)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGCircleElement", + js_name = "r" + )] #[doc = "Getter for the `r` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/r)"] diff --git a/crates/web-sys/src/features/gen_SvgClipPathElement.rs b/crates/web-sys/src/features/gen_SvgClipPathElement.rs index 3d11d34226f..cb63a2d5603 100644 --- a/crates/web-sys/src/features/gen_SvgClipPathElement.rs +++ b/crates/web-sys/src/features/gen_SvgClipPathElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGClipPathElement , typescript_type = "SVGClipPathElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGClipPathElement", + typescript_type = "SVGClipPathElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgClipPathElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgClipPathElement`*"] pub type SvgClipPathElement; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGClipPathElement" , js_name = clipPathUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGClipPathElement", + js_name = "clipPathUnits" + )] #[doc = "Getter for the `clipPathUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement/clipPathUnits)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgClipPathElement`*"] pub fn clip_path_units(this: &SvgClipPathElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedTransformList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGClipPathElement" , js_name = transform)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGClipPathElement", + js_name = "transform" + )] #[doc = "Getter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement/transform)"] diff --git a/crates/web-sys/src/features/gen_SvgComponentTransferFunctionElement.rs b/crates/web-sys/src/features/gen_SvgComponentTransferFunctionElement.rs index 9703e6f9cf8..7866daea0ce 100644 --- a/crates/web-sys/src/features/gen_SvgComponentTransferFunctionElement.rs +++ b/crates/web-sys/src/features/gen_SvgComponentTransferFunctionElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGComponentTransferFunctionElement , typescript_type = "SVGComponentTransferFunctionElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGComponentTransferFunctionElement", + typescript_type = "SVGComponentTransferFunctionElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgComponentTransferFunctionElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub type SvgComponentTransferFunctionElement; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGComponentTransferFunctionElement", + 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/SVGComponentTransferFunctionElement/type)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgComponentTransferFunctionElement`*"] pub fn type_(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumberList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = tableValues)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGComponentTransferFunctionElement", + js_name = "tableValues" + )] #[doc = "Getter for the `tableValues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgComponentTransferFunctionElement`*"] pub fn table_values(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = slope)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGComponentTransferFunctionElement", + js_name = "slope" + )] #[doc = "Getter for the `slope` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/slope)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn slope(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = intercept)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGComponentTransferFunctionElement", + js_name = "intercept" + )] #[doc = "Getter for the `intercept` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/intercept)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn intercept(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = amplitude)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGComponentTransferFunctionElement", + js_name = "amplitude" + )] #[doc = "Getter for the `amplitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn amplitude(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = exponent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGComponentTransferFunctionElement", + js_name = "exponent" + )] #[doc = "Getter for the `exponent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/exponent)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn exponent(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = offset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGComponentTransferFunctionElement", + js_name = "offset" + )] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/offset)"] diff --git a/crates/web-sys/src/features/gen_SvgDefsElement.rs b/crates/web-sys/src/features/gen_SvgDefsElement.rs index 49a1359f5c8..de1c17e5d37 100644 --- a/crates/web-sys/src/features/gen_SvgDefsElement.rs +++ b/crates/web-sys/src/features/gen_SvgDefsElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGDefsElement , typescript_type = "SVGDefsElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGDefsElement", + typescript_type = "SVGDefsElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgDefsElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgDescElement.rs b/crates/web-sys/src/features/gen_SvgDescElement.rs index 5327c00431b..c5cc2f39978 100644 --- a/crates/web-sys/src/features/gen_SvgDescElement.rs +++ b/crates/web-sys/src/features/gen_SvgDescElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGDescElement , typescript_type = "SVGDescElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGDescElement", + typescript_type = "SVGDescElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgDescElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgElement.rs b/crates/web-sys/src/features/gen_SvgElement.rs index 2f1e1ab42e7..5d803ee2487 100644 --- a/crates/web-sys/src/features/gen_SvgElement.rs +++ b/crates/web-sys/src/features/gen_SvgElement.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGElement , typescript_type = "SVGElement")] + #[wasm_bindgen( + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGElement", + typescript_type = "SVGElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgElement` class."] #[doc = ""] @@ -11,14 +18,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub type SvgElement; - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGElement", 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/SVGElement/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn id(this: &SvgElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = id)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGElement", js_name = "id")] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/id)"] @@ -26,7 +33,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_id(this: &SvgElement, value: &str); #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = className)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "className" + )] #[doc = "Getter for the `className` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/className)"] @@ -34,7 +47,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgElement`*"] pub fn class_name(this: &SvgElement) -> SvgAnimatedString; #[cfg(feature = "DomStringMap")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = dataset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "dataset" + )] #[doc = "Getter for the `dataset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/dataset)"] @@ -42,7 +61,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `SvgElement`*"] pub fn dataset(this: &SvgElement) -> DomStringMap; #[cfg(feature = "CssStyleDeclaration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = style)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGElement", js_name = "style")] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/style)"] @@ -50,1302 +69,2394 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `SvgElement`*"] pub fn style(this: &SvgElement) -> CssStyleDeclaration; #[cfg(feature = "SvgsvgElement")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ownerSVGElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ownerSVGElement" + )] #[doc = "Getter for the `ownerSVGElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ownerSVGElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`, `SvgsvgElement`*"] pub fn owner_svg_element(this: &SvgElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = viewportElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "viewportElement" + )] #[doc = "Getter for the `viewportElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/viewportElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn viewport_element(this: &SvgElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = tabIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "tabIndex" + )] #[doc = "Getter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn tab_index(this: &SvgElement) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = tabIndex)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "tabIndex" + )] #[doc = "Setter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_tab_index(this: &SvgElement, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncopy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "oncopy" + )] #[doc = "Getter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncopy(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncopy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "oncopy" + )] #[doc = "Setter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncopy(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncut)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGElement", js_name = "oncut")] #[doc = "Getter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncut(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncut)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGElement", js_name = "oncut")] #[doc = "Setter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncut(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpaste)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpaste" + )] #[doc = "Getter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpaste(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpaste)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpaste" + )] #[doc = "Setter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpaste(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onabort(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onabort(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onblur)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onblur" + )] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onblur(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onblur)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onblur" + )] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onblur(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onfocus)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onfocus" + )] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onfocus(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onfocus)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onfocus" + )] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onfocus(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onauxclick" + )] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onauxclick(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onauxclick" + )] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onauxclick(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncanplay)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "oncanplay" + )] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncanplay(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncanplay)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "oncanplay" + )] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncanplay(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "oncanplaythrough" + )] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncanplaythrough(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "oncanplaythrough" + )] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncanplaythrough(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onchange(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onchange(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onclick" + )] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onclick(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onclick" + )] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onclick(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onclose(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onclose(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "oncontextmenu" + )] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncontextmenu(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "oncontextmenu" + )] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncontextmenu(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondblclick" + )] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondblclick(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondblclick" + )] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondblclick(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondrag)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondrag" + )] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondrag(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondrag)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondrag" + )] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondrag(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondragend" + )] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondragend" + )] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondragenter" + )] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragenter(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondragenter" + )] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragenter(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondragexit" + )] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragexit(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondragexit" + )] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragexit(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondragleave" + )] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragleave(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondragleave" + )] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragleave(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondragover" + )] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragover(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondragover" + )] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragover(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondragstart" + )] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragstart(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondragstart" + )] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragstart(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondrop)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondrop" + )] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondrop(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondrop)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondrop" + )] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondrop(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ondurationchange" + )] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondurationchange(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ondurationchange" + )] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondurationchange(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onemptied)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onemptied" + )] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onemptied(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onemptied)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onemptied" + )] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onemptied(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onended" + )] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onended(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onended)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onended" + )] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onended(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oninput)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "oninput" + )] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oninput(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oninput)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "oninput" + )] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oninput(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oninvalid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "oninvalid" + )] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oninvalid(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oninvalid)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "oninvalid" + )] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oninvalid(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onkeydown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onkeydown" + )] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onkeydown(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onkeydown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onkeydown" + )] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onkeydown(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onkeypress" + )] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onkeypress(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onkeypress" + )] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onkeypress(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onkeyup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onkeyup" + )] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onkeyup(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onkeyup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onkeyup" + )] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onkeyup(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onload" + )] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onload(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onload" + )] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onload(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onloadeddata" + )] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadeddata(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onloadeddata" + )] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadeddata(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onloadedmetadata" + )] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadedmetadata(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onloadedmetadata" + )] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadedmetadata(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onloadend" + )] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onloadend" + )] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onloadstart" + )] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadstart(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onloadstart" + )] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadstart(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onmousedown" + )] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmousedown(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onmousedown" + )] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmousedown(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onmouseenter" + )] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseenter(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onmouseenter" + )] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseenter(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onmouseleave" + )] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseleave(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onmouseleave" + )] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseleave(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onmousemove" + )] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmousemove(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onmousemove" + )] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmousemove(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onmouseout" + )] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseout(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onmouseout" + )] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseout(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onmouseover" + )] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseover(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onmouseover" + )] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseover(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onmouseup" + )] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseup(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onmouseup" + )] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseup(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwheel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onwheel" + )] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwheel(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwheel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onwheel" + )] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwheel(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpause)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpause" + )] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpause(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpause)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpause" + )] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpause(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onplay)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onplay" + )] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onplay(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onplay)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onplay" + )] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onplay(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onplaying)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onplaying" + )] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onplaying(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onplaying)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onplaying" + )] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onplaying(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onprogress(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onprogress(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onratechange" + )] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onratechange(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onratechange" + )] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onratechange(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onreset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onreset" + )] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onreset(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onreset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onreset" + )] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onreset(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onresize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onresize" + )] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onresize(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onresize)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onresize" + )] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onresize(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onscroll)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onscroll" + )] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onscroll(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onscroll)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onscroll" + )] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onscroll(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onseeked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onseeked" + )] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onseeked(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onseeked)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onseeked" + )] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onseeked(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onseeking)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onseeking" + )] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onseeking(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onseeking)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onseeking" + )] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onseeking(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onselect" + )] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onselect(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onselect" + )] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onselect(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onshow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onshow" + )] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onshow(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onshow)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onshow" + )] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onshow(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onstalled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onstalled" + )] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onstalled(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onstalled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onstalled" + )] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onstalled(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onsubmit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onsubmit" + )] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onsubmit(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onsubmit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onsubmit" + )] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onsubmit(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onsuspend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onsuspend" + )] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onsuspend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onsuspend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onsuspend" + )] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onsuspend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontimeupdate" + )] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontimeupdate(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontimeupdate" + )] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontimeupdate(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onvolumechange" + )] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onvolumechange(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onvolumechange" + )] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onvolumechange(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwaiting)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onwaiting" + )] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwaiting(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwaiting)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onwaiting" + )] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwaiting(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onselectstart" + )] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onselectstart(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onselectstart" + )] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onselectstart(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontoggle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontoggle" + )] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontoggle(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontoggle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontoggle" + )] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontoggle(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointercancel" + )] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointercancel(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointercancel" + )] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointercancel(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointerdown" + )] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerdown(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointerdown" + )] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerdown(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointerup" + )] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerup(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointerup" + )] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerup(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointermove" + )] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointermove(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointermove" + )] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointermove(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointerout" + )] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerout(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointerout" + )] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerout(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointerover" + )] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerover(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointerover" + )] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerover(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointerenter" + )] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerenter(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointerenter" + )] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerenter(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onpointerleave" + )] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerleave(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onpointerleave" + )] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerleave(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ongotpointercapture" + )] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ongotpointercapture(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ongotpointercapture" + )] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ongotpointercapture(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onlostpointercapture" + )] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onlostpointercapture(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onlostpointercapture" + )] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onlostpointercapture(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onanimationcancel" + )] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationcancel(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onanimationcancel" + )] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationcancel(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onanimationend" + )] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onanimationend" + )] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onanimationiteration" + )] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationiteration(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onanimationiteration" + )] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationiteration(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onanimationstart" + )] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationstart(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onanimationstart" + )] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationstart(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontransitioncancel" + )] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitioncancel(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontransitioncancel" + )] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitioncancel(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontransitionend" + )] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitionend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontransitionend" + )] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitionend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontransitionrun" + )] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitionrun(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontransitionrun" + )] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitionrun(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontransitionstart" + )] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitionstart(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontransitionstart" + )] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitionstart(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onwebkitanimationend" + )] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkitanimationend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onwebkitanimationend" + )] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkitanimationend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onwebkitanimationiteration" + )] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkitanimationiteration(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onwebkitanimationiteration" + )] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkitanimationiteration(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onwebkitanimationstart" + )] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkitanimationstart(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onwebkitanimationstart" + )] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkitanimationstart(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onwebkittransitionend" + )] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkittransitionend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onwebkittransitionend" + )] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkittransitionend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onerror(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onerror(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontouchstart" + )] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchstart(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontouchstart" + )] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchstart(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontouchend" + )] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchend(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontouchend" + )] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchend(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontouchmove" + )] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchmove(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontouchmove" + )] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchmove(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGElement", + js_name = "ontouchcancel" + )] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchcancel(this: &SvgElement) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGElement", + js_name = "ontouchcancel" + )] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchcancel(this: &SvgElement, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "SVGElement" , js_name = blur)] + #[wasm_bindgen(catch, method, structural, js_class = "SVGElement", js_name = "blur")] #[doc = "The `blur()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/blur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn blur(this: &SvgElement) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGElement" , js_name = focus)] + #[wasm_bindgen(catch, method, structural, js_class = "SVGElement", js_name = "focus")] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/focus)"] diff --git a/crates/web-sys/src/features/gen_SvgEllipseElement.rs b/crates/web-sys/src/features/gen_SvgEllipseElement.rs index 9b053815648..5833d727569 100644 --- a/crates/web-sys/src/features/gen_SvgEllipseElement.rs +++ b/crates/web-sys/src/features/gen_SvgEllipseElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGEllipseElement , typescript_type = "SVGEllipseElement")] + #[wasm_bindgen( + extends = "SvgGeometryElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGEllipseElement", + typescript_type = "SVGEllipseElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgEllipseElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgEllipseElement`*"] pub type SvgEllipseElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = cx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGEllipseElement", + js_name = "cx" + )] #[doc = "Getter for the `cx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/cx)"] @@ -20,7 +36,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] pub fn cx(this: &SvgEllipseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = cy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGEllipseElement", + js_name = "cy" + )] #[doc = "Getter for the `cy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/cy)"] @@ -28,7 +50,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] pub fn cy(this: &SvgEllipseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = rx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGEllipseElement", + js_name = "rx" + )] #[doc = "Getter for the `rx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/rx)"] @@ -36,7 +64,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] pub fn rx(this: &SvgEllipseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = ry)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGEllipseElement", + js_name = "ry" + )] #[doc = "Getter for the `ry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/ry)"] diff --git a/crates/web-sys/src/features/gen_SvgFilterElement.rs b/crates/web-sys/src/features/gen_SvgFilterElement.rs index 1f178eafb0a..7a3124d85fb 100644 --- a/crates/web-sys/src/features/gen_SvgFilterElement.rs +++ b/crates/web-sys/src/features/gen_SvgFilterElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFilterElement , typescript_type = "SVGFilterElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFilterElement", + typescript_type = "SVGFilterElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgFilterElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgFilterElement`*"] pub type SvgFilterElement; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = filterUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFilterElement", + js_name = "filterUnits" + )] #[doc = "Getter for the `filterUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/filterUnits)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgFilterElement`*"] pub fn filter_units(this: &SvgFilterElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = primitiveUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFilterElement", + js_name = "primitiveUnits" + )] #[doc = "Getter for the `primitiveUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/primitiveUnits)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgFilterElement`*"] pub fn primitive_units(this: &SvgFilterElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFilterElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/x)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn x(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFilterElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/y)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn y(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFilterElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/width)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn width(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFilterElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/height)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn height(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFilterElement", + 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/SVGFilterElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgForeignObjectElement.rs b/crates/web-sys/src/features/gen_SvgForeignObjectElement.rs index be0ba8829d6..53815c194bb 100644 --- a/crates/web-sys/src/features/gen_SvgForeignObjectElement.rs +++ b/crates/web-sys/src/features/gen_SvgForeignObjectElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGForeignObjectElement , typescript_type = "SVGForeignObjectElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGForeignObjectElement", + typescript_type = "SVGForeignObjectElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgForeignObjectElement` class."] #[doc = ""] @@ -12,7 +21,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgForeignObjectElement`*"] pub type SvgForeignObjectElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGForeignObjectElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/x)"] @@ -20,7 +35,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] pub fn x(this: &SvgForeignObjectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGForeignObjectElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/y)"] @@ -28,7 +49,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] pub fn y(this: &SvgForeignObjectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGForeignObjectElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/width)"] @@ -36,7 +63,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] pub fn width(this: &SvgForeignObjectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGForeignObjectElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/height)"] diff --git a/crates/web-sys/src/features/gen_SvgGeometryElement.rs b/crates/web-sys/src/features/gen_SvgGeometryElement.rs index fe6116b88f5..a6b3fdf231f 100644 --- a/crates/web-sys/src/features/gen_SvgGeometryElement.rs +++ b/crates/web-sys/src/features/gen_SvgGeometryElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGeometryElement , typescript_type = "SVGGeometryElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGGeometryElement", + typescript_type = "SVGGeometryElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgGeometryElement` class."] #[doc = ""] @@ -12,7 +21,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"] pub type SvgGeometryElement; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGeometryElement" , js_name = pathLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGeometryElement", + js_name = "pathLength" + )] #[doc = "Getter for the `pathLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/pathLength)"] @@ -20,7 +35,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgGeometryElement`*"] pub fn path_length(this: &SvgGeometryElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGGeometryElement" , js_name = getPointAtLength)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGGeometryElement", + js_name = "getPointAtLength" + )] #[doc = "The `getPointAtLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength)"] @@ -30,7 +51,12 @@ extern "C" { this: &SvgGeometryElement, distance: f32, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = getTotalLength)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGGeometryElement", + js_name = "getTotalLength" + )] #[doc = "The `getTotalLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getTotalLength)"] diff --git a/crates/web-sys/src/features/gen_SvgGradientElement.rs b/crates/web-sys/src/features/gen_SvgGradientElement.rs index 7a46835d0eb..673c28c99e4 100644 --- a/crates/web-sys/src/features/gen_SvgGradientElement.rs +++ b/crates/web-sys/src/features/gen_SvgGradientElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGradientElement , typescript_type = "SVGGradientElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGGradientElement", + typescript_type = "SVGGradientElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgGradientElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] pub type SvgGradientElement; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGradientElement", + js_name = "gradientUnits" + )] #[doc = "Getter for the `gradientUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientUnits)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"] pub fn gradient_units(this: &SvgGradientElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedTransformList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientTransform)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGradientElement", + js_name = "gradientTransform" + )] #[doc = "Getter for the `gradientTransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientTransform)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGradientElement`*"] pub fn gradient_transform(this: &SvgGradientElement) -> SvgAnimatedTransformList; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = spreadMethod)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGradientElement", + js_name = "spreadMethod" + )] #[doc = "Getter for the `spreadMethod` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/spreadMethod)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"] pub fn spread_method(this: &SvgGradientElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGradientElement", + 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/SVGGradientElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgGraphicsElement.rs b/crates/web-sys/src/features/gen_SvgGraphicsElement.rs index 96de914f303..65261812155 100644 --- a/crates/web-sys/src/features/gen_SvgGraphicsElement.rs +++ b/crates/web-sys/src/features/gen_SvgGraphicsElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGraphicsElement , typescript_type = "SVGGraphicsElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGGraphicsElement", + typescript_type = "SVGGraphicsElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgGraphicsElement` class."] #[doc = ""] @@ -12,21 +20,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] pub type SvgGraphicsElement; #[cfg(feature = "SvgAnimatedTransformList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = transform)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGraphicsElement", + js_name = "transform" + )] #[doc = "Getter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGraphicsElement`*"] pub fn transform(this: &SvgGraphicsElement) -> SvgAnimatedTransformList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = nearestViewportElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGraphicsElement", + js_name = "nearestViewportElement" + )] #[doc = "Getter for the `nearestViewportElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/nearestViewportElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] pub fn nearest_viewport_element(this: &SvgGraphicsElement) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = farthestViewportElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGraphicsElement", + js_name = "farthestViewportElement" + )] #[doc = "Getter for the `farthestViewportElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/farthestViewportElement)"] @@ -34,7 +60,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] pub fn farthest_viewport_element(this: &SvgGraphicsElement) -> Option; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredFeatures)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGraphicsElement", + js_name = "requiredFeatures" + )] #[doc = "Getter for the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredFeatures)"] @@ -42,7 +74,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] pub fn required_features(this: &SvgGraphicsElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredExtensions)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGraphicsElement", + js_name = "requiredExtensions" + )] #[doc = "Getter for the `requiredExtensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredExtensions)"] @@ -50,7 +88,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] pub fn required_extensions(this: &SvgGraphicsElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = systemLanguage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGGraphicsElement", + js_name = "systemLanguage" + )] #[doc = "Getter for the `systemLanguage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/systemLanguage)"] @@ -58,7 +102,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] pub fn system_language(this: &SvgGraphicsElement) -> SvgStringList; #[cfg(feature = "SvgRect")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGGraphicsElement", + js_name = "getBBox" + )] #[doc = "The `getBBox()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"] @@ -66,7 +116,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgRect`*"] pub fn get_b_box(this: &SvgGraphicsElement) -> Result; #[cfg(all(feature = "SvgBoundingBoxOptions", feature = "SvgRect",))] - # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGGraphicsElement", + js_name = "getBBox" + )] #[doc = "The `getBBox()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"] @@ -77,7 +133,12 @@ extern "C" { a_options: &SvgBoundingBoxOptions, ) -> Result; #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = getCTM)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGGraphicsElement", + js_name = "getCTM" + )] #[doc = "The `getCTM()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getCTM)"] @@ -85,7 +146,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] pub fn get_ctm(this: &SvgGraphicsElement) -> Option; #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = getScreenCTM)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGGraphicsElement", + js_name = "getScreenCTM" + )] #[doc = "The `getScreenCTM()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getScreenCTM)"] @@ -93,7 +159,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] pub fn get_screen_ctm(this: &SvgGraphicsElement) -> Option; #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getTransformToElement)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGGraphicsElement", + js_name = "getTransformToElement" + )] #[doc = "The `getTransformToElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getTransformToElement)"] @@ -103,7 +175,12 @@ extern "C" { this: &SvgGraphicsElement, element: &SvgGraphicsElement, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = hasExtension)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGGraphicsElement", + js_name = "hasExtension" + )] #[doc = "The `hasExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/hasExtension)"] diff --git a/crates/web-sys/src/features/gen_SvgImageElement.rs b/crates/web-sys/src/features/gen_SvgImageElement.rs index 99134788b0c..e69aafee898 100644 --- a/crates/web-sys/src/features/gen_SvgImageElement.rs +++ b/crates/web-sys/src/features/gen_SvgImageElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGImageElement , typescript_type = "SVGImageElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGImageElement", + typescript_type = "SVGImageElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgImageElement` class."] #[doc = ""] @@ -12,7 +21,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`*"] pub type SvgImageElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGImageElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/x)"] @@ -20,7 +35,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn x(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGImageElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/y)"] @@ -28,7 +49,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn y(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGImageElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/width)"] @@ -36,7 +63,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn width(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGImageElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/height)"] @@ -44,7 +77,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn height(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = preserveAspectRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGImageElement", + js_name = "preserveAspectRatio" + )] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/preserveAspectRatio)"] @@ -52,7 +91,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgImageElement`*"] pub fn preserve_aspect_ratio(this: &SvgImageElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGImageElement", + 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/SVGImageElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgLength.rs b/crates/web-sys/src/features/gen_SvgLength.rs index 63a3d360775..92246a23fa5 100644 --- a/crates/web-sys/src/features/gen_SvgLength.rs +++ b/crates/web-sys/src/features/gen_SvgLength.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGLength , typescript_type = "SVGLength")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGLength", + typescript_type = "SVGLength" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLength` class."] #[doc = ""] @@ -11,63 +15,119 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub type SvgLength; - # [wasm_bindgen (structural , method , getter , js_class = "SVGLength" , js_name = unitType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLength", + js_name = "unitType" + )] #[doc = "Getter for the `unitType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/unitType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn unit_type(this: &SvgLength) -> u16; - # [wasm_bindgen (structural , catch , method , getter , js_class = "SVGLength" , js_name = value)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "SVGLength", + 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/SVGLength/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn value(this: &SvgLength) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "SVGLength" , js_name = value)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "SVGLength", + js_name = "value" + )] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn set_value(this: &SvgLength, value: f32) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "SVGLength" , js_name = valueInSpecifiedUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLength", + js_name = "valueInSpecifiedUnits" + )] #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn value_in_specified_units(this: &SvgLength) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGLength" , js_name = valueInSpecifiedUnits)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGLength", + js_name = "valueInSpecifiedUnits" + )] #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn set_value_in_specified_units(this: &SvgLength, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGLength" , js_name = valueAsString)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLength", + js_name = "valueAsString" + )] #[doc = "Getter for the `valueAsString` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGLength" , js_name = valueAsString)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGLength", + js_name = "valueAsString" + )] #[doc = "Setter for the `valueAsString` field of this object."] #[doc = ""] #[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 set_value_as_string(this: &SvgLength, value: &str); - # [wasm_bindgen (catch , method , structural , js_class = "SVGLength" , js_name = convertToSpecifiedUnits)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLength", + js_name = "convertToSpecifiedUnits" + )] #[doc = "The `convertToSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/convertToSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn convert_to_specified_units(this: &SvgLength, unit_type: u16) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGLength" , js_name = newValueSpecifiedUnits)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLength", + js_name = "newValueSpecifiedUnits" + )] #[doc = "The `newValueSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/newValueSpecifiedUnits)"] diff --git a/crates/web-sys/src/features/gen_SvgLengthList.rs b/crates/web-sys/src/features/gen_SvgLengthList.rs index 2672c007f09..88eced6af64 100644 --- a/crates/web-sys/src/features/gen_SvgLengthList.rs +++ b/crates/web-sys/src/features/gen_SvgLengthList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGLengthList , typescript_type = "SVGLengthList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGLengthList", + typescript_type = "SVGLengthList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLengthList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] pub type SvgLengthList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGLengthList" , js_name = numberOfItems)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLengthList", + js_name = "numberOfItems" + )] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/numberOfItems)"] @@ -19,14 +29,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] pub fn number_of_items(this: &SvgLengthList) -> u32; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = appendItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLengthList", + js_name = "appendItem" + )] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn append_item(this: &SvgLengthList, new_item: &SvgLength) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = clear)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLengthList", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/clear)"] @@ -34,7 +56,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] pub fn clear(this: &SvgLengthList) -> Result<(), JsValue>; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = getItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLengthList", + js_name = "getItem" + )] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/getItem)"] @@ -42,7 +70,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn get_item(this: &SvgLengthList, index: u32) -> Result; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = initialize)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLengthList", + js_name = "initialize" + )] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/initialize)"] @@ -50,7 +84,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn initialize(this: &SvgLengthList, new_item: &SvgLength) -> Result; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = insertItemBefore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLengthList", + js_name = "insertItemBefore" + )] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/insertItemBefore)"] @@ -62,7 +102,13 @@ extern "C" { index: u32, ) -> Result; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = removeItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLengthList", + js_name = "removeItem" + )] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/removeItem)"] @@ -70,7 +116,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn remove_item(this: &SvgLengthList, index: u32) -> Result; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = replaceItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGLengthList", + js_name = "replaceItem" + )] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/replaceItem)"] diff --git a/crates/web-sys/src/features/gen_SvgLineElement.rs b/crates/web-sys/src/features/gen_SvgLineElement.rs index ab2ce69e4f7..a0158fd7686 100644 --- a/crates/web-sys/src/features/gen_SvgLineElement.rs +++ b/crates/web-sys/src/features/gen_SvgLineElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGLineElement , typescript_type = "SVGLineElement")] + #[wasm_bindgen( + extends = "SvgGeometryElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGLineElement", + typescript_type = "SVGLineElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLineElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLineElement`*"] pub type SvgLineElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLineElement", + js_name = "x1" + )] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/x1)"] @@ -20,7 +36,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] pub fn x1(this: &SvgLineElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLineElement", + js_name = "y1" + )] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/y1)"] @@ -28,7 +50,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] pub fn y1(this: &SvgLineElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLineElement", + js_name = "x2" + )] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/x2)"] @@ -36,7 +64,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] pub fn x2(this: &SvgLineElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLineElement", + js_name = "y2" + )] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/y2)"] diff --git a/crates/web-sys/src/features/gen_SvgLinearGradientElement.rs b/crates/web-sys/src/features/gen_SvgLinearGradientElement.rs index e589daa0a1b..766a4be135a 100644 --- a/crates/web-sys/src/features/gen_SvgLinearGradientElement.rs +++ b/crates/web-sys/src/features/gen_SvgLinearGradientElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGradientElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGLinearGradientElement , typescript_type = "SVGLinearGradientElement")] + #[wasm_bindgen( + extends = "SvgGradientElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGLinearGradientElement", + typescript_type = "SVGLinearGradientElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLinearGradientElement` class."] #[doc = ""] @@ -12,7 +21,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLinearGradientElement`*"] pub type SvgLinearGradientElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLinearGradientElement", + js_name = "x1" + )] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/x1)"] @@ -20,7 +35,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] pub fn x1(this: &SvgLinearGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLinearGradientElement", + js_name = "y1" + )] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/y1)"] @@ -28,7 +49,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] pub fn y1(this: &SvgLinearGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLinearGradientElement", + js_name = "x2" + )] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/x2)"] @@ -36,7 +63,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] pub fn x2(this: &SvgLinearGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGLinearGradientElement", + js_name = "y2" + )] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/y2)"] diff --git a/crates/web-sys/src/features/gen_SvgMarkerElement.rs b/crates/web-sys/src/features/gen_SvgMarkerElement.rs index 0921bcaf7d0..7575b0eb350 100644 --- a/crates/web-sys/src/features/gen_SvgMarkerElement.rs +++ b/crates/web-sys/src/features/gen_SvgMarkerElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMarkerElement , typescript_type = "SVGMarkerElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGMarkerElement", + typescript_type = "SVGMarkerElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMarkerElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub type SvgMarkerElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = refX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "refX" + )] #[doc = "Getter for the `refX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refX)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn ref_x(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = refY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "refY" + )] #[doc = "Getter for the `refY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refY)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn ref_y(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "markerUnits" + )] #[doc = "Getter for the `markerUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerUnits)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"] pub fn marker_units(this: &SvgMarkerElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "markerWidth" + )] #[doc = "Getter for the `markerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerWidth)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn marker_width(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "markerHeight" + )] #[doc = "Getter for the `markerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerHeight)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn marker_height(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "orientType" + )] #[doc = "Getter for the `orientType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientType)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"] pub fn orient_type(this: &SvgMarkerElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedAngle")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientAngle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "orientAngle" + )] #[doc = "Getter for the `orientAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientAngle)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`, `SvgMarkerElement`*"] pub fn orient_angle(this: &SvgMarkerElement) -> SvgAnimatedAngle; #[cfg(feature = "SvgAnimatedRect")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = viewBox)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "viewBox" + )] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/viewBox)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgMarkerElement`*"] pub fn view_box(this: &SvgMarkerElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = preserveAspectRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMarkerElement", + js_name = "preserveAspectRatio" + )] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/preserveAspectRatio)"] @@ -84,14 +146,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgMarkerElement`*"] pub fn preserve_aspect_ratio(this: &SvgMarkerElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAngle")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAngle)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGMarkerElement", + js_name = "setOrientToAngle" + )] #[doc = "The `setOrientToAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgMarkerElement`*"] pub fn set_orient_to_angle(this: &SvgMarkerElement, angle: &SvgAngle) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAuto)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGMarkerElement", + js_name = "setOrientToAuto" + )] #[doc = "The `setOrientToAuto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAuto)"] diff --git a/crates/web-sys/src/features/gen_SvgMaskElement.rs b/crates/web-sys/src/features/gen_SvgMaskElement.rs index 9c507c5af60..40eca351354 100644 --- a/crates/web-sys/src/features/gen_SvgMaskElement.rs +++ b/crates/web-sys/src/features/gen_SvgMaskElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMaskElement , typescript_type = "SVGMaskElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGMaskElement", + typescript_type = "SVGMaskElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMaskElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"] pub type SvgMaskElement; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = maskUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMaskElement", + js_name = "maskUnits" + )] #[doc = "Getter for the `maskUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskUnits)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"] pub fn mask_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = maskContentUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMaskElement", + js_name = "maskContentUnits" + )] #[doc = "Getter for the `maskContentUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskContentUnits)"] @@ -28,7 +48,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"] pub fn mask_content_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMaskElement", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/x)"] @@ -36,7 +56,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] pub fn x(this: &SvgMaskElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMaskElement", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/y)"] @@ -44,7 +64,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] pub fn y(this: &SvgMaskElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMaskElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/width)"] @@ -52,7 +78,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] pub fn width(this: &SvgMaskElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMaskElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/height)"] diff --git a/crates/web-sys/src/features/gen_SvgMatrix.rs b/crates/web-sys/src/features/gen_SvgMatrix.rs index ca82392b2f5..84854eb2376 100644 --- a/crates/web-sys/src/features/gen_SvgMatrix.rs +++ b/crates/web-sys/src/features/gen_SvgMatrix.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGMatrix , typescript_type = "SVGMatrix")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGMatrix", + typescript_type = "SVGMatrix" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMatrix` class."] #[doc = ""] @@ -11,140 +15,151 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub type SvgMatrix; - # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = a)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMatrix", js_name = "a")] #[doc = "Getter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn a(this: &SvgMatrix) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = a)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGMatrix", js_name = "a")] #[doc = "Setter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_a(this: &SvgMatrix, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = b)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMatrix", js_name = "b")] #[doc = "Getter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn b(this: &SvgMatrix) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = b)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGMatrix", js_name = "b")] #[doc = "Setter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_b(this: &SvgMatrix, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = c)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMatrix", js_name = "c")] #[doc = "Getter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn c(this: &SvgMatrix) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = c)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGMatrix", js_name = "c")] #[doc = "Setter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_c(this: &SvgMatrix, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = d)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMatrix", js_name = "d")] #[doc = "Getter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn d(this: &SvgMatrix) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = d)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGMatrix", js_name = "d")] #[doc = "Setter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_d(this: &SvgMatrix, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = e)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMatrix", js_name = "e")] #[doc = "Getter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn e(this: &SvgMatrix) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = e)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGMatrix", js_name = "e")] #[doc = "Setter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_e(this: &SvgMatrix, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = f)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGMatrix", js_name = "f")] #[doc = "Getter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn f(this: &SvgMatrix) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = f)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGMatrix", js_name = "f")] #[doc = "Setter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_f(this: &SvgMatrix, value: f32); - # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = flipX)] + #[wasm_bindgen(method, structural, js_class = "SVGMatrix", js_name = "flipX")] #[doc = "The `flipX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn flip_x(this: &SvgMatrix) -> SvgMatrix; - # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = flipY)] + #[wasm_bindgen(method, structural, js_class = "SVGMatrix", js_name = "flipY")] #[doc = "The `flipY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn flip_y(this: &SvgMatrix) -> SvgMatrix; - # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = inverse)] + #[wasm_bindgen(catch, method, structural, js_class = "SVGMatrix", js_name = "inverse")] #[doc = "The `inverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/inverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn inverse(this: &SvgMatrix) -> Result; - # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = multiply)] + #[wasm_bindgen(method, structural, js_class = "SVGMatrix", js_name = "multiply")] #[doc = "The `multiply()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/multiply)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn multiply(this: &SvgMatrix, second_matrix: &SvgMatrix) -> SvgMatrix; - # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "SVGMatrix", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn rotate(this: &SvgMatrix, angle: f32) -> SvgMatrix; - # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = rotateFromVector)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGMatrix", + js_name = "rotateFromVector" + )] #[doc = "The `rotateFromVector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotateFromVector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn rotate_from_vector(this: &SvgMatrix, x: f32, y: f32) -> Result; - # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "SVGMatrix", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn scale(this: &SvgMatrix, scale_factor: f32) -> SvgMatrix; - # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = scaleNonUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGMatrix", + js_name = "scaleNonUniform" + )] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scaleNonUniform)"] @@ -155,21 +170,21 @@ extern "C" { scale_factor_x: f32, scale_factor_y: f32, ) -> SvgMatrix; - # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = skewX)] + #[wasm_bindgen(catch, method, structural, js_class = "SVGMatrix", js_name = "skewX")] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn skew_x(this: &SvgMatrix, angle: f32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = skewY)] + #[wasm_bindgen(catch, method, structural, js_class = "SVGMatrix", js_name = "skewY")] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn skew_y(this: &SvgMatrix, angle: f32) -> Result; - # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = translate)] + #[wasm_bindgen(method, structural, js_class = "SVGMatrix", js_name = "translate")] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/translate)"] diff --git a/crates/web-sys/src/features/gen_SvgMetadataElement.rs b/crates/web-sys/src/features/gen_SvgMetadataElement.rs index d5f4c5c8d81..3c223350a78 100644 --- a/crates/web-sys/src/features/gen_SvgMetadataElement.rs +++ b/crates/web-sys/src/features/gen_SvgMetadataElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMetadataElement , typescript_type = "SVGMetadataElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGMetadataElement", + typescript_type = "SVGMetadataElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMetadataElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgNumber.rs b/crates/web-sys/src/features/gen_SvgNumber.rs index 2cb9ffa51b4..7c1460ffcf6 100644 --- a/crates/web-sys/src/features/gen_SvgNumber.rs +++ b/crates/web-sys/src/features/gen_SvgNumber.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGNumber , typescript_type = "SVGNumber")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGNumber", + typescript_type = "SVGNumber" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgNumber` class."] #[doc = ""] @@ -11,14 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] pub type SvgNumber; - # [wasm_bindgen (structural , method , getter , js_class = "SVGNumber" , js_name = value)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGNumber", 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/SVGNumber/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] pub fn value(this: &SvgNumber) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGNumber" , js_name = value)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGNumber", js_name = "value")] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber/value)"] diff --git a/crates/web-sys/src/features/gen_SvgNumberList.rs b/crates/web-sys/src/features/gen_SvgNumberList.rs index cda161a35e2..8b1855b025c 100644 --- a/crates/web-sys/src/features/gen_SvgNumberList.rs +++ b/crates/web-sys/src/features/gen_SvgNumberList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGNumberList , typescript_type = "SVGNumberList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGNumberList", + typescript_type = "SVGNumberList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgNumberList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] pub type SvgNumberList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGNumberList" , js_name = numberOfItems)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGNumberList", + js_name = "numberOfItems" + )] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/numberOfItems)"] @@ -19,14 +29,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] pub fn number_of_items(this: &SvgNumberList) -> u32; #[cfg(feature = "SvgNumber")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = appendItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGNumberList", + js_name = "appendItem" + )] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn append_item(this: &SvgNumberList, new_item: &SvgNumber) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = clear)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGNumberList", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/clear)"] @@ -34,7 +56,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] pub fn clear(this: &SvgNumberList) -> Result<(), JsValue>; #[cfg(feature = "SvgNumber")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = getItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGNumberList", + js_name = "getItem" + )] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/getItem)"] @@ -42,7 +70,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn get_item(this: &SvgNumberList, index: u32) -> Result; #[cfg(feature = "SvgNumber")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = initialize)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGNumberList", + js_name = "initialize" + )] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/initialize)"] @@ -50,7 +84,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn initialize(this: &SvgNumberList, new_item: &SvgNumber) -> Result; #[cfg(feature = "SvgNumber")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = insertItemBefore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGNumberList", + js_name = "insertItemBefore" + )] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/insertItemBefore)"] @@ -62,7 +102,13 @@ extern "C" { index: u32, ) -> Result; #[cfg(feature = "SvgNumber")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = removeItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGNumberList", + js_name = "removeItem" + )] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/removeItem)"] @@ -70,7 +116,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn remove_item(this: &SvgNumberList, index: u32) -> Result; #[cfg(feature = "SvgNumber")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = replaceItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGNumberList", + js_name = "replaceItem" + )] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/replaceItem)"] diff --git a/crates/web-sys/src/features/gen_SvgPathElement.rs b/crates/web-sys/src/features/gen_SvgPathElement.rs index 7cd150fcea2..30418d40e78 100644 --- a/crates/web-sys/src/features/gen_SvgPathElement.rs +++ b/crates/web-sys/src/features/gen_SvgPathElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPathElement , typescript_type = "SVGPathElement")] + #[wasm_bindgen( + extends = "SvgGeometryElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGPathElement", + typescript_type = "SVGPathElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`*"] pub type SvgPathElement; #[cfg(feature = "SvgPathSegList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathElement" , js_name = pathSegList)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathElement", + js_name = "pathSegList" + )] #[doc = "Getter for the `pathSegList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/pathSegList)"] @@ -20,14 +36,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"] pub fn path_seg_list(this: &SvgPathElement) -> SvgPathSegList; #[cfg(feature = "SvgPathSegList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathElement" , js_name = animatedPathSegList)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathElement", + js_name = "animatedPathSegList" + )] #[doc = "Getter for the `animatedPathSegList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/animatedPathSegList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"] pub fn animated_path_seg_list(this: &SvgPathElement) -> SvgPathSegList; - # [wasm_bindgen (method , structural , js_class = "SVGPathElement" , js_name = getPathSegAtLength)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGPathElement", + js_name = "getPathSegAtLength" + )] #[doc = "The `getPathSegAtLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/getPathSegAtLength)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSeg.rs b/crates/web-sys/src/features/gen_SvgPathSeg.rs index 2c9dc633ef5..1de913e3d64 100644 --- a/crates/web-sys/src/features/gen_SvgPathSeg.rs +++ b/crates/web-sys/src/features/gen_SvgPathSeg.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = SVGPathSeg , typescript_type = "SVGPathSeg")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "SVGPathSeg" , typescript_type = "SVGPathSeg")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSeg` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub type SvgPathSeg; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSeg", + js_name = "pathSegType" + )] #[doc = "Getter for the `pathSegType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub fn path_seg_type(this: &SvgPathSeg) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegTypeAsLetter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSeg", + js_name = "pathSegTypeAsLetter" + )] #[doc = "Getter for the `pathSegTypeAsLetter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegTypeAsLetter)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegArcAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegArcAbs.rs index 36b440f5e40..5584c179ec0 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegArcAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegArcAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegArcAbs , typescript_type = "SVGPathSegArcAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegArcAbs" , typescript_type = "SVGPathSegArcAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegArcAbs` class."] #[doc = ""] @@ -11,98 +11,182 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub type SvgPathSegArcAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn x(this: &SvgPathSegArcAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_x(this: &SvgPathSegArcAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn y(this: &SvgPathSegArcAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_y(this: &SvgPathSegArcAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = r1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcAbs", + js_name = "r1" + )] #[doc = "Getter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn r1(this: &SvgPathSegArcAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = r1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcAbs", + js_name = "r1" + )] #[doc = "Setter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_r1(this: &SvgPathSegArcAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = r2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcAbs", + js_name = "r2" + )] #[doc = "Getter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn r2(this: &SvgPathSegArcAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = r2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcAbs", + js_name = "r2" + )] #[doc = "Setter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_r2(this: &SvgPathSegArcAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = angle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcAbs", + js_name = "angle" + )] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn angle(this: &SvgPathSegArcAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = angle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcAbs", + js_name = "angle" + )] #[doc = "Setter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_angle(this: &SvgPathSegArcAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = largeArcFlag)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcAbs", + js_name = "largeArcFlag" + )] #[doc = "Getter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn large_arc_flag(this: &SvgPathSegArcAbs) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = largeArcFlag)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcAbs", + js_name = "largeArcFlag" + )] #[doc = "Setter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_large_arc_flag(this: &SvgPathSegArcAbs, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = sweepFlag)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcAbs", + js_name = "sweepFlag" + )] #[doc = "Getter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/sweepFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn sweep_flag(this: &SvgPathSegArcAbs) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = sweepFlag)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcAbs", + js_name = "sweepFlag" + )] #[doc = "Setter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/sweepFlag)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegArcRel.rs b/crates/web-sys/src/features/gen_SvgPathSegArcRel.rs index a93b871afe4..2437912c700 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegArcRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegArcRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegArcRel , typescript_type = "SVGPathSegArcRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegArcRel" , typescript_type = "SVGPathSegArcRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegArcRel` class."] #[doc = ""] @@ -11,98 +11,182 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub type SvgPathSegArcRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn x(this: &SvgPathSegArcRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_x(this: &SvgPathSegArcRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn y(this: &SvgPathSegArcRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_y(this: &SvgPathSegArcRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = r1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcRel", + js_name = "r1" + )] #[doc = "Getter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn r1(this: &SvgPathSegArcRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = r1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcRel", + js_name = "r1" + )] #[doc = "Setter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_r1(this: &SvgPathSegArcRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = r2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcRel", + js_name = "r2" + )] #[doc = "Getter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn r2(this: &SvgPathSegArcRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = r2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcRel", + js_name = "r2" + )] #[doc = "Setter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_r2(this: &SvgPathSegArcRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = angle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcRel", + js_name = "angle" + )] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn angle(this: &SvgPathSegArcRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = angle)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcRel", + js_name = "angle" + )] #[doc = "Setter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_angle(this: &SvgPathSegArcRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = largeArcFlag)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcRel", + js_name = "largeArcFlag" + )] #[doc = "Getter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn large_arc_flag(this: &SvgPathSegArcRel) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = largeArcFlag)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcRel", + js_name = "largeArcFlag" + )] #[doc = "Setter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_large_arc_flag(this: &SvgPathSegArcRel, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = sweepFlag)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegArcRel", + js_name = "sweepFlag" + )] #[doc = "Getter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/sweepFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn sweep_flag(this: &SvgPathSegArcRel) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = sweepFlag)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegArcRel", + js_name = "sweepFlag" + )] #[doc = "Setter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/sweepFlag)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegClosePath.rs b/crates/web-sys/src/features/gen_SvgPathSegClosePath.rs index b9892c32723..df879ca530e 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegClosePath.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegClosePath.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegClosePath , typescript_type = "SVGPathSegClosePath")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegClosePath" , typescript_type = "SVGPathSegClosePath")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegClosePath` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicAbs.rs index fbeb6886d65..e8ac41aa3bc 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicAbs , typescript_type = "SVGPathSegCurvetoCubicAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoCubicAbs" , typescript_type = "SVGPathSegCurvetoCubicAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicAbs` class."] #[doc = ""] @@ -11,84 +11,156 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub type SvgPathSegCurvetoCubicAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn x(this: &SvgPathSegCurvetoCubicAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn y(this: &SvgPathSegCurvetoCubicAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "x1" + )] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn x1(this: &SvgPathSegCurvetoCubicAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "x1" + )] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_x1(this: &SvgPathSegCurvetoCubicAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "y1" + )] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn y1(this: &SvgPathSegCurvetoCubicAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "y1" + )] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_y1(this: &SvgPathSegCurvetoCubicAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "x2" + )] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn x2(this: &SvgPathSegCurvetoCubicAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "x2" + )] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "y2" + )] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn y2(this: &SvgPathSegCurvetoCubicAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicAbs", + js_name = "y2" + )] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y2)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicRel.rs index f3ee149fa55..256ff88663c 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicRel , typescript_type = "SVGPathSegCurvetoCubicRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoCubicRel" , typescript_type = "SVGPathSegCurvetoCubicRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicRel` class."] #[doc = ""] @@ -11,84 +11,156 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub type SvgPathSegCurvetoCubicRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn x(this: &SvgPathSegCurvetoCubicRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn y(this: &SvgPathSegCurvetoCubicRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "x1" + )] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn x1(this: &SvgPathSegCurvetoCubicRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "x1" + )] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_x1(this: &SvgPathSegCurvetoCubicRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "y1" + )] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn y1(this: &SvgPathSegCurvetoCubicRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "y1" + )] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_y1(this: &SvgPathSegCurvetoCubicRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "x2" + )] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn x2(this: &SvgPathSegCurvetoCubicRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "x2" + )] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "y2" + )] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn y2(this: &SvgPathSegCurvetoCubicRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicRel", + js_name = "y2" + )] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y2)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs index 07896918b09..5ddddf99d99 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicSmoothAbs , typescript_type = "SVGPathSegCurvetoCubicSmoothAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoCubicSmoothAbs" , typescript_type = "SVGPathSegCurvetoCubicSmoothAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicSmoothAbs` class."] #[doc = ""] @@ -11,56 +11,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub type SvgPathSegCurvetoCubicSmoothAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn x(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn y(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "x2" + )] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn x2(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "x2" + )] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "y2" + )] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn y2(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothAbs", + js_name = "y2" + )] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y2)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs index d2b03a26542..58c3f6ba9dc 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicSmoothRel , typescript_type = "SVGPathSegCurvetoCubicSmoothRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoCubicSmoothRel" , typescript_type = "SVGPathSegCurvetoCubicSmoothRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicSmoothRel` class."] #[doc = ""] @@ -11,56 +11,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub type SvgPathSegCurvetoCubicSmoothRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn x(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn y(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "x2" + )] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn x2(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "x2" + )] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "y2" + )] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn y2(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y2)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoCubicSmoothRel", + js_name = "y2" + )] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y2)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs index 4770f97c814..f165315ecc4 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticAbs , typescript_type = "SVGPathSegCurvetoQuadraticAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoQuadraticAbs" , typescript_type = "SVGPathSegCurvetoQuadraticAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticAbs` class."] #[doc = ""] @@ -11,56 +11,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub type SvgPathSegCurvetoQuadraticAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn set_y(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "x1" + )] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn x1(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "x1" + )] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn set_x1(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "y1" + )] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn y1(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticAbs", + js_name = "y1" + )] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y1)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs index 6a3457d747e..d2038a0a09c 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticRel , typescript_type = "SVGPathSegCurvetoQuadraticRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoQuadraticRel" , typescript_type = "SVGPathSegCurvetoQuadraticRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticRel` class."] #[doc = ""] @@ -11,56 +11,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub type SvgPathSegCurvetoQuadraticRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn set_y(this: &SvgPathSegCurvetoQuadraticRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "x1" + )] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn x1(this: &SvgPathSegCurvetoQuadraticRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "x1" + )] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn set_x1(this: &SvgPathSegCurvetoQuadraticRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "y1" + )] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn y1(this: &SvgPathSegCurvetoQuadraticRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y1)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticRel", + js_name = "y1" + )] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y1)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs index 9f19b4f5327..14189f8f4c2 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticSmoothAbs , typescript_type = "SVGPathSegCurvetoQuadraticSmoothAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoQuadraticSmoothAbs" , typescript_type = "SVGPathSegCurvetoQuadraticSmoothAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticSmoothAbs` class."] #[doc = ""] @@ -11,28 +11,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub type SvgPathSegCurvetoQuadraticSmoothAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticSmoothAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticSmoothAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticSmoothAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticSmoothAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticSmoothAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticSmoothAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticSmoothAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs index eadff9849cf..02f34ab2f9b 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticSmoothRel , typescript_type = "SVGPathSegCurvetoQuadraticSmoothRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegCurvetoQuadraticSmoothRel" , typescript_type = "SVGPathSegCurvetoQuadraticSmoothRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticSmoothRel` class."] #[doc = ""] @@ -11,28 +11,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub type SvgPathSegCurvetoQuadraticSmoothRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticSmoothRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticSmoothRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticSmoothRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticSmoothRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegCurvetoQuadraticSmoothRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticSmoothRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegCurvetoQuadraticSmoothRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoAbs.rs index 6f6b930f8a5..719ac690e9c 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegLinetoAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoAbs , typescript_type = "SVGPathSegLinetoAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegLinetoAbs" , typescript_type = "SVGPathSegLinetoAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoAbs` class."] #[doc = ""] @@ -11,28 +11,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub type SvgPathSegLinetoAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub fn x(this: &SvgPathSegLinetoAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub fn set_x(this: &SvgPathSegLinetoAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub fn y(this: &SvgPathSegLinetoAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs index fb6bba694e2..99cacb46d8b 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoHorizontalAbs , typescript_type = "SVGPathSegLinetoHorizontalAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegLinetoHorizontalAbs" , typescript_type = "SVGPathSegLinetoHorizontalAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoHorizontalAbs` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] pub type SvgPathSegLinetoHorizontalAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoHorizontalAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoHorizontalAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] pub fn x(this: &SvgPathSegLinetoHorizontalAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoHorizontalAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoHorizontalAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs/x)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalRel.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalRel.rs index 461458dba21..9b28fe0e194 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoHorizontalRel , typescript_type = "SVGPathSegLinetoHorizontalRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegLinetoHorizontalRel" , typescript_type = "SVGPathSegLinetoHorizontalRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoHorizontalRel` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] pub type SvgPathSegLinetoHorizontalRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoHorizontalRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoHorizontalRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] pub fn x(this: &SvgPathSegLinetoHorizontalRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoHorizontalRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoHorizontalRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel/x)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoRel.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoRel.rs index 64daaf4fa04..35f8ed7c92f 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegLinetoRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoRel , typescript_type = "SVGPathSegLinetoRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegLinetoRel" , typescript_type = "SVGPathSegLinetoRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoRel` class."] #[doc = ""] @@ -11,28 +11,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub type SvgPathSegLinetoRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub fn x(this: &SvgPathSegLinetoRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub fn set_x(this: &SvgPathSegLinetoRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub fn y(this: &SvgPathSegLinetoRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalAbs.rs index 39a50d6ac89..0aa96e622cd 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoVerticalAbs , typescript_type = "SVGPathSegLinetoVerticalAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegLinetoVerticalAbs" , typescript_type = "SVGPathSegLinetoVerticalAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoVerticalAbs` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] pub type SvgPathSegLinetoVerticalAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoVerticalAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoVerticalAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] pub fn y(this: &SvgPathSegLinetoVerticalAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoVerticalAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoVerticalAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalRel.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalRel.rs index 98c9d076b08..52b47f82495 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoVerticalRel , typescript_type = "SVGPathSegLinetoVerticalRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegLinetoVerticalRel" , typescript_type = "SVGPathSegLinetoVerticalRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoVerticalRel` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] pub type SvgPathSegLinetoVerticalRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoVerticalRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegLinetoVerticalRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] pub fn y(this: &SvgPathSegLinetoVerticalRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoVerticalRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegLinetoVerticalRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegList.rs b/crates/web-sys/src/features/gen_SvgPathSegList.rs index 76ae0db675f..0ccb5a750fb 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegList.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPathSegList , typescript_type = "SVGPathSegList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGPathSegList", + typescript_type = "SVGPathSegList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"] pub type SvgPathSegList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegList" , js_name = numberOfItems)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegList", + js_name = "numberOfItems" + )] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList/numberOfItems)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"] pub fn number_of_items(this: &SvgPathSegList) -> u32; #[cfg(feature = "SvgPathSeg")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGPathSegList" , js_name = getItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPathSegList", + js_name = "getItem" + )] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList/getItem)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegMovetoAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegMovetoAbs.rs index ae2f75afbb9..aa866bd13d5 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegMovetoAbs.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegMovetoAbs.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegMovetoAbs , typescript_type = "SVGPathSegMovetoAbs")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegMovetoAbs" , typescript_type = "SVGPathSegMovetoAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegMovetoAbs` class."] #[doc = ""] @@ -11,28 +11,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub type SvgPathSegMovetoAbs; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegMovetoAbs", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub fn x(this: &SvgPathSegMovetoAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoAbs" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegMovetoAbs", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub fn set_x(this: &SvgPathSegMovetoAbs, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegMovetoAbs", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub fn y(this: &SvgPathSegMovetoAbs) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoAbs" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegMovetoAbs", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPathSegMovetoRel.rs b/crates/web-sys/src/features/gen_SvgPathSegMovetoRel.rs index d65c052f96b..60ba391aab6 100644 --- a/crates/web-sys/src/features/gen_SvgPathSegMovetoRel.rs +++ b/crates/web-sys/src/features/gen_SvgPathSegMovetoRel.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegMovetoRel , typescript_type = "SVGPathSegMovetoRel")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "SvgPathSeg" , extends = "::js_sys::Object" , js_name = "SVGPathSegMovetoRel" , typescript_type = "SVGPathSegMovetoRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegMovetoRel` class."] #[doc = ""] @@ -11,28 +11,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub type SvgPathSegMovetoRel; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegMovetoRel", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub fn x(this: &SvgPathSegMovetoRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoRel" , js_name = x)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegMovetoRel", + js_name = "x" + )] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub fn set_x(this: &SvgPathSegMovetoRel, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPathSegMovetoRel", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub fn y(this: &SvgPathSegMovetoRel) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoRel" , js_name = y)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPathSegMovetoRel", + js_name = "y" + )] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/y)"] diff --git a/crates/web-sys/src/features/gen_SvgPatternElement.rs b/crates/web-sys/src/features/gen_SvgPatternElement.rs index 2e8575bee58..d27d14f9e00 100644 --- a/crates/web-sys/src/features/gen_SvgPatternElement.rs +++ b/crates/web-sys/src/features/gen_SvgPatternElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPatternElement , typescript_type = "SVGPatternElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGPatternElement", + typescript_type = "SVGPatternElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPatternElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPatternElement`*"] pub type SvgPatternElement; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "patternUnits" + )] #[doc = "Getter for the `patternUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternUnits)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"] pub fn pattern_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternContentUnits)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "patternContentUnits" + )] #[doc = "Getter for the `patternContentUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternContentUnits)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"] pub fn pattern_content_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedTransformList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternTransform)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "patternTransform" + )] #[doc = "Getter for the `patternTransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternTransform)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgPatternElement`*"] pub fn pattern_transform(this: &SvgPatternElement) -> SvgAnimatedTransformList; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/x)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn x(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/y)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn y(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/width)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn width(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/height)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn height(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedRect")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = viewBox)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "viewBox" + )] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/viewBox)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgPatternElement`*"] pub fn view_box(this: &SvgPatternElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = preserveAspectRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + js_name = "preserveAspectRatio" + )] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/preserveAspectRatio)"] @@ -84,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPatternElement`*"] pub fn preserve_aspect_ratio(this: &SvgPatternElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPatternElement", + 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/SVGPatternElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgPoint.rs b/crates/web-sys/src/features/gen_SvgPoint.rs index 8a328ff23a7..15f6448ab03 100644 --- a/crates/web-sys/src/features/gen_SvgPoint.rs +++ b/crates/web-sys/src/features/gen_SvgPoint.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPoint , typescript_type = "SVGPoint")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGPoint", + typescript_type = "SVGPoint" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPoint` class."] #[doc = ""] @@ -11,28 +15,28 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub type SvgPoint; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPoint" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGPoint", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn x(this: &SvgPoint) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPoint" , js_name = x)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGPoint", js_name = "x")] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn set_x(this: &SvgPoint, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPoint" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGPoint", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn y(this: &SvgPoint) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPoint" , js_name = y)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGPoint", js_name = "y")] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"] @@ -40,7 +44,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn set_y(this: &SvgPoint, value: f32); #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (method , structural , js_class = "SVGPoint" , js_name = matrixTransform)] + #[wasm_bindgen(method, structural, js_class = "SVGPoint", js_name = "matrixTransform")] #[doc = "The `matrixTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/matrixTransform)"] diff --git a/crates/web-sys/src/features/gen_SvgPointList.rs b/crates/web-sys/src/features/gen_SvgPointList.rs index fde144f5edb..5a59c20826f 100644 --- a/crates/web-sys/src/features/gen_SvgPointList.rs +++ b/crates/web-sys/src/features/gen_SvgPointList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPointList , typescript_type = "SVGPointList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGPointList", + typescript_type = "SVGPointList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPointList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] pub type SvgPointList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPointList" , js_name = numberOfItems)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPointList", + js_name = "numberOfItems" + )] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/numberOfItems)"] @@ -19,14 +29,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] pub fn number_of_items(this: &SvgPointList) -> u32; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = appendItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPointList", + js_name = "appendItem" + )] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn append_item(this: &SvgPointList, new_item: &SvgPoint) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = clear)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPointList", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/clear)"] @@ -34,7 +56,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] pub fn clear(this: &SvgPointList) -> Result<(), JsValue>; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = getItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPointList", + js_name = "getItem" + )] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/getItem)"] @@ -42,7 +70,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn get_item(this: &SvgPointList, index: u32) -> Result; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = initialize)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPointList", + js_name = "initialize" + )] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/initialize)"] @@ -50,7 +84,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn initialize(this: &SvgPointList, new_item: &SvgPoint) -> Result; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = insertItemBefore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPointList", + js_name = "insertItemBefore" + )] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/insertItemBefore)"] @@ -62,7 +102,13 @@ extern "C" { index: u32, ) -> Result; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = removeItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPointList", + js_name = "removeItem" + )] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/removeItem)"] @@ -70,7 +116,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn remove_item(this: &SvgPointList, index: u32) -> Result; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = replaceItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPointList", + js_name = "replaceItem" + )] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/replaceItem)"] diff --git a/crates/web-sys/src/features/gen_SvgPolygonElement.rs b/crates/web-sys/src/features/gen_SvgPolygonElement.rs index 1a1140cee51..abeab396340 100644 --- a/crates/web-sys/src/features/gen_SvgPolygonElement.rs +++ b/crates/web-sys/src/features/gen_SvgPolygonElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPolygonElement , typescript_type = "SVGPolygonElement")] + #[wasm_bindgen( + extends = "SvgGeometryElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGPolygonElement", + typescript_type = "SVGPolygonElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPolygonElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPolygonElement`*"] pub type SvgPolygonElement; #[cfg(feature = "SvgPointList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPolygonElement" , js_name = points)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPolygonElement", + js_name = "points" + )] #[doc = "Getter for the `points` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/points)"] @@ -20,7 +36,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolygonElement`*"] pub fn points(this: &SvgPolygonElement) -> SvgPointList; #[cfg(feature = "SvgPointList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPolygonElement" , js_name = animatedPoints)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPolygonElement", + js_name = "animatedPoints" + )] #[doc = "Getter for the `animatedPoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/animatedPoints)"] diff --git a/crates/web-sys/src/features/gen_SvgPolylineElement.rs b/crates/web-sys/src/features/gen_SvgPolylineElement.rs index ff3abdc50e1..906b568528f 100644 --- a/crates/web-sys/src/features/gen_SvgPolylineElement.rs +++ b/crates/web-sys/src/features/gen_SvgPolylineElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPolylineElement , typescript_type = "SVGPolylineElement")] + #[wasm_bindgen( + extends = "SvgGeometryElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGPolylineElement", + typescript_type = "SVGPolylineElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPolylineElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPolylineElement`*"] pub type SvgPolylineElement; #[cfg(feature = "SvgPointList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPolylineElement" , js_name = points)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPolylineElement", + js_name = "points" + )] #[doc = "Getter for the `points` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement/points)"] @@ -20,7 +36,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolylineElement`*"] pub fn points(this: &SvgPolylineElement) -> SvgPointList; #[cfg(feature = "SvgPointList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGPolylineElement" , js_name = animatedPoints)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPolylineElement", + js_name = "animatedPoints" + )] #[doc = "Getter for the `animatedPoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement/animatedPoints)"] diff --git a/crates/web-sys/src/features/gen_SvgPreserveAspectRatio.rs b/crates/web-sys/src/features/gen_SvgPreserveAspectRatio.rs index 57fef2ba243..30d7ab06bb5 100644 --- a/crates/web-sys/src/features/gen_SvgPreserveAspectRatio.rs +++ b/crates/web-sys/src/features/gen_SvgPreserveAspectRatio.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPreserveAspectRatio , typescript_type = "SVGPreserveAspectRatio")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGPreserveAspectRatio", + typescript_type = "SVGPreserveAspectRatio" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPreserveAspectRatio` class."] #[doc = ""] @@ -11,28 +15,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub type SvgPreserveAspectRatio; - # [wasm_bindgen (structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = align)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPreserveAspectRatio", + 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/SVGPreserveAspectRatio/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub fn align(this: &SvgPreserveAspectRatio) -> u16; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = align)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPreserveAspectRatio", + js_name = "align" + )] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub fn set_align(this: &SvgPreserveAspectRatio, value: u16); - # [wasm_bindgen (structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGPreserveAspectRatio", + js_name = "meetOrSlice" + )] #[doc = "Getter for the `meetOrSlice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub fn meet_or_slice(this: &SvgPreserveAspectRatio) -> u16; - # [wasm_bindgen (structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGPreserveAspectRatio", + js_name = "meetOrSlice" + )] #[doc = "Setter for the `meetOrSlice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"] diff --git a/crates/web-sys/src/features/gen_SvgRadialGradientElement.rs b/crates/web-sys/src/features/gen_SvgRadialGradientElement.rs index 79627e0223e..234efd4d493 100644 --- a/crates/web-sys/src/features/gen_SvgRadialGradientElement.rs +++ b/crates/web-sys/src/features/gen_SvgRadialGradientElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGradientElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGRadialGradientElement , typescript_type = "SVGRadialGradientElement")] + #[wasm_bindgen( + extends = "SvgGradientElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGRadialGradientElement", + typescript_type = "SVGRadialGradientElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgRadialGradientElement` class."] #[doc = ""] @@ -12,7 +21,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgRadialGradientElement`*"] pub type SvgRadialGradientElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = cx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRadialGradientElement", + js_name = "cx" + )] #[doc = "Getter for the `cx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/cx)"] @@ -20,7 +35,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn cx(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = cy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRadialGradientElement", + js_name = "cy" + )] #[doc = "Getter for the `cy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/cy)"] @@ -28,7 +49,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn cy(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = r)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRadialGradientElement", + js_name = "r" + )] #[doc = "Getter for the `r` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/r)"] @@ -36,7 +63,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn r(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRadialGradientElement", + js_name = "fx" + )] #[doc = "Getter for the `fx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fx)"] @@ -44,7 +77,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn fx(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRadialGradientElement", + js_name = "fy" + )] #[doc = "Getter for the `fy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fy)"] @@ -52,7 +91,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn fy(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fr)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRadialGradientElement", + js_name = "fr" + )] #[doc = "Getter for the `fr` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fr)"] diff --git a/crates/web-sys/src/features/gen_SvgRect.rs b/crates/web-sys/src/features/gen_SvgRect.rs index 3ee979817c5..6ffe4adca9a 100644 --- a/crates/web-sys/src/features/gen_SvgRect.rs +++ b/crates/web-sys/src/features/gen_SvgRect.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGRect , typescript_type = "SVGRect")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGRect", + typescript_type = "SVGRect" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgRect` class."] #[doc = ""] @@ -11,56 +15,56 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub type SvgRect; - # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGRect", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn x(this: &SvgRect) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = x)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGRect", js_name = "x")] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn set_x(this: &SvgRect, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGRect", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn y(this: &SvgRect) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = y)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGRect", js_name = "y")] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn set_y(this: &SvgRect, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = width)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGRect", js_name = "width")] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn width(this: &SvgRect) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = width)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGRect", js_name = "width")] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn set_width(this: &SvgRect, value: f32); - # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = height)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGRect", js_name = "height")] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn height(this: &SvgRect) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = height)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGRect", js_name = "height")] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"] diff --git a/crates/web-sys/src/features/gen_SvgRectElement.rs b/crates/web-sys/src/features/gen_SvgRectElement.rs index c019621fcaf..6d6c60fd686 100644 --- a/crates/web-sys/src/features/gen_SvgRectElement.rs +++ b/crates/web-sys/src/features/gen_SvgRectElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGRectElement , typescript_type = "SVGRectElement")] + #[wasm_bindgen( + extends = "SvgGeometryElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGRectElement", + typescript_type = "SVGRectElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgRectElement` class."] #[doc = ""] @@ -12,7 +22,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgRectElement`*"] pub type SvgRectElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGRectElement", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/x)"] @@ -20,7 +30,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn x(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGRectElement", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/y)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn y(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRectElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/width)"] @@ -36,7 +52,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn width(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRectElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/height)"] @@ -44,7 +66,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn height(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = rx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRectElement", + js_name = "rx" + )] #[doc = "Getter for the `rx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/rx)"] @@ -52,7 +80,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn rx(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = ry)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGRectElement", + js_name = "ry" + )] #[doc = "Getter for the `ry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/ry)"] diff --git a/crates/web-sys/src/features/gen_SvgScriptElement.rs b/crates/web-sys/src/features/gen_SvgScriptElement.rs index 0892cbc609d..6e0449fd55d 100644 --- a/crates/web-sys/src/features/gen_SvgScriptElement.rs +++ b/crates/web-sys/src/features/gen_SvgScriptElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGScriptElement , typescript_type = "SVGScriptElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGScriptElement", + typescript_type = "SVGScriptElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgScriptElement` class."] #[doc = ""] @@ -11,28 +19,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub type SvgScriptElement; - # [wasm_bindgen (structural , method , getter , js_class = "SVGScriptElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGScriptElement", + 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/SVGScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub fn type_(this: &SvgScriptElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "SVGScriptElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGScriptElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &SvgScriptElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGScriptElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGScriptElement", + js_name = "crossOrigin" + )] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGScriptElement" , js_name = crossOrigin)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGScriptElement", + js_name = "crossOrigin" + )] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/crossOrigin)"] @@ -40,7 +72,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub fn set_cross_origin(this: &SvgScriptElement, value: Option<&str>); #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGScriptElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGScriptElement", + 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/SVGScriptElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgSetElement.rs b/crates/web-sys/src/features/gen_SvgSetElement.rs index 3fe789ecff8..cd3d11c3e1a 100644 --- a/crates/web-sys/src/features/gen_SvgSetElement.rs +++ b/crates/web-sys/src/features/gen_SvgSetElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSetElement , typescript_type = "SVGSetElement")] + #[wasm_bindgen( + extends = "SvgAnimationElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGSetElement", + typescript_type = "SVGSetElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgSetElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgStopElement.rs b/crates/web-sys/src/features/gen_SvgStopElement.rs index 3bbd4523b22..6e16c59e554 100644 --- a/crates/web-sys/src/features/gen_SvgStopElement.rs +++ b/crates/web-sys/src/features/gen_SvgStopElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGStopElement , typescript_type = "SVGStopElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGStopElement", + typescript_type = "SVGStopElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgStopElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgStopElement`*"] pub type SvgStopElement; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGStopElement" , js_name = offset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStopElement", + js_name = "offset" + )] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement/offset)"] diff --git a/crates/web-sys/src/features/gen_SvgStringList.rs b/crates/web-sys/src/features/gen_SvgStringList.rs index 57362b9b245..0ae1bf8d28b 100644 --- a/crates/web-sys/src/features/gen_SvgStringList.rs +++ b/crates/web-sys/src/features/gen_SvgStringList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGStringList , typescript_type = "SVGStringList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGStringList", + typescript_type = "SVGStringList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgStringList` class."] #[doc = ""] @@ -11,49 +15,85 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub type SvgStringList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGStringList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStringList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn length(this: &SvgStringList) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "SVGStringList" , js_name = numberOfItems)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStringList", + js_name = "numberOfItems" + )] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/numberOfItems)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn number_of_items(this: &SvgStringList) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = appendItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGStringList", + js_name = "appendItem" + )] #[doc = "The `appendItem()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "SVGStringList" , js_name = clear)] + #[wasm_bindgen(method, structural, js_class = "SVGStringList", js_name = "clear")] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn clear(this: &SvgStringList); - # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = getItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGStringList", + js_name = "getItem" + )] #[doc = "The `getItem()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = initialize)] + #[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; - # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = insertItemBefore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGStringList", + js_name = "insertItemBefore" + )] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/insertItemBefore)"] @@ -64,14 +104,26 @@ extern "C" { new_item: &str, index: u32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = removeItem)] + #[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; - # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = replaceItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGStringList", + js_name = "replaceItem" + )] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/replaceItem)"] diff --git a/crates/web-sys/src/features/gen_SvgStyleElement.rs b/crates/web-sys/src/features/gen_SvgStyleElement.rs index 2c36d5969a0..482af6cf35c 100644 --- a/crates/web-sys/src/features/gen_SvgStyleElement.rs +++ b/crates/web-sys/src/features/gen_SvgStyleElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGStyleElement , typescript_type = "SVGStyleElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGStyleElement", + typescript_type = "SVGStyleElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgStyleElement` class."] #[doc = ""] @@ -11,56 +19,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub type SvgStyleElement; - # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = xmlspace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStyleElement", + js_name = "xmlspace" + )] #[doc = "Getter for the `xmlspace` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = xmlspace)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGStyleElement", + js_name = "xmlspace" + )] #[doc = "Setter for the `xmlspace` field of this object."] #[doc = ""] #[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 set_xmlspace(this: &SvgStyleElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStyleElement", + 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/SVGStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn type_(this: &SvgStyleElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGStyleElement", + js_name = "type" + )] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &SvgStyleElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStyleElement", + js_name = "media" + )] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = media)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGStyleElement", + js_name = "media" + )] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[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 set_media(this: &SvgStyleElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = title)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStyleElement", + 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/SVGStyleElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn title(this: &SvgStyleElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = title)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGStyleElement", + js_name = "title" + )] #[doc = "Setter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"] @@ -68,7 +124,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn set_title(this: &SvgStyleElement, value: &str); #[cfg(feature = "StyleSheet")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = sheet)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGStyleElement", + js_name = "sheet" + )] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/sheet)"] diff --git a/crates/web-sys/src/features/gen_SvgSwitchElement.rs b/crates/web-sys/src/features/gen_SvgSwitchElement.rs index 62ba99363fc..de84ceec029 100644 --- a/crates/web-sys/src/features/gen_SvgSwitchElement.rs +++ b/crates/web-sys/src/features/gen_SvgSwitchElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSwitchElement , typescript_type = "SVGSwitchElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGSwitchElement", + typescript_type = "SVGSwitchElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgSwitchElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgSymbolElement.rs b/crates/web-sys/src/features/gen_SvgSymbolElement.rs index 2fd29f06000..2d1cd9e4145 100644 --- a/crates/web-sys/src/features/gen_SvgSymbolElement.rs +++ b/crates/web-sys/src/features/gen_SvgSymbolElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSymbolElement , typescript_type = "SVGSymbolElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGSymbolElement", + typescript_type = "SVGSymbolElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgSymbolElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgSymbolElement`*"] pub type SvgSymbolElement; #[cfg(feature = "SvgAnimatedRect")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = viewBox)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSymbolElement", + js_name = "viewBox" + )] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/viewBox)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgSymbolElement`*"] pub fn view_box(this: &SvgSymbolElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = preserveAspectRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSymbolElement", + js_name = "preserveAspectRatio" + )] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/preserveAspectRatio)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgSymbolElement`*"] pub fn preserve_aspect_ratio(this: &SvgSymbolElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredFeatures)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSymbolElement", + js_name = "requiredFeatures" + )] #[doc = "Getter for the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredFeatures)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] pub fn required_features(this: &SvgSymbolElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredExtensions)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSymbolElement", + js_name = "requiredExtensions" + )] #[doc = "Getter for the `requiredExtensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredExtensions)"] @@ -44,14 +76,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] pub fn required_extensions(this: &SvgSymbolElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = systemLanguage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSymbolElement", + js_name = "systemLanguage" + )] #[doc = "Getter for the `systemLanguage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/systemLanguage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] pub fn system_language(this: &SvgSymbolElement) -> SvgStringList; - # [wasm_bindgen (method , structural , js_class = "SVGSymbolElement" , js_name = hasExtension)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSymbolElement", + js_name = "hasExtension" + )] #[doc = "The `hasExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/hasExtension)"] diff --git a/crates/web-sys/src/features/gen_SvgTextContentElement.rs b/crates/web-sys/src/features/gen_SvgTextContentElement.rs index ac2abf5dcb5..ba4cd790ad9 100644 --- a/crates/web-sys/src/features/gen_SvgTextContentElement.rs +++ b/crates/web-sys/src/features/gen_SvgTextContentElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextContentElement , typescript_type = "SVGTextContentElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGTextContentElement", + typescript_type = "SVGTextContentElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextContentElement` class."] #[doc = ""] @@ -12,7 +21,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub type SvgTextContentElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextContentElement" , js_name = textLength)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextContentElement", + js_name = "textLength" + )] #[doc = "Getter for the `textLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/textLength)"] @@ -20,7 +35,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextContentElement`*"] pub fn text_length(this: &SvgTextContentElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextContentElement" , js_name = lengthAdjust)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextContentElement", + js_name = "lengthAdjust" + )] #[doc = "Getter for the `lengthAdjust` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/lengthAdjust)"] @@ -28,14 +49,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextContentElement`*"] pub fn length_adjust(this: &SvgTextContentElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (method , structural , js_class = "SVGTextContentElement" , js_name = getCharNumAtPosition)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getCharNumAtPosition" + )] #[doc = "The `getCharNumAtPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getCharNumAtPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgTextContentElement`*"] pub fn get_char_num_at_position(this: &SvgTextContentElement, point: &SvgPoint) -> i32; - # [wasm_bindgen (method , structural , js_class = "SVGTextContentElement" , js_name = getComputedTextLength)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getComputedTextLength" + )] #[doc = "The `getComputedTextLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getComputedTextLength)"] @@ -43,7 +74,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub fn get_computed_text_length(this: &SvgTextContentElement) -> f32; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getEndPositionOfChar)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getEndPositionOfChar" + )] #[doc = "The `getEndPositionOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)"] @@ -54,7 +91,13 @@ extern "C" { charnum: u32, ) -> Result; #[cfg(feature = "SvgRect")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getExtentOfChar)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getExtentOfChar" + )] #[doc = "The `getExtentOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getExtentOfChar)"] @@ -64,14 +107,25 @@ extern "C" { this: &SvgTextContentElement, charnum: u32, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "SVGTextContentElement" , js_name = getNumberOfChars)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getNumberOfChars" + )] #[doc = "The `getNumberOfChars()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getNumberOfChars)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub fn get_number_of_chars(this: &SvgTextContentElement) -> i32; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getRotationOfChar)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getRotationOfChar" + )] #[doc = "The `getRotationOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getRotationOfChar)"] @@ -80,7 +134,13 @@ extern "C" { pub fn get_rotation_of_char(this: &SvgTextContentElement, charnum: u32) -> Result; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getStartPositionOfChar)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getStartPositionOfChar" + )] #[doc = "The `getStartPositionOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)"] @@ -90,7 +150,13 @@ extern "C" { this: &SvgTextContentElement, charnum: u32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getSubStringLength)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTextContentElement", + js_name = "getSubStringLength" + )] #[doc = "The `getSubStringLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getSubStringLength)"] @@ -101,7 +167,13 @@ extern "C" { charnum: u32, nchars: u32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = selectSubString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTextContentElement", + js_name = "selectSubString" + )] #[doc = "The `selectSubString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/selectSubString)"] diff --git a/crates/web-sys/src/features/gen_SvgTextElement.rs b/crates/web-sys/src/features/gen_SvgTextElement.rs index 5b046b017a8..49dfdbb7882 100644 --- a/crates/web-sys/src/features/gen_SvgTextElement.rs +++ b/crates/web-sys/src/features/gen_SvgTextElement.rs @@ -3,7 +3,18 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgTextPositioningElement , extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextElement , typescript_type = "SVGTextElement")] + #[wasm_bindgen( + extends = "SvgTextPositioningElement", + extends = "SvgTextContentElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGTextElement", + typescript_type = "SVGTextElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgTextPathElement.rs b/crates/web-sys/src/features/gen_SvgTextPathElement.rs index 9e274b3c30c..d4b2d1ac6d3 100644 --- a/crates/web-sys/src/features/gen_SvgTextPathElement.rs +++ b/crates/web-sys/src/features/gen_SvgTextPathElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPathElement , typescript_type = "SVGTextPathElement")] + #[wasm_bindgen( + extends = "SvgTextContentElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGTextPathElement", + typescript_type = "SVGTextPathElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextPathElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub type SvgTextPathElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = startOffset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPathElement", + js_name = "startOffset" + )] #[doc = "Getter for the `startOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/startOffset)"] @@ -20,7 +36,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextPathElement`*"] pub fn start_offset(this: &SvgTextPathElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = method)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPathElement", + js_name = "method" + )] #[doc = "Getter for the `method` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/method)"] @@ -28,7 +50,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"] pub fn method(this: &SvgTextPathElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = spacing)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPathElement", + js_name = "spacing" + )] #[doc = "Getter for the `spacing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/spacing)"] @@ -36,7 +64,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"] pub fn spacing(this: &SvgTextPathElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPathElement", + 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/SVGTextPathElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgTextPositioningElement.rs b/crates/web-sys/src/features/gen_SvgTextPositioningElement.rs index ee5d40db854..84471fc09a1 100644 --- a/crates/web-sys/src/features/gen_SvgTextPositioningElement.rs +++ b/crates/web-sys/src/features/gen_SvgTextPositioningElement.rs @@ -3,7 +3,17 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPositioningElement , typescript_type = "SVGTextPositioningElement")] + #[wasm_bindgen( + extends = "SvgTextContentElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGTextPositioningElement", + typescript_type = "SVGTextPositioningElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextPositioningElement` class."] #[doc = ""] @@ -12,7 +22,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTextPositioningElement`*"] pub type SvgTextPositioningElement; #[cfg(feature = "SvgAnimatedLengthList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPositioningElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/x)"] @@ -20,7 +36,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn x(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPositioningElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/y)"] @@ -28,7 +50,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn y(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = dx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPositioningElement", + js_name = "dx" + )] #[doc = "Getter for the `dx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/dx)"] @@ -36,7 +64,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn dx(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = dy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPositioningElement", + js_name = "dy" + )] #[doc = "Getter for the `dy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/dy)"] @@ -44,7 +78,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn dy(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedNumberList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = rotate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTextPositioningElement", + js_name = "rotate" + )] #[doc = "Getter for the `rotate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/rotate)"] diff --git a/crates/web-sys/src/features/gen_SvgTitleElement.rs b/crates/web-sys/src/features/gen_SvgTitleElement.rs index 4f15b6ee4f5..b2ef90225f0 100644 --- a/crates/web-sys/src/features/gen_SvgTitleElement.rs +++ b/crates/web-sys/src/features/gen_SvgTitleElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTitleElement , typescript_type = "SVGTitleElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGTitleElement", + typescript_type = "SVGTitleElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTitleElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgTransform.rs b/crates/web-sys/src/features/gen_SvgTransform.rs index 00615597b48..c0d9153c03c 100644 --- a/crates/web-sys/src/features/gen_SvgTransform.rs +++ b/crates/web-sys/src/features/gen_SvgTransform.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGTransform , typescript_type = "SVGTransform")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGTransform", + typescript_type = "SVGTransform" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTransform` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub type SvgTransform; - # [wasm_bindgen (structural , method , getter , js_class = "SVGTransform" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTransform", + 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/SVGTransform/type)"] @@ -19,14 +29,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn type_(this: &SvgTransform) -> u16; #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGTransform" , js_name = matrix)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTransform", + js_name = "matrix" + )] #[doc = "Getter for the `matrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/matrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`*"] pub fn matrix(this: &SvgTransform) -> SvgMatrix; - # [wasm_bindgen (structural , method , getter , js_class = "SVGTransform" , js_name = angle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTransform", + js_name = "angle" + )] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/angle)"] @@ -34,42 +56,78 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn angle(this: &SvgTransform) -> f32; #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setMatrix)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransform", + js_name = "setMatrix" + )] #[doc = "The `setMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`*"] pub fn set_matrix(this: &SvgTransform, matrix: &SvgMatrix) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setRotate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransform", + js_name = "setRotate" + )] #[doc = "The `setRotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setRotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_rotate(this: &SvgTransform, angle: f32, cx: f32, cy: f32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setScale)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransform", + js_name = "setScale" + )] #[doc = "The `setScale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_scale(this: &SvgTransform, sx: f32, sy: f32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setSkewX)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransform", + js_name = "setSkewX" + )] #[doc = "The `setSkewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setSkewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_skew_x(this: &SvgTransform, angle: f32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setSkewY)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransform", + js_name = "setSkewY" + )] #[doc = "The `setSkewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setSkewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_skew_y(this: &SvgTransform, angle: f32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setTranslate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransform", + js_name = "setTranslate" + )] #[doc = "The `setTranslate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setTranslate)"] diff --git a/crates/web-sys/src/features/gen_SvgTransformList.rs b/crates/web-sys/src/features/gen_SvgTransformList.rs index 66cfac09af4..7191db55b5a 100644 --- a/crates/web-sys/src/features/gen_SvgTransformList.rs +++ b/crates/web-sys/src/features/gen_SvgTransformList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGTransformList , typescript_type = "SVGTransformList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGTransformList", + typescript_type = "SVGTransformList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTransformList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] pub type SvgTransformList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGTransformList" , js_name = numberOfItems)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGTransformList", + js_name = "numberOfItems" + )] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/numberOfItems)"] @@ -19,7 +29,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] pub fn number_of_items(this: &SvgTransformList) -> u32; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = appendItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "appendItem" + )] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/appendItem)"] @@ -29,7 +45,13 @@ extern "C" { this: &SvgTransformList, new_item: &SvgTransform, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = clear)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/clear)"] @@ -37,7 +59,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] pub fn clear(this: &SvgTransformList) -> Result<(), JsValue>; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = consolidate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "consolidate" + )] #[doc = "The `consolidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/consolidate)"] @@ -45,7 +73,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn consolidate(this: &SvgTransformList) -> Result, JsValue>; #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))] - # [wasm_bindgen (method , structural , js_class = "SVGTransformList" , js_name = createSVGTransformFromMatrix)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGTransformList", + js_name = "createSVGTransformFromMatrix" + )] #[doc = "The `createSVGTransformFromMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)"] @@ -56,7 +89,13 @@ extern "C" { matrix: &SvgMatrix, ) -> SvgTransform; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = getItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "getItem" + )] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/getItem)"] @@ -64,7 +103,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn get_item(this: &SvgTransformList, index: u32) -> Result; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = initialize)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "initialize" + )] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/initialize)"] @@ -75,7 +120,13 @@ extern "C" { new_item: &SvgTransform, ) -> Result; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = insertItemBefore)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "insertItemBefore" + )] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/insertItemBefore)"] @@ -87,7 +138,13 @@ extern "C" { index: u32, ) -> Result; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = removeItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "removeItem" + )] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/removeItem)"] @@ -95,7 +152,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn remove_item(this: &SvgTransformList, index: u32) -> Result; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = replaceItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + js_name = "replaceItem" + )] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/replaceItem)"] diff --git a/crates/web-sys/src/features/gen_SvgUnitTypes.rs b/crates/web-sys/src/features/gen_SvgUnitTypes.rs index d5d1bf3c021..2f1831b9653 100644 --- a/crates/web-sys/src/features/gen_SvgUnitTypes.rs +++ b/crates/web-sys/src/features/gen_SvgUnitTypes.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGUnitTypes , typescript_type = "SVGUnitTypes")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGUnitTypes", + typescript_type = "SVGUnitTypes" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgUnitTypes` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgUseElement.rs b/crates/web-sys/src/features/gen_SvgUseElement.rs index 4410c45b918..44447f53e88 100644 --- a/crates/web-sys/src/features/gen_SvgUseElement.rs +++ b/crates/web-sys/src/features/gen_SvgUseElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGUseElement , typescript_type = "SVGUseElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGUseElement", + typescript_type = "SVGUseElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgUseElement` class."] #[doc = ""] @@ -12,7 +21,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgUseElement`*"] pub type SvgUseElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGUseElement", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/x)"] @@ -20,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn x(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGUseElement", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/y)"] @@ -28,7 +37,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn y(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGUseElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/width)"] @@ -36,7 +51,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn width(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGUseElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/height)"] @@ -44,7 +65,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn height(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGUseElement", + 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/SVGUseElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgViewElement.rs b/crates/web-sys/src/features/gen_SvgViewElement.rs index 64baf02dae5..57138ad7dfc 100644 --- a/crates/web-sys/src/features/gen_SvgViewElement.rs +++ b/crates/web-sys/src/features/gen_SvgViewElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGViewElement , typescript_type = "SVGViewElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGViewElement", + typescript_type = "SVGViewElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgViewElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub type SvgViewElement; #[cfg(feature = "SvgAnimatedRect")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = viewBox)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGViewElement", + js_name = "viewBox" + )] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/viewBox)"] @@ -20,21 +34,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgViewElement`*"] pub fn view_box(this: &SvgViewElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = preserveAspectRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGViewElement", + js_name = "preserveAspectRatio" + )] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgViewElement`*"] pub fn preserve_aspect_ratio(this: &SvgViewElement) -> SvgAnimatedPreserveAspectRatio; - # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = zoomAndPan)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGViewElement", + js_name = "zoomAndPan" + )] #[doc = "Getter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub fn zoom_and_pan(this: &SvgViewElement) -> u16; - # [wasm_bindgen (structural , method , setter , js_class = "SVGViewElement" , js_name = zoomAndPan)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGViewElement", + js_name = "zoomAndPan" + )] #[doc = "Setter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"] diff --git a/crates/web-sys/src/features/gen_SvgZoomAndPan.rs b/crates/web-sys/src/features/gen_SvgZoomAndPan.rs index 187d2f00a24..367c0458e6d 100644 --- a/crates/web-sys/src/features/gen_SvgZoomAndPan.rs +++ b/crates/web-sys/src/features/gen_SvgZoomAndPan.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGZoomAndPan , typescript_type = "SVGZoomAndPan")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "SVGZoomAndPan", + typescript_type = "SVGZoomAndPan" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgZoomAndPan` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub type SvgZoomAndPan; - # [wasm_bindgen (structural , method , getter , js_class = "SVGZoomAndPan" , js_name = zoomAndPan)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGZoomAndPan", + js_name = "zoomAndPan" + )] #[doc = "Getter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub fn zoom_and_pan(this: &SvgZoomAndPan) -> u16; - # [wasm_bindgen (structural , method , setter , js_class = "SVGZoomAndPan" , js_name = zoomAndPan)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGZoomAndPan", + js_name = "zoomAndPan" + )] #[doc = "Setter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"] diff --git a/crates/web-sys/src/features/gen_SvgaElement.rs b/crates/web-sys/src/features/gen_SvgaElement.rs index e866e2ff235..a075cdc3055 100644 --- a/crates/web-sys/src/features/gen_SvgaElement.rs +++ b/crates/web-sys/src/features/gen_SvgaElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAElement , typescript_type = "SVGAElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGAElement", + typescript_type = "SVGAElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgaElement` class."] #[doc = ""] @@ -12,63 +21,93 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub type SvgaElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = target)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAElement", + js_name = "target" + )] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgaElement`*"] pub fn target(this: &SvgaElement) -> SvgAnimatedString; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = download)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAElement", + js_name = "download" + )] #[doc = "Getter for the `download` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = download)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAElement", + js_name = "download" + )] #[doc = "Setter for the `download` field of this object."] #[doc = ""] #[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 set_download(this: &SvgaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = ping)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGAElement", js_name = "ping")] #[doc = "Getter for the `ping` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = ping)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGAElement", js_name = "ping")] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] #[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 set_ping(this: &SvgaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = rel)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGAElement", js_name = "rel")] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = rel)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGAElement", js_name = "rel")] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[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 set_rel(this: &SvgaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAElement", + js_name = "referrerPolicy" + )] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = referrerPolicy)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAElement", + js_name = "referrerPolicy" + )] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"] @@ -76,49 +115,81 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_referrer_policy(this: &SvgaElement, value: &str); #[cfg(feature = "DomTokenList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = relList)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAElement", + js_name = "relList" + )] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `SvgaElement`*"] pub fn rel_list(this: &SvgaElement) -> DomTokenList; - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = hreflang)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGAElement", + js_name = "hreflang" + )] #[doc = "Getter for the `hreflang` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = hreflang)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGAElement", + js_name = "hreflang" + )] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] #[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 set_hreflang(this: &SvgaElement, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGAElement", 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/SVGAElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn type_(this: &SvgaElement) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = type)] + #[wasm_bindgen(structural, method, setter, js_class = "SVGAElement", js_name = "type")] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[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 set_type(this: &SvgaElement, value: &str); - # [wasm_bindgen (structural , catch , method , getter , js_class = "SVGAElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "SVGAElement", + js_name = "text" + )] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "SVGAElement" , js_name = text)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "SVGAElement", + js_name = "text" + )] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"] @@ -126,7 +197,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_text(this: &SvgaElement, value: &str) -> Result<(), JsValue>; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = href)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGAElement", 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/SVGAElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgfeBlendElement.rs b/crates/web-sys/src/features/gen_SvgfeBlendElement.rs index 97ce3978d3f..bd13a745c26 100644 --- a/crates/web-sys/src/features/gen_SvgfeBlendElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeBlendElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEBlendElement , typescript_type = "SVGFEBlendElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEBlendElement", + typescript_type = "SVGFEBlendElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeBlendElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub type SvgfeBlendElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] pub fn in1(this: &SvgfeBlendElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = in2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "in2" + )] #[doc = "Getter for the `in2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/in2)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] pub fn in2(this: &SvgfeBlendElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = mode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "mode" + )] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/mode)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeBlendElement`*"] pub fn mode(this: &SvgfeBlendElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/x)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn x(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/y)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn y(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/width)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn width(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/height)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn height(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEBlendElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeColorMatrixElement.rs b/crates/web-sys/src/features/gen_SvgfeColorMatrixElement.rs index c951981f805..a4d1f5627e7 100644 --- a/crates/web-sys/src/features/gen_SvgfeColorMatrixElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeColorMatrixElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEColorMatrixElement , typescript_type = "SVGFEColorMatrixElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEColorMatrixElement", + typescript_type = "SVGFEColorMatrixElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeColorMatrixElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] pub type SvgfeColorMatrixElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeColorMatrixElement`*"] pub fn in1(this: &SvgfeColorMatrixElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + 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/SVGFEColorMatrixElement/type)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeColorMatrixElement`*"] pub fn type_(this: &SvgfeColorMatrixElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumberList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = values)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + js_name = "values" + )] #[doc = "Getter for the `values` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/values)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgfeColorMatrixElement`*"] pub fn values(this: &SvgfeColorMatrixElement) -> SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/x)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn x(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/y)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn y(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/width)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn width(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/height)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn height(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEColorMatrixElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeComponentTransferElement.rs b/crates/web-sys/src/features/gen_SvgfeComponentTransferElement.rs index dda9bff7abc..2bbaa9dbd1f 100644 --- a/crates/web-sys/src/features/gen_SvgfeComponentTransferElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeComponentTransferElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEComponentTransferElement , typescript_type = "SVGFEComponentTransferElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEComponentTransferElement", + typescript_type = "SVGFEComponentTransferElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeComponentTransferElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeComponentTransferElement`*"] pub type SvgfeComponentTransferElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEComponentTransferElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeComponentTransferElement`*"] pub fn in1(this: &SvgfeComponentTransferElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEComponentTransferElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/x)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn x(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEComponentTransferElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/y)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn y(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEComponentTransferElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/width)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn width(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEComponentTransferElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/height)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn height(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEComponentTransferElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeCompositeElement.rs b/crates/web-sys/src/features/gen_SvgfeCompositeElement.rs index 23f4db08813..a3c3b2de87b 100644 --- a/crates/web-sys/src/features/gen_SvgfeCompositeElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeCompositeElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFECompositeElement , typescript_type = "SVGFECompositeElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFECompositeElement", + typescript_type = "SVGFECompositeElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeCompositeElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub type SvgfeCompositeElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] pub fn in1(this: &SvgfeCompositeElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = in2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "in2" + )] #[doc = "Getter for the `in2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/in2)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] pub fn in2(this: &SvgfeCompositeElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = operator)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "operator" + )] #[doc = "Getter for the `operator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/operator)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeCompositeElement`*"] pub fn operator(this: &SvgfeCompositeElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "k1" + )] #[doc = "Getter for the `k1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k1)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k1(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "k2" + )] #[doc = "Getter for the `k2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k2)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k2(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k3)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "k3" + )] #[doc = "Getter for the `k3` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k3)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k3(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k4)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "k4" + )] #[doc = "Getter for the `k4` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k4)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k4(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/x)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn x(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/y)"] @@ -84,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn y(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/width)"] @@ -92,7 +160,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn width(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/height)"] @@ -100,7 +174,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn height(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFECompositeElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeConvolveMatrixElement.rs b/crates/web-sys/src/features/gen_SvgfeConvolveMatrixElement.rs index 605a9ac66c0..d0c729629bf 100644 --- a/crates/web-sys/src/features/gen_SvgfeConvolveMatrixElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeConvolveMatrixElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEConvolveMatrixElement , typescript_type = "SVGFEConvolveMatrixElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEConvolveMatrixElement", + typescript_type = "SVGFEConvolveMatrixElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeConvolveMatrixElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] pub type SvgfeConvolveMatrixElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeConvolveMatrixElement`*"] pub fn in1(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedInteger")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = orderX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "orderX" + )] #[doc = "Getter for the `orderX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/orderX)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn order_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedInteger")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = orderY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "orderY" + )] #[doc = "Getter for the `orderY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/orderY)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn order_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedNumberList")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelMatrix)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "kernelMatrix" + )] #[doc = "Getter for the `kernelMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelMatrix)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgfeConvolveMatrixElement`*"] pub fn kernel_matrix(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = divisor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "divisor" + )] #[doc = "Getter for the `divisor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/divisor)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn divisor(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = bias)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "bias" + )] #[doc = "Getter for the `bias` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/bias)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn bias(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedInteger")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = targetX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "targetX" + )] #[doc = "Getter for the `targetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/targetX)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn target_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedInteger")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = targetY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "targetY" + )] #[doc = "Getter for the `targetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/targetY)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn target_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = edgeMode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "edgeMode" + )] #[doc = "Getter for the `edgeMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/edgeMode)"] @@ -84,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeConvolveMatrixElement`*"] pub fn edge_mode(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelUnitLengthX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "kernelUnitLengthX" + )] #[doc = "Getter for the `kernelUnitLengthX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthX)"] @@ -92,7 +160,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn kernel_unit_length_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelUnitLengthY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "kernelUnitLengthY" + )] #[doc = "Getter for the `kernelUnitLengthY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthY)"] @@ -100,7 +174,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn kernel_unit_length_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedBoolean")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = preserveAlpha)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "preserveAlpha" + )] #[doc = "Getter for the `preserveAlpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/preserveAlpha)"] @@ -108,7 +188,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`, `SvgfeConvolveMatrixElement`*"] pub fn preserve_alpha(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedBoolean; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/x)"] @@ -116,7 +202,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/y)"] @@ -124,7 +216,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/width)"] @@ -132,7 +230,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn width(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/height)"] @@ -140,7 +244,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn height(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEConvolveMatrixElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeDiffuseLightingElement.rs b/crates/web-sys/src/features/gen_SvgfeDiffuseLightingElement.rs index 6ac26b3fa0a..12a046da926 100644 --- a/crates/web-sys/src/features/gen_SvgfeDiffuseLightingElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeDiffuseLightingElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDiffuseLightingElement , typescript_type = "SVGFEDiffuseLightingElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEDiffuseLightingElement", + typescript_type = "SVGFEDiffuseLightingElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDiffuseLightingElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeDiffuseLightingElement`*"] pub type SvgfeDiffuseLightingElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDiffuseLightingElement`*"] pub fn in1(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = surfaceScale)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "surfaceScale" + )] #[doc = "Getter for the `surfaceScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn surface_scale(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = diffuseConstant)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "diffuseConstant" + )] #[doc = "Getter for the `diffuseConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn diffuse_constant(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = kernelUnitLengthX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "kernelUnitLengthX" + )] #[doc = "Getter for the `kernelUnitLengthX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn kernel_unit_length_x(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = kernelUnitLengthY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "kernelUnitLengthY" + )] #[doc = "Getter for the `kernelUnitLengthY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn kernel_unit_length_y(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/x)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn x(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/y)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn y(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/width)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn width(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/height)"] @@ -84,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn height(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDiffuseLightingElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeDisplacementMapElement.rs b/crates/web-sys/src/features/gen_SvgfeDisplacementMapElement.rs index f533134b626..2584db6abed 100644 --- a/crates/web-sys/src/features/gen_SvgfeDisplacementMapElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeDisplacementMapElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDisplacementMapElement , typescript_type = "SVGFEDisplacementMapElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEDisplacementMapElement", + typescript_type = "SVGFEDisplacementMapElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDisplacementMapElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] pub type SvgfeDisplacementMapElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] pub fn in1(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = in2)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "in2" + )] #[doc = "Getter for the `in2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in2)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] pub fn in2(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = scale)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "scale" + )] #[doc = "Getter for the `scale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/scale)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDisplacementMapElement`*"] pub fn scale(this: &SvgfeDisplacementMapElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = xChannelSelector)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "xChannelSelector" + )] #[doc = "Getter for the `xChannelSelector` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"] pub fn x_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = yChannelSelector)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "yChannelSelector" + )] #[doc = "Getter for the `yChannelSelector` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"] pub fn y_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/x)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn x(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/y)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn y(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/width)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn width(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/height)"] @@ -84,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn height(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDisplacementMapElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeDistantLightElement.rs b/crates/web-sys/src/features/gen_SvgfeDistantLightElement.rs index 424df95f628..6e186ec16df 100644 --- a/crates/web-sys/src/features/gen_SvgfeDistantLightElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeDistantLightElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDistantLightElement , typescript_type = "SVGFEDistantLightElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEDistantLightElement", + typescript_type = "SVGFEDistantLightElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDistantLightElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeDistantLightElement`*"] pub type SvgfeDistantLightElement; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDistantLightElement" , js_name = azimuth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDistantLightElement", + js_name = "azimuth" + )] #[doc = "Getter for the `azimuth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement/azimuth)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDistantLightElement`*"] pub fn azimuth(this: &SvgfeDistantLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDistantLightElement" , js_name = elevation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDistantLightElement", + js_name = "elevation" + )] #[doc = "Getter for the `elevation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement/elevation)"] diff --git a/crates/web-sys/src/features/gen_SvgfeDropShadowElement.rs b/crates/web-sys/src/features/gen_SvgfeDropShadowElement.rs index d48d5d6b2f3..5a4267baff2 100644 --- a/crates/web-sys/src/features/gen_SvgfeDropShadowElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeDropShadowElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDropShadowElement , typescript_type = "SVGFEDropShadowElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEDropShadowElement", + typescript_type = "SVGFEDropShadowElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDropShadowElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeDropShadowElement`*"] pub type SvgfeDropShadowElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDropShadowElement`*"] pub fn in1(this: &SvgfeDropShadowElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = dx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "dx" + )] #[doc = "Getter for the `dx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/dx)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn dx(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = dy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "dy" + )] #[doc = "Getter for the `dy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/dy)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn dy(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = stdDeviationX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "stdDeviationX" + )] #[doc = "Getter for the `stdDeviationX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/stdDeviationX)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn std_deviation_x(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = stdDeviationY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "stdDeviationY" + )] #[doc = "Getter for the `stdDeviationY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/stdDeviationY)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn std_deviation_y(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/x)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn x(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/y)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn y(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/width)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn width(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/height)"] @@ -84,14 +146,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn height(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEDropShadowElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDropShadowElement`*"] pub fn result(this: &SvgfeDropShadowElement) -> SvgAnimatedString; - # [wasm_bindgen (method , structural , js_class = "SVGFEDropShadowElement" , js_name = setStdDeviation)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGFEDropShadowElement", + js_name = "setStdDeviation" + )] #[doc = "The `setStdDeviation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/setStdDeviation)"] diff --git a/crates/web-sys/src/features/gen_SvgfeFloodElement.rs b/crates/web-sys/src/features/gen_SvgfeFloodElement.rs index 392ebacf390..9a01eb3c068 100644 --- a/crates/web-sys/src/features/gen_SvgfeFloodElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeFloodElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFloodElement , typescript_type = "SVGFEFloodElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEFloodElement", + typescript_type = "SVGFEFloodElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFloodElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeFloodElement`*"] pub type SvgfeFloodElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEFloodElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/x)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn x(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEFloodElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/y)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn y(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEFloodElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/width)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn width(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEFloodElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/height)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn height(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEFloodElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeFuncAElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncAElement.rs index 688c97d0a77..051e90db7be 100644 --- a/crates/web-sys/src/features/gen_SvgfeFuncAElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeFuncAElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncAElement , typescript_type = "SVGFEFuncAElement")] + #[wasm_bindgen( + extends = "SvgComponentTransferFunctionElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEFuncAElement", + typescript_type = "SVGFEFuncAElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncAElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgfeFuncBElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncBElement.rs index d0ebf847499..d8d4d0cf30a 100644 --- a/crates/web-sys/src/features/gen_SvgfeFuncBElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeFuncBElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncBElement , typescript_type = "SVGFEFuncBElement")] + #[wasm_bindgen( + extends = "SvgComponentTransferFunctionElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEFuncBElement", + typescript_type = "SVGFEFuncBElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncBElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgfeFuncGElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncGElement.rs index dc61bf560b5..4cd65c7c873 100644 --- a/crates/web-sys/src/features/gen_SvgfeFuncGElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeFuncGElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncGElement , typescript_type = "SVGFEFuncGElement")] + #[wasm_bindgen( + extends = "SvgComponentTransferFunctionElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEFuncGElement", + typescript_type = "SVGFEFuncGElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncGElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgfeFuncRElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncRElement.rs index de260ac38c6..4d7bd17a99e 100644 --- a/crates/web-sys/src/features/gen_SvgfeFuncRElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeFuncRElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncRElement , typescript_type = "SVGFEFuncRElement")] + #[wasm_bindgen( + extends = "SvgComponentTransferFunctionElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEFuncRElement", + typescript_type = "SVGFEFuncRElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncRElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgfeGaussianBlurElement.rs b/crates/web-sys/src/features/gen_SvgfeGaussianBlurElement.rs index 88cb074d10a..a6853cdadae 100644 --- a/crates/web-sys/src/features/gen_SvgfeGaussianBlurElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeGaussianBlurElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEGaussianBlurElement , typescript_type = "SVGFEGaussianBlurElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEGaussianBlurElement", + typescript_type = "SVGFEGaussianBlurElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeGaussianBlurElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeGaussianBlurElement`*"] pub type SvgfeGaussianBlurElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeGaussianBlurElement`*"] pub fn in1(this: &SvgfeGaussianBlurElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = stdDeviationX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "stdDeviationX" + )] #[doc = "Getter for the `stdDeviationX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeGaussianBlurElement`*"] pub fn std_deviation_x(this: &SvgfeGaussianBlurElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = stdDeviationY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "stdDeviationY" + )] #[doc = "Getter for the `stdDeviationY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeGaussianBlurElement`*"] pub fn std_deviation_y(this: &SvgfeGaussianBlurElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/x)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn x(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/y)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn y(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/width)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn width(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/height)"] @@ -68,14 +118,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn height(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEGaussianBlurElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeGaussianBlurElement`*"] pub fn result(this: &SvgfeGaussianBlurElement) -> SvgAnimatedString; - # [wasm_bindgen (method , structural , js_class = "SVGFEGaussianBlurElement" , js_name = setStdDeviation)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGFEGaussianBlurElement", + js_name = "setStdDeviation" + )] #[doc = "The `setStdDeviation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation)"] diff --git a/crates/web-sys/src/features/gen_SvgfeImageElement.rs b/crates/web-sys/src/features/gen_SvgfeImageElement.rs index efb101bbce7..a2104866b58 100644 --- a/crates/web-sys/src/features/gen_SvgfeImageElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeImageElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEImageElement , typescript_type = "SVGFEImageElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEImageElement", + typescript_type = "SVGFEImageElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeImageElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeImageElement`*"] pub type SvgfeImageElement; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = preserveAspectRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEImageElement", + js_name = "preserveAspectRatio" + )] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/preserveAspectRatio)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgfeImageElement`*"] pub fn preserve_aspect_ratio(this: &SvgfeImageElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEImageElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/x)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn x(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEImageElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/y)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn y(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEImageElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/width)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn width(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEImageElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/height)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn height(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEImageElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/result)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeImageElement`*"] pub fn result(this: &SvgfeImageElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEImageElement", + 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/SVGFEImageElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgfeMergeElement.rs b/crates/web-sys/src/features/gen_SvgfeMergeElement.rs index 7ff05f3df60..15717c4eaf1 100644 --- a/crates/web-sys/src/features/gen_SvgfeMergeElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeMergeElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMergeElement , typescript_type = "SVGFEMergeElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEMergeElement", + typescript_type = "SVGFEMergeElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeMergeElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeMergeElement`*"] pub type SvgfeMergeElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMergeElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/x)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn x(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMergeElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/y)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn y(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMergeElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/width)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn width(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMergeElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/height)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn height(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMergeElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeMergeNodeElement.rs b/crates/web-sys/src/features/gen_SvgfeMergeNodeElement.rs index ed556e18fdb..21c1271ae4a 100644 --- a/crates/web-sys/src/features/gen_SvgfeMergeNodeElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeMergeNodeElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMergeNodeElement , typescript_type = "SVGFEMergeNodeElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEMergeNodeElement", + typescript_type = "SVGFEMergeNodeElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeMergeNodeElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeMergeNodeElement`*"] pub type SvgfeMergeNodeElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeNodeElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMergeNodeElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement/in1)"] diff --git a/crates/web-sys/src/features/gen_SvgfeMorphologyElement.rs b/crates/web-sys/src/features/gen_SvgfeMorphologyElement.rs index 5170c0471b3..daeae815939 100644 --- a/crates/web-sys/src/features/gen_SvgfeMorphologyElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeMorphologyElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMorphologyElement , typescript_type = "SVGFEMorphologyElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEMorphologyElement", + typescript_type = "SVGFEMorphologyElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeMorphologyElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] pub type SvgfeMorphologyElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMorphologyElement`*"] pub fn in1(this: &SvgfeMorphologyElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = operator)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "operator" + )] #[doc = "Getter for the `operator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/operator)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeMorphologyElement`*"] pub fn operator(this: &SvgfeMorphologyElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = radiusX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "radiusX" + )] #[doc = "Getter for the `radiusX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/radiusX)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeMorphologyElement`*"] pub fn radius_x(this: &SvgfeMorphologyElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = radiusY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "radiusY" + )] #[doc = "Getter for the `radiusY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/radiusY)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeMorphologyElement`*"] pub fn radius_y(this: &SvgfeMorphologyElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/x)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn x(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/y)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn y(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/width)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn width(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/height)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn height(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEMorphologyElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeOffsetElement.rs b/crates/web-sys/src/features/gen_SvgfeOffsetElement.rs index 3baf9001551..debd8d593c3 100644 --- a/crates/web-sys/src/features/gen_SvgfeOffsetElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeOffsetElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEOffsetElement , typescript_type = "SVGFEOffsetElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEOffsetElement", + typescript_type = "SVGFEOffsetElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeOffsetElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeOffsetElement`*"] pub type SvgfeOffsetElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeOffsetElement`*"] pub fn in1(this: &SvgfeOffsetElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = dx)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "dx" + )] #[doc = "Getter for the `dx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/dx)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeOffsetElement`*"] pub fn dx(this: &SvgfeOffsetElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = dy)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "dy" + )] #[doc = "Getter for the `dy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/dy)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeOffsetElement`*"] pub fn dy(this: &SvgfeOffsetElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/x)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn x(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/y)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn y(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/width)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn width(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/height)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn height(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEOffsetElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfePointLightElement.rs b/crates/web-sys/src/features/gen_SvgfePointLightElement.rs index 2c417c93ebe..566e44cc9c4 100644 --- a/crates/web-sys/src/features/gen_SvgfePointLightElement.rs +++ b/crates/web-sys/src/features/gen_SvgfePointLightElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEPointLightElement , typescript_type = "SVGFEPointLightElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFEPointLightElement", + typescript_type = "SVGFEPointLightElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfePointLightElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfePointLightElement`*"] pub type SvgfePointLightElement; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEPointLightElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/x)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] pub fn x(this: &SvgfePointLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEPointLightElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/y)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] pub fn y(this: &SvgfePointLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = z)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFEPointLightElement", + js_name = "z" + )] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/z)"] diff --git a/crates/web-sys/src/features/gen_SvgfeSpecularLightingElement.rs b/crates/web-sys/src/features/gen_SvgfeSpecularLightingElement.rs index 56bc66036c3..24a456dc44d 100644 --- a/crates/web-sys/src/features/gen_SvgfeSpecularLightingElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeSpecularLightingElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFESpecularLightingElement , typescript_type = "SVGFESpecularLightingElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFESpecularLightingElement", + typescript_type = "SVGFESpecularLightingElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeSpecularLightingElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeSpecularLightingElement`*"] pub type SvgfeSpecularLightingElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeSpecularLightingElement`*"] pub fn in1(this: &SvgfeSpecularLightingElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = surfaceScale)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "surfaceScale" + )] #[doc = "Getter for the `surfaceScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/surfaceScale)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn surface_scale(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = specularConstant)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "specularConstant" + )] #[doc = "Getter for the `specularConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/specularConstant)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn specular_constant(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = specularExponent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "specularExponent" + )] #[doc = "Getter for the `specularExponent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/specularExponent)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn specular_exponent(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = kernelUnitLengthX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "kernelUnitLengthX" + )] #[doc = "Getter for the `kernelUnitLengthX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthX)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn kernel_unit_length_x(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = kernelUnitLengthY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "kernelUnitLengthY" + )] #[doc = "Getter for the `kernelUnitLengthY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthY)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn kernel_unit_length_y(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/x)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn x(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/y)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn y(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/width)"] @@ -84,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn width(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/height)"] @@ -92,7 +160,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn height(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpecularLightingElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeSpotLightElement.rs b/crates/web-sys/src/features/gen_SvgfeSpotLightElement.rs index 28da387678e..0e96fe70dae 100644 --- a/crates/web-sys/src/features/gen_SvgfeSpotLightElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeSpotLightElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFESpotLightElement , typescript_type = "SVGFESpotLightElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFESpotLightElement", + typescript_type = "SVGFESpotLightElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeSpotLightElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeSpotLightElement`*"] pub type SvgfeSpotLightElement; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/x)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn x(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/y)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn y(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = z)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "z" + )] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/z)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn z(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "pointsAtX" + )] #[doc = "Getter for the `pointsAtX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtX)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn points_at_x(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "pointsAtY" + )] #[doc = "Getter for the `pointsAtY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtY)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn points_at_y(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtZ)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "pointsAtZ" + )] #[doc = "Getter for the `pointsAtZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtZ)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn points_at_z(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = specularExponent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "specularExponent" + )] #[doc = "Getter for the `specularExponent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/specularExponent)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn specular_exponent(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = limitingConeAngle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFESpotLightElement", + js_name = "limitingConeAngle" + )] #[doc = "Getter for the `limitingConeAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/limitingConeAngle)"] diff --git a/crates/web-sys/src/features/gen_SvgfeTileElement.rs b/crates/web-sys/src/features/gen_SvgfeTileElement.rs index cad40bd16cb..189225b212a 100644 --- a/crates/web-sys/src/features/gen_SvgfeTileElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeTileElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFETileElement , typescript_type = "SVGFETileElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFETileElement", + typescript_type = "SVGFETileElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeTileElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeTileElement`*"] pub type SvgfeTileElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = in1)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETileElement", + js_name = "in1" + )] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/in1)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeTileElement`*"] pub fn in1(this: &SvgfeTileElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETileElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/x)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn x(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETileElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/y)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn y(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETileElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/width)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn width(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETileElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/height)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn height(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETileElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvgfeTurbulenceElement.rs b/crates/web-sys/src/features/gen_SvgfeTurbulenceElement.rs index 6e91ac5a62e..24c5705a54c 100644 --- a/crates/web-sys/src/features/gen_SvgfeTurbulenceElement.rs +++ b/crates/web-sys/src/features/gen_SvgfeTurbulenceElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFETurbulenceElement , typescript_type = "SVGFETurbulenceElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGFETurbulenceElement", + typescript_type = "SVGFETurbulenceElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeTurbulenceElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub type SvgfeTurbulenceElement; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = baseFrequencyX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "baseFrequencyX" + )] #[doc = "Getter for the `baseFrequencyX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/baseFrequencyX)"] @@ -20,7 +34,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] pub fn base_frequency_x(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = baseFrequencyY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "baseFrequencyY" + )] #[doc = "Getter for the `baseFrequencyY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/baseFrequencyY)"] @@ -28,7 +48,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] pub fn base_frequency_y(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedInteger")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = numOctaves)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "numOctaves" + )] #[doc = "Getter for the `numOctaves` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/numOctaves)"] @@ -36,7 +62,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeTurbulenceElement`*"] pub fn num_octaves(this: &SvgfeTurbulenceElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedNumber")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = seed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "seed" + )] #[doc = "Getter for the `seed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/seed)"] @@ -44,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] pub fn seed(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = stitchTiles)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "stitchTiles" + )] #[doc = "Getter for the `stitchTiles` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/stitchTiles)"] @@ -52,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeTurbulenceElement`*"] pub fn stitch_tiles(this: &SvgfeTurbulenceElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + 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/SVGFETurbulenceElement/type)"] @@ -60,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeTurbulenceElement`*"] pub fn type_(this: &SvgfeTurbulenceElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = x)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "x" + )] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/x)"] @@ -68,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn x(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = y)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "y" + )] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/y)"] @@ -76,7 +132,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn y(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/width)"] @@ -84,7 +146,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn width(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/height)"] @@ -92,7 +160,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn height(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = result)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGFETurbulenceElement", + js_name = "result" + )] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/result)"] diff --git a/crates/web-sys/src/features/gen_SvggElement.rs b/crates/web-sys/src/features/gen_SvggElement.rs index d7d35dca98a..75396aba8a9 100644 --- a/crates/web-sys/src/features/gen_SvggElement.rs +++ b/crates/web-sys/src/features/gen_SvggElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGElement , typescript_type = "SVGGElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGGElement", + typescript_type = "SVGGElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvggElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgmPathElement.rs b/crates/web-sys/src/features/gen_SvgmPathElement.rs index adacfbabe01..f1122f3b30d 100644 --- a/crates/web-sys/src/features/gen_SvgmPathElement.rs +++ b/crates/web-sys/src/features/gen_SvgmPathElement.rs @@ -3,7 +3,15 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMPathElement , typescript_type = "SVGMPathElement")] + #[wasm_bindgen( + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGMPathElement", + typescript_type = "SVGMPathElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgmPathElement` class."] #[doc = ""] @@ -12,7 +20,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgmPathElement`*"] pub type SvgmPathElement; #[cfg(feature = "SvgAnimatedString")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGMPathElement" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGMPathElement", + 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/SVGMPathElement/href)"] diff --git a/crates/web-sys/src/features/gen_SvgsvgElement.rs b/crates/web-sys/src/features/gen_SvgsvgElement.rs index b7978354d3e..ea98230d1ed 100644 --- a/crates/web-sys/src/features/gen_SvgsvgElement.rs +++ b/crates/web-sys/src/features/gen_SvgsvgElement.rs @@ -3,7 +3,16 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSVGElement , typescript_type = "SVGSVGElement")] + #[wasm_bindgen( + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGSVGElement", + typescript_type = "SVGSVGElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgsvgElement` class."] #[doc = ""] @@ -12,7 +21,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub type SvgsvgElement; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGSVGElement", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/x)"] @@ -20,7 +29,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn x(this: &SvgsvgElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "SVGSVGElement", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/y)"] @@ -28,7 +37,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn y(this: &SvgsvgElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/width)"] @@ -36,28 +51,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn width(this: &SvgsvgElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn height(this: &SvgsvgElement) -> SvgAnimatedLength; - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = useCurrentView)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "useCurrentView" + )] #[doc = "Getter for the `useCurrentView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/useCurrentView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn use_current_view(this: &SvgsvgElement) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = currentScale)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "currentScale" + )] #[doc = "Getter for the `currentScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn current_scale(this: &SvgsvgElement) -> f32; - # [wasm_bindgen (structural , method , setter , js_class = "SVGSVGElement" , js_name = currentScale)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGSVGElement", + js_name = "currentScale" + )] #[doc = "Setter for the `currentScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"] @@ -65,7 +104,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn set_current_scale(this: &SvgsvgElement, value: f32); #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = currentTranslate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "currentTranslate" + )] #[doc = "Getter for the `currentTranslate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentTranslate)"] @@ -73,7 +118,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"] pub fn current_translate(this: &SvgsvgElement) -> SvgPoint; #[cfg(feature = "SvgAnimatedRect")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = viewBox)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "viewBox" + )] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/viewBox)"] @@ -81,28 +132,51 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgsvgElement`*"] pub fn view_box(this: &SvgsvgElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = preserveAspectRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "preserveAspectRatio" + )] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgsvgElement`*"] pub fn preserve_aspect_ratio(this: &SvgsvgElement) -> SvgAnimatedPreserveAspectRatio; - # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = zoomAndPan)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "SVGSVGElement", + js_name = "zoomAndPan" + )] #[doc = "Getter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn zoom_and_pan(this: &SvgsvgElement) -> u16; - # [wasm_bindgen (structural , method , setter , js_class = "SVGSVGElement" , js_name = zoomAndPan)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "SVGSVGElement", + js_name = "zoomAndPan" + )] #[doc = "Setter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn set_zoom_and_pan(this: &SvgsvgElement, value: u16); - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = animationsPaused)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "animationsPaused" + )] #[doc = "The `animationsPaused()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/animationsPaused)"] @@ -110,7 +184,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn animations_paused(this: &SvgsvgElement) -> bool; #[cfg(feature = "SvgAngle")] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGAngle)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGAngle" + )] #[doc = "The `createSVGAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGAngle)"] @@ -118,7 +197,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgsvgElement`*"] pub fn create_svg_angle(this: &SvgsvgElement) -> SvgAngle; #[cfg(feature = "SvgLength")] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGLength)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGLength" + )] #[doc = "The `createSVGLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGLength)"] @@ -126,7 +210,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgsvgElement`*"] pub fn create_svg_length(this: &SvgsvgElement) -> SvgLength; #[cfg(feature = "SvgMatrix")] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGMatrix)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGMatrix" + )] #[doc = "The `createSVGMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGMatrix)"] @@ -134,7 +223,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgsvgElement`*"] pub fn create_svg_matrix(this: &SvgsvgElement) -> SvgMatrix; #[cfg(feature = "SvgNumber")] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGNumber)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGNumber" + )] #[doc = "The `createSVGNumber()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGNumber)"] @@ -142,7 +236,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgsvgElement`*"] pub fn create_svg_number(this: &SvgsvgElement) -> SvgNumber; #[cfg(feature = "SvgPoint")] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGPoint)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGPoint" + )] #[doc = "The `createSVGPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGPoint)"] @@ -150,7 +249,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"] pub fn create_svg_point(this: &SvgsvgElement) -> SvgPoint; #[cfg(feature = "SvgRect")] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGRect)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGRect" + )] #[doc = "The `createSVGRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGRect)"] @@ -158,7 +262,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgRect`, `SvgsvgElement`*"] pub fn create_svg_rect(this: &SvgsvgElement) -> SvgRect; #[cfg(feature = "SvgTransform")] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransform)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGTransform" + )] #[doc = "The `createSVGTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransform)"] @@ -166,7 +275,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgsvgElement`*"] pub fn create_svg_transform(this: &SvgsvgElement) -> SvgTransform; #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))] - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransformFromMatrix)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "createSVGTransformFromMatrix" + )] #[doc = "The `createSVGTransformFromMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransformFromMatrix)"] @@ -176,70 +290,120 @@ extern "C" { this: &SvgsvgElement, matrix: &SvgMatrix, ) -> SvgTransform; - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = deselectAll)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "deselectAll" + )] #[doc = "The `deselectAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/deselectAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn deselect_all(this: &SvgsvgElement); - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = forceRedraw)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "forceRedraw" + )] #[doc = "The `forceRedraw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/forceRedraw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn force_redraw(this: &SvgsvgElement); - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = getCurrentTime)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "getCurrentTime" + )] #[doc = "The `getCurrentTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getCurrentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn get_current_time(this: &SvgsvgElement) -> f32; - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = getElementById)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "getElementById" + )] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getElementById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn get_element_by_id(this: &SvgsvgElement, element_id: &str) -> Option; - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = pauseAnimations)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "pauseAnimations" + )] #[doc = "The `pauseAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/pauseAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn pause_animations(this: &SvgsvgElement); - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = setCurrentTime)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "setCurrentTime" + )] #[doc = "The `setCurrentTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/setCurrentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn set_current_time(this: &SvgsvgElement, seconds: f32); - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = suspendRedraw)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "suspendRedraw" + )] #[doc = "The `suspendRedraw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/suspendRedraw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn suspend_redraw(this: &SvgsvgElement, max_wait_milliseconds: u32) -> u32; - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unpauseAnimations)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "unpauseAnimations" + )] #[doc = "The `unpauseAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unpauseAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn unpause_animations(this: &SvgsvgElement); - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedraw)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "unsuspendRedraw" + )] #[doc = "The `unsuspendRedraw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedraw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn unsuspend_redraw(this: &SvgsvgElement, suspend_handle_id: u32); - # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedrawAll)] + #[wasm_bindgen( + method, + structural, + js_class = "SVGSVGElement", + js_name = "unsuspendRedrawAll" + )] #[doc = "The `unsuspendRedrawAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedrawAll)"] diff --git a/crates/web-sys/src/features/gen_SvgtSpanElement.rs b/crates/web-sys/src/features/gen_SvgtSpanElement.rs index fc943015da5..c7d20aad700 100644 --- a/crates/web-sys/src/features/gen_SvgtSpanElement.rs +++ b/crates/web-sys/src/features/gen_SvgtSpanElement.rs @@ -3,7 +3,18 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = SvgTextPositioningElement , extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTSpanElement , typescript_type = "SVGTSpanElement")] + #[wasm_bindgen( + extends = "SvgTextPositioningElement", + extends = "SvgTextContentElement", + extends = "SvgGraphicsElement", + extends = "SvgElement", + extends = "Element", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "SVGTSpanElement", + typescript_type = "SVGTSpanElement" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgtSpanElement` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TcpServerSocket.rs b/crates/web-sys/src/features/gen_TcpServerSocket.rs index 0904f2ddffe..92464320b65 100644 --- a/crates/web-sys/src/features/gen_TcpServerSocket.rs +++ b/crates/web-sys/src/features/gen_TcpServerSocket.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TCPServerSocket , typescript_type = "TCPServerSocket")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "TCPServerSocket", + typescript_type = "TCPServerSocket" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpServerSocket` class."] #[doc = ""] @@ -11,35 +16,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub type TcpServerSocket; - # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocket" , js_name = localPort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPServerSocket", + js_name = "localPort" + )] #[doc = "Getter for the `localPort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/localPort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn local_port(this: &TcpServerSocket) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocket" , js_name = onconnect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPServerSocket", + js_name = "onconnect" + )] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn onconnect(this: &TcpServerSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TCPServerSocket" , js_name = onconnect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TCPServerSocket", + js_name = "onconnect" + )] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn set_onconnect(this: &TcpServerSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocket" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPServerSocket", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn onerror(this: &TcpServerSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TCPServerSocket" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TCPServerSocket", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onerror)"] @@ -76,7 +111,7 @@ extern "C" { options: &ServerSocketOptions, backlog: u16, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "TCPServerSocket" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "TCPServerSocket", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/close)"] diff --git a/crates/web-sys/src/features/gen_TcpServerSocketEvent.rs b/crates/web-sys/src/features/gen_TcpServerSocketEvent.rs index 4faa0de7440..a473e73d5cf 100644 --- a/crates/web-sys/src/features/gen_TcpServerSocketEvent.rs +++ b/crates/web-sys/src/features/gen_TcpServerSocketEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TCPServerSocketEvent , typescript_type = "TCPServerSocketEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "TCPServerSocketEvent", + typescript_type = "TCPServerSocketEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpServerSocketEvent` class."] #[doc = ""] @@ -12,7 +17,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`*"] pub type TcpServerSocketEvent; #[cfg(feature = "TcpSocket")] - # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocketEvent" , js_name = socket)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPServerSocketEvent", + js_name = "socket" + )] #[doc = "Getter for the `socket` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent/socket)"] diff --git a/crates/web-sys/src/features/gen_TcpServerSocketEventInit.rs b/crates/web-sys/src/features/gen_TcpServerSocketEventInit.rs index f0c7dcdfb9d..207046e52fb 100644 --- a/crates/web-sys/src/features/gen_TcpServerSocketEventInit.rs +++ b/crates/web-sys/src/features/gen_TcpServerSocketEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TCPServerSocketEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TCPServerSocketEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpServerSocketEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TcpSocket.rs b/crates/web-sys/src/features/gen_TcpSocket.rs index 3631e805b75..44cc149e7eb 100644 --- a/crates/web-sys/src/features/gen_TcpSocket.rs +++ b/crates/web-sys/src/features/gen_TcpSocket.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TCPSocket , typescript_type = "TCPSocket")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "TCPSocket", + typescript_type = "TCPSocket" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocket` class."] #[doc = ""] @@ -11,28 +16,34 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub type TcpSocket; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = host)] + #[wasm_bindgen(structural, method, getter, js_class = "TCPSocket", 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/TCPSocket/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn host(this: &TcpSocket) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = port)] + #[wasm_bindgen(structural, method, getter, js_class = "TCPSocket", 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/TCPSocket/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn port(this: &TcpSocket) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = ssl)] + #[wasm_bindgen(structural, method, getter, js_class = "TCPSocket", js_name = "ssl")] #[doc = "Getter for the `ssl` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ssl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn ssl(this: &TcpSocket) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = bufferedAmount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocket", + js_name = "bufferedAmount" + )] #[doc = "Getter for the `bufferedAmount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/bufferedAmount)"] @@ -40,7 +51,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn buffered_amount(this: &TcpSocket) -> f64; #[cfg(feature = "TcpReadyState")] - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocket", + 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/TCPSocket/readyState)"] @@ -48,77 +65,119 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TcpReadyState`, `TcpSocket`*"] pub fn ready_state(this: &TcpSocket) -> TcpReadyState; #[cfg(feature = "TcpSocketBinaryType")] - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = binaryType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocket", + js_name = "binaryType" + )] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`, `TcpSocketBinaryType`*"] pub fn binary_type(this: &TcpSocket) -> TcpSocketBinaryType; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = onopen)] + #[wasm_bindgen(structural, method, getter, js_class = "TCPSocket", js_name = "onopen")] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn onopen(this: &TcpSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = onopen)] + #[wasm_bindgen(structural, method, setter, js_class = "TCPSocket", js_name = "onopen")] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_onopen(this: &TcpSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = ondrain)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocket", + js_name = "ondrain" + )] #[doc = "Getter for the `ondrain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondrain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn ondrain(this: &TcpSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = ondrain)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TCPSocket", + js_name = "ondrain" + )] #[doc = "Setter for the `ondrain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondrain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_ondrain(this: &TcpSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = ondata)] + #[wasm_bindgen(structural, method, getter, js_class = "TCPSocket", js_name = "ondata")] #[doc = "Getter for the `ondata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn ondata(this: &TcpSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = ondata)] + #[wasm_bindgen(structural, method, setter, js_class = "TCPSocket", js_name = "ondata")] #[doc = "Setter for the `ondata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_ondata(this: &TcpSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocket", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn onerror(this: &TcpSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TCPSocket", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_onerror(this: &TcpSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocket", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn onclose(this: &TcpSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TCPSocket", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onclose)"] @@ -144,28 +203,28 @@ extern "C" { port: u16, options: &SocketOptions, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "TCPSocket" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "TCPSocket", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn close(this: &TcpSocket); - # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = resume)] + #[wasm_bindgen(catch, method, structural, js_class = "TCPSocket", js_name = "resume")] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn resume(this: &TcpSocket) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "TCPSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn send_with_str(this: &TcpSocket, data: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "TCPSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] @@ -175,7 +234,7 @@ extern "C" { this: &TcpSocket, data: &::js_sys::ArrayBuffer, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "TCPSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] @@ -186,7 +245,7 @@ extern "C" { data: &::js_sys::ArrayBuffer, byte_offset: u32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "TCPSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] @@ -198,14 +257,20 @@ extern "C" { byte_offset: u32, byte_length: u32, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "TCPSocket" , js_name = suspend)] + #[wasm_bindgen(method, structural, js_class = "TCPSocket", js_name = "suspend")] #[doc = "The `suspend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/suspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn suspend(this: &TcpSocket); - # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = upgradeToSecure)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TCPSocket", + js_name = "upgradeToSecure" + )] #[doc = "The `upgradeToSecure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/upgradeToSecure)"] diff --git a/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs b/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs index a2d1daf93c8..d481b0460f5 100644 --- a/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs +++ b/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TCPSocketErrorEvent , typescript_type = "TCPSocketErrorEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "TCPSocketErrorEvent", + typescript_type = "TCPSocketErrorEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketErrorEvent` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] pub type TcpSocketErrorEvent; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocketErrorEvent", + 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/TCPSocketErrorEvent/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] pub fn name(this: &TcpSocketErrorEvent) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = message)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs b/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs index cfe92df2e8d..b07a65055a2 100644 --- a/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TCPSocketErrorEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TCPSocketErrorEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketErrorEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TcpSocketEvent.rs b/crates/web-sys/src/features/gen_TcpSocketEvent.rs index 37623fb3b0b..408c289b59d 100644 --- a/crates/web-sys/src/features/gen_TcpSocketEvent.rs +++ b/crates/web-sys/src/features/gen_TcpSocketEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TCPSocketEvent , typescript_type = "TCPSocketEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "TCPSocketEvent", + typescript_type = "TCPSocketEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`*"] pub type TcpSocketEvent; - # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketEvent" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TCPSocketEvent", + 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/TCPSocketEvent/data)"] diff --git a/crates/web-sys/src/features/gen_TcpSocketEventInit.rs b/crates/web-sys/src/features/gen_TcpSocketEventInit.rs index e62fe981b7a..f411b5900ef 100644 --- a/crates/web-sys/src/features/gen_TcpSocketEventInit.rs +++ b/crates/web-sys/src/features/gen_TcpSocketEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TCPSocketEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TCPSocketEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Text.rs b/crates/web-sys/src/features/gen_Text.rs index 12d84e1fdd5..c6a7372ff17 100644 --- a/crates/web-sys/src/features/gen_Text.rs +++ b/crates/web-sys/src/features/gen_Text.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Text , typescript_type = "Text")] + #[wasm_bindgen( + extends = "CharacterData", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Text", + typescript_type = "Text" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Text` class."] #[doc = ""] @@ -11,7 +18,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub type Text; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Text" , js_name = wholeText)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Text", + js_name = "wholeText" + )] #[doc = "Getter for the `wholeText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText)"] @@ -19,7 +33,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn whole_text(this: &Text) -> Result; #[cfg(feature = "HtmlSlotElement")] - # [wasm_bindgen (structural , method , getter , js_class = "Text" , js_name = assignedSlot)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Text", + js_name = "assignedSlot" + )] #[doc = "Getter for the `assignedSlot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot)"] @@ -40,7 +60,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn new_with_data(data: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = splitText)] + #[wasm_bindgen(catch, method, structural, js_class = "Text", js_name = "splitText")] #[doc = "The `splitText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/splitText)"] @@ -48,7 +68,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn split_text(this: &Text, offset: u32) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] @@ -60,7 +86,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] @@ -72,7 +104,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomPoint", feature = "DomPointInit",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] @@ -88,7 +126,13 @@ extern "C" { feature = "DomPoint", feature = "DomPointInit", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] @@ -106,7 +150,13 @@ extern "C" { feature = "DomPointInit", feature = "Element", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] @@ -124,7 +174,13 @@ extern "C" { feature = "DomPoint", feature = "DomPointInit", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertPointFromNode" + )] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] @@ -137,7 +193,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(feature = "DomQuad")] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] @@ -149,7 +211,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] @@ -161,7 +229,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] @@ -173,7 +247,13 @@ extern "C" { from: &Document, ) -> Result; #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] @@ -190,7 +270,13 @@ extern "C" { feature = "DomQuad", feature = "Element", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] @@ -207,7 +293,13 @@ extern "C" { feature = "Document", feature = "DomQuad", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertQuadFromNode" + )] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] @@ -220,7 +312,13 @@ extern "C" { options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] @@ -232,7 +330,13 @@ extern "C" { from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] @@ -244,7 +348,13 @@ extern "C" { from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly",))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] @@ -260,7 +370,13 @@ extern "C" { feature = "DomQuad", feature = "DomRectReadOnly", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] @@ -278,7 +394,13 @@ extern "C" { feature = "DomRectReadOnly", feature = "Element", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] @@ -296,7 +418,13 @@ extern "C" { feature = "DomQuad", feature = "DomRectReadOnly", ))] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Text", + js_name = "convertRectFromNode" + )] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] @@ -308,7 +436,7 @@ extern "C" { from: &Document, options: &ConvertCoordinateOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = getBoxQuads)] + #[wasm_bindgen(catch, method, structural, js_class = "Text", js_name = "getBoxQuads")] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/getBoxQuads)"] @@ -316,7 +444,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn get_box_quads(this: &Text) -> Result<::js_sys::Array, JsValue>; #[cfg(feature = "BoxQuadOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = getBoxQuads)] + #[wasm_bindgen(catch, method, structural, js_class = "Text", js_name = "getBoxQuads")] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/getBoxQuads)"] diff --git a/crates/web-sys/src/features/gen_TextDecodeOptions.rs b/crates/web-sys/src/features/gen_TextDecodeOptions.rs index 65277eeba99..6c22bc6bebd 100644 --- a/crates/web-sys/src/features/gen_TextDecodeOptions.rs +++ b/crates/web-sys/src/features/gen_TextDecodeOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextDecodeOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TextDecodeOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextDecodeOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TextDecoder.rs b/crates/web-sys/src/features/gen_TextDecoder.rs index 7eb50d27746..644fa9fc77d 100644 --- a/crates/web-sys/src/features/gen_TextDecoder.rs +++ b/crates/web-sys/src/features/gen_TextDecoder.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextDecoder , typescript_type = "TextDecoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TextDecoder", + typescript_type = "TextDecoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextDecoder` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub type TextDecoder; - # [wasm_bindgen (structural , method , getter , js_class = "TextDecoder" , js_name = encoding)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextDecoder", + js_name = "encoding" + )] #[doc = "Getter for the `encoding` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "TextDecoder" , js_name = fatal)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextDecoder", + js_name = "fatal" + )] #[doc = "Getter for the `fatal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/fatal)"] @@ -50,14 +66,26 @@ extern "C" { label: &str, options: &TextDecoderOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] + #[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(this: &TextDecoder) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] + #[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)"] @@ -67,7 +95,13 @@ extern "C" { this: &TextDecoder, input: &::js_sys::Object, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] + #[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)"] @@ -75,7 +109,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn decode_with_u8_array(this: &TextDecoder, input: &mut [u8]) -> Result; #[cfg(feature = "TextDecodeOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] + #[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)"] @@ -87,7 +127,13 @@ extern "C" { options: &TextDecodeOptions, ) -> Result; #[cfg(feature = "TextDecodeOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_TextDecoderOptions.rs b/crates/web-sys/src/features/gen_TextDecoderOptions.rs index 7a89d6b0466..4b74b9a1860 100644 --- a/crates/web-sys/src/features/gen_TextDecoderOptions.rs +++ b/crates/web-sys/src/features/gen_TextDecoderOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextDecoderOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TextDecoderOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextDecoderOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TextEncoder.rs b/crates/web-sys/src/features/gen_TextEncoder.rs index efaea87bd8b..0734271b100 100644 --- a/crates/web-sys/src/features/gen_TextEncoder.rs +++ b/crates/web-sys/src/features/gen_TextEncoder.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextEncoder , typescript_type = "TextEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TextEncoder", + typescript_type = "TextEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextEncoder` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub type TextEncoder; - # [wasm_bindgen (structural , method , getter , js_class = "TextEncoder" , js_name = encoding)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextEncoder", + js_name = "encoding" + )] #[doc = "Getter for the `encoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding)"] @@ -25,14 +35,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub fn new() -> Result; - # [wasm_bindgen (method , structural , js_class = "TextEncoder" , js_name = encode)] + #[wasm_bindgen(method, structural, js_class = "TextEncoder", js_name = "encode")] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub fn encode(this: &TextEncoder) -> Vec; - # [wasm_bindgen (method , structural , js_class = "TextEncoder" , js_name = encode)] + #[wasm_bindgen(method, structural, js_class = "TextEncoder", js_name = "encode")] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encode)"] diff --git a/crates/web-sys/src/features/gen_TextMetrics.rs b/crates/web-sys/src/features/gen_TextMetrics.rs index fe71817e63f..8c88b56a48d 100644 --- a/crates/web-sys/src/features/gen_TextMetrics.rs +++ b/crates/web-sys/src/features/gen_TextMetrics.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextMetrics , typescript_type = "TextMetrics")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TextMetrics", + typescript_type = "TextMetrics" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextMetrics` class."] #[doc = ""] @@ -11,49 +15,91 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub type TextMetrics; - # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = width)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextMetrics", + js_name = "width" + )] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn width(this: &TextMetrics) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxLeft)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextMetrics", + js_name = "actualBoundingBoxLeft" + )] #[doc = "Getter for the `actualBoundingBoxLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn actual_bounding_box_left(this: &TextMetrics) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxRight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextMetrics", + js_name = "actualBoundingBoxRight" + )] #[doc = "Getter for the `actualBoundingBoxRight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxRight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn actual_bounding_box_right(this: &TextMetrics) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = fontBoundingBoxAscent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextMetrics", + js_name = "fontBoundingBoxAscent" + )] #[doc = "Getter for the `fontBoundingBoxAscent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/fontBoundingBoxAscent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn font_bounding_box_ascent(this: &TextMetrics) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = fontBoundingBoxDescent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextMetrics", + js_name = "fontBoundingBoxDescent" + )] #[doc = "Getter for the `fontBoundingBoxDescent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/fontBoundingBoxDescent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn font_bounding_box_descent(this: &TextMetrics) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxAscent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextMetrics", + js_name = "actualBoundingBoxAscent" + )] #[doc = "Getter for the `actualBoundingBoxAscent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxAscent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn actual_bounding_box_ascent(this: &TextMetrics) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxDescent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextMetrics", + js_name = "actualBoundingBoxDescent" + )] #[doc = "Getter for the `actualBoundingBoxDescent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxDescent)"] diff --git a/crates/web-sys/src/features/gen_TextTrack.rs b/crates/web-sys/src/features/gen_TextTrack.rs index 9e3f5be748f..74dd4a85199 100644 --- a/crates/web-sys/src/features/gen_TextTrack.rs +++ b/crates/web-sys/src/features/gen_TextTrack.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrack , typescript_type = "TextTrack")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "TextTrack", + typescript_type = "TextTrack" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrack` class."] #[doc = ""] @@ -12,35 +17,47 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub type TextTrack; #[cfg(feature = "TextTrackKind")] - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = kind)] + #[wasm_bindgen(structural, method, getter, js_class = "TextTrack", 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/TextTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackKind`*"] pub fn kind(this: &TextTrack) -> TextTrackKind; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = label)] + #[wasm_bindgen(structural, method, getter, js_class = "TextTrack", 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/TextTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn label(this: &TextTrack) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = language)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = id)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = inBandMetadataTrackDispatchType)] + #[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)"] @@ -48,7 +65,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn in_band_metadata_track_dispatch_type(this: &TextTrack) -> String; #[cfg(feature = "TextTrackMode")] - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = mode)] + #[wasm_bindgen(structural, method, getter, js_class = "TextTrack", js_name = "mode")] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"] @@ -56,7 +73,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"] pub fn mode(this: &TextTrack) -> TextTrackMode; #[cfg(feature = "TextTrackMode")] - # [wasm_bindgen (structural , method , setter , js_class = "TextTrack" , js_name = mode)] + #[wasm_bindgen(structural, method, setter, js_class = "TextTrack", js_name = "mode")] #[doc = "Setter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"] @@ -64,7 +81,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"] pub fn set_mode(this: &TextTrack, value: TextTrackMode); #[cfg(feature = "TextTrackCueList")] - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = cues)] + #[wasm_bindgen(structural, method, getter, js_class = "TextTrack", js_name = "cues")] #[doc = "Getter for the `cues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/cues)"] @@ -72,21 +89,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"] pub fn cues(this: &TextTrack) -> Option; #[cfg(feature = "TextTrackCueList")] - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = activeCues)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrack", + js_name = "activeCues" + )] #[doc = "Getter for the `activeCues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/activeCues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"] pub fn active_cues(this: &TextTrack) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = oncuechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrack", + js_name = "oncuechange" + )] #[doc = "Getter for the `oncuechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn oncuechange(this: &TextTrack) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrack" , js_name = oncuechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrack", + js_name = "oncuechange" + )] #[doc = "Setter for the `oncuechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"] @@ -94,7 +129,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn set_oncuechange(this: &TextTrack, value: Option<&::js_sys::Function>); #[cfg(feature = "SourceBuffer")] - # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = sourceBuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrack", + js_name = "sourceBuffer" + )] #[doc = "Getter for the `sourceBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/sourceBuffer)"] @@ -102,7 +143,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TextTrack`*"] pub fn source_buffer(this: &TextTrack) -> Option; #[cfg(feature = "VttCue")] - # [wasm_bindgen (method , structural , js_class = "TextTrack" , js_name = addCue)] + #[wasm_bindgen(method, structural, js_class = "TextTrack", js_name = "addCue")] #[doc = "The `addCue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/addCue)"] @@ -110,7 +151,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `VttCue`*"] pub fn add_cue(this: &TextTrack, cue: &VttCue); #[cfg(feature = "VttCue")] - # [wasm_bindgen (catch , method , structural , js_class = "TextTrack" , js_name = removeCue)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TextTrack", + js_name = "removeCue" + )] #[doc = "The `removeCue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/removeCue)"] diff --git a/crates/web-sys/src/features/gen_TextTrackCue.rs b/crates/web-sys/src/features/gen_TextTrackCue.rs index c73dfaaf16b..57b890c475b 100644 --- a/crates/web-sys/src/features/gen_TextTrackCue.rs +++ b/crates/web-sys/src/features/gen_TextTrackCue.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackCue , typescript_type = "TextTrackCue")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "TextTrackCue", + typescript_type = "TextTrackCue" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrackCue` class."] #[doc = ""] @@ -12,91 +17,157 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub type TextTrackCue; #[cfg(feature = "TextTrack")] - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = track)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackCue", + js_name = "track" + )] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCue`*"] pub fn track(this: &TextTrackCue) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "TextTrackCue", 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/TextTrackCue/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn id(this: &TextTrackCue) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = id)] + #[wasm_bindgen(structural, method, setter, js_class = "TextTrackCue", js_name = "id")] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[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 set_id(this: &TextTrackCue, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = startTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackCue", + js_name = "startTime" + )] #[doc = "Getter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn start_time(this: &TextTrackCue) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = startTime)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackCue", + js_name = "startTime" + )] #[doc = "Setter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_start_time(this: &TextTrackCue, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = endTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackCue", + js_name = "endTime" + )] #[doc = "Getter for the `endTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn end_time(this: &TextTrackCue) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = endTime)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackCue", + js_name = "endTime" + )] #[doc = "Setter for the `endTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_end_time(this: &TextTrackCue, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = pauseOnExit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackCue", + js_name = "pauseOnExit" + )] #[doc = "Getter for the `pauseOnExit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn pause_on_exit(this: &TextTrackCue) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = pauseOnExit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackCue", + js_name = "pauseOnExit" + )] #[doc = "Setter for the `pauseOnExit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_pause_on_exit(this: &TextTrackCue, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = onenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackCue", + js_name = "onenter" + )] #[doc = "Getter for the `onenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn onenter(this: &TextTrackCue) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = onenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackCue", + js_name = "onenter" + )] #[doc = "Setter for the `onenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_onenter(this: &TextTrackCue, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = onexit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackCue", + js_name = "onexit" + )] #[doc = "Getter for the `onexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn onexit(this: &TextTrackCue) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = onexit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackCue", + js_name = "onexit" + )] #[doc = "Setter for the `onexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"] diff --git a/crates/web-sys/src/features/gen_TextTrackCueList.rs b/crates/web-sys/src/features/gen_TextTrackCueList.rs index 82e46863ad6..a7a1dc36087 100644 --- a/crates/web-sys/src/features/gen_TextTrackCueList.rs +++ b/crates/web-sys/src/features/gen_TextTrackCueList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextTrackCueList , typescript_type = "TextTrackCueList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TextTrackCueList", + typescript_type = "TextTrackCueList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrackCueList` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"] pub type TextTrackCueList; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCueList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackCueList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/length)"] @@ -19,7 +29,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"] pub fn length(this: &TextTrackCueList) -> u32; #[cfg(feature = "VttCue")] - # [wasm_bindgen (method , structural , js_class = "TextTrackCueList" , js_name = getCueById)] + #[wasm_bindgen( + method, + structural, + js_class = "TextTrackCueList", + js_name = "getCueById" + )] #[doc = "The `getCueById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/getCueById)"] diff --git a/crates/web-sys/src/features/gen_TextTrackList.rs b/crates/web-sys/src/features/gen_TextTrackList.rs index d3f55a1ed39..cce1aa324f8 100644 --- a/crates/web-sys/src/features/gen_TextTrackList.rs +++ b/crates/web-sys/src/features/gen_TextTrackList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackList , typescript_type = "TextTrackList")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "TextTrackList", + typescript_type = "TextTrackList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrackList` class."] #[doc = ""] @@ -11,49 +16,91 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub type TextTrackList; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn length(this: &TextTrackList) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackList", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn onchange(this: &TextTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackList", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn set_onchange(this: &TextTrackList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackList", + js_name = "onaddtrack" + )] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn onaddtrack(this: &TextTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackList", + js_name = "onaddtrack" + )] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn set_onaddtrack(this: &TextTrackList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TextTrackList", + js_name = "onremovetrack" + )] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn onremovetrack(this: &TextTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TextTrackList", + js_name = "onremovetrack" + )] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"] @@ -61,7 +108,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn set_onremovetrack(this: &TextTrackList, value: Option<&::js_sys::Function>); #[cfg(feature = "TextTrack")] - # [wasm_bindgen (method , structural , js_class = "TextTrackList" , js_name = getTrackById)] + #[wasm_bindgen( + method, + structural, + js_class = "TextTrackList", + js_name = "getTrackById" + )] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/getTrackById)"] diff --git a/crates/web-sys/src/features/gen_TimeEvent.rs b/crates/web-sys/src/features/gen_TimeEvent.rs index bf89b71aafa..367e16a73b3 100644 --- a/crates/web-sys/src/features/gen_TimeEvent.rs +++ b/crates/web-sys/src/features/gen_TimeEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TimeEvent , typescript_type = "TimeEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "TimeEvent", + typescript_type = "TimeEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TimeEvent` class."] #[doc = ""] @@ -11,7 +16,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] pub type TimeEvent; - # [wasm_bindgen (structural , method , getter , js_class = "TimeEvent" , js_name = detail)] + #[wasm_bindgen(structural, method, getter, js_class = "TimeEvent", js_name = "detail")] #[doc = "Getter for the `detail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/detail)"] @@ -19,14 +24,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] pub fn detail(this: &TimeEvent) -> i32; #[cfg(feature = "Window")] - # [wasm_bindgen (structural , method , getter , js_class = "TimeEvent" , js_name = view)] + #[wasm_bindgen(structural, method, getter, js_class = "TimeEvent", js_name = "view")] #[doc = "Getter for the `view` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/view)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] pub fn view(this: &TimeEvent) -> Option; - # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)] + #[wasm_bindgen(method, structural, js_class = "TimeEvent", js_name = "initTimeEvent")] #[doc = "The `initTimeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] @@ -34,7 +39,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] pub fn init_time_event(this: &TimeEvent, a_type: &str); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)] + #[wasm_bindgen(method, structural, js_class = "TimeEvent", js_name = "initTimeEvent")] #[doc = "The `initTimeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] @@ -42,7 +47,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] pub fn init_time_event_with_a_view(this: &TimeEvent, a_type: &str, a_view: Option<&Window>); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)] + #[wasm_bindgen(method, structural, js_class = "TimeEvent", js_name = "initTimeEvent")] #[doc = "The `initTimeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] diff --git a/crates/web-sys/src/features/gen_TimeRanges.rs b/crates/web-sys/src/features/gen_TimeRanges.rs index 96e3077e919..a49fe750b8e 100644 --- a/crates/web-sys/src/features/gen_TimeRanges.rs +++ b/crates/web-sys/src/features/gen_TimeRanges.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TimeRanges , typescript_type = "TimeRanges")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TimeRanges", + typescript_type = "TimeRanges" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TimeRanges` class."] #[doc = ""] @@ -11,21 +15,27 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] pub type TimeRanges; - # [wasm_bindgen (structural , method , getter , js_class = "TimeRanges" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TimeRanges", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] pub fn length(this: &TimeRanges) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "TimeRanges" , js_name = end)] + #[wasm_bindgen(catch, method, structural, js_class = "TimeRanges", js_name = "end")] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/end)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] pub fn end(this: &TimeRanges, index: u32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TimeRanges" , js_name = start)] + #[wasm_bindgen(catch, method, structural, js_class = "TimeRanges", js_name = "start")] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/start)"] diff --git a/crates/web-sys/src/features/gen_Touch.rs b/crates/web-sys/src/features/gen_Touch.rs index 2f364edc0a5..b080d7fc449 100644 --- a/crates/web-sys/src/features/gen_Touch.rs +++ b/crates/web-sys/src/features/gen_Touch.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Touch , typescript_type = "Touch")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Touch", + typescript_type = "Touch" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Touch` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub type Touch; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = identifier)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "identifier")] #[doc = "Getter for the `identifier` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/identifier)"] @@ -19,77 +23,83 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn identifier(this: &Touch) -> i32; #[cfg(feature = "EventTarget")] - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = target)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "target")] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `Touch`*"] pub fn target(this: &Touch) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = screenX)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "screenX")] #[doc = "Getter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn screen_x(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = screenY)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "screenY")] #[doc = "Getter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn screen_y(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = clientX)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "clientX")] #[doc = "Getter for the `clientX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn client_x(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = clientY)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "clientY")] #[doc = "Getter for the `clientY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn client_y(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = pageX)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "pageX")] #[doc = "Getter for the `pageX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn page_x(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = pageY)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "pageY")] #[doc = "Getter for the `pageY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn page_y(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = radiusX)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "radiusX")] #[doc = "Getter for the `radiusX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn radius_x(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = radiusY)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "radiusY")] #[doc = "Getter for the `radiusY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn radius_y(this: &Touch) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = rotationAngle)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Touch", + js_name = "rotationAngle" + )] #[doc = "Getter for the `rotationAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn rotation_angle(this: &Touch) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = force)] + #[wasm_bindgen(structural, method, getter, js_class = "Touch", js_name = "force")] #[doc = "Getter for the `force` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/force)"] diff --git a/crates/web-sys/src/features/gen_TouchEvent.rs b/crates/web-sys/src/features/gen_TouchEvent.rs index 55f2174aab5..3919c8fb5c3 100644 --- a/crates/web-sys/src/features/gen_TouchEvent.rs +++ b/crates/web-sys/src/features/gen_TouchEvent.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = TouchEvent , typescript_type = "TouchEvent")] + #[wasm_bindgen( + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "TouchEvent", + typescript_type = "TouchEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchEvent` class."] #[doc = ""] @@ -12,7 +18,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub type TouchEvent; #[cfg(feature = "TouchList")] - # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = touches)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TouchEvent", + js_name = "touches" + )] #[doc = "Getter for the `touches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/touches)"] @@ -20,7 +32,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] pub fn touches(this: &TouchEvent) -> TouchList; #[cfg(feature = "TouchList")] - # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = targetTouches)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TouchEvent", + js_name = "targetTouches" + )] #[doc = "Getter for the `targetTouches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/targetTouches)"] @@ -28,35 +46,65 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] pub fn target_touches(this: &TouchEvent) -> TouchList; #[cfg(feature = "TouchList")] - # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = changedTouches)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TouchEvent", + js_name = "changedTouches" + )] #[doc = "Getter for the `changedTouches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/changedTouches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] pub fn changed_touches(this: &TouchEvent) -> TouchList; - # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = altKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TouchEvent", + js_name = "altKey" + )] #[doc = "Getter for the `altKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/altKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn alt_key(this: &TouchEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = metaKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TouchEvent", + js_name = "metaKey" + )] #[doc = "Getter for the `metaKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/metaKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn meta_key(this: &TouchEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = ctrlKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TouchEvent", + js_name = "ctrlKey" + )] #[doc = "Getter for the `ctrlKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/ctrlKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn ctrl_key(this: &TouchEvent) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = shiftKey)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TouchEvent", + js_name = "shiftKey" + )] #[doc = "Getter for the `shiftKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/shiftKey)"] @@ -81,21 +129,36 @@ extern "C" { type_: &str, event_init_dict: &TouchEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn init_touch_event(this: &TouchEvent, type_: &str); - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn init_touch_event_with_can_bubble(this: &TouchEvent, type_: &str, can_bubble: bool); - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -108,7 +171,12 @@ extern "C" { cancelable: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -122,7 +190,12 @@ extern "C" { view: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -137,7 +210,12 @@ extern "C" { detail: i32, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -153,7 +231,12 @@ extern "C" { ctrl_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -170,7 +253,12 @@ extern "C" { alt_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -188,7 +276,12 @@ extern "C" { shift_key: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -207,7 +300,12 @@ extern "C" { meta_key: bool, ); #[cfg(all(feature = "TouchList", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -227,7 +325,12 @@ extern "C" { touches: Option<&TouchList>, ); #[cfg(all(feature = "TouchList", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] @@ -248,7 +351,12 @@ extern "C" { target_touches: Option<&TouchList>, ); #[cfg(all(feature = "TouchList", feature = "Window",))] - # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "TouchEvent", + js_name = "initTouchEvent" + )] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] diff --git a/crates/web-sys/src/features/gen_TouchEventInit.rs b/crates/web-sys/src/features/gen_TouchEventInit.rs index 4923124ecff..c06624a97f5 100644 --- a/crates/web-sys/src/features/gen_TouchEventInit.rs +++ b/crates/web-sys/src/features/gen_TouchEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TouchEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TouchEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TouchInit.rs b/crates/web-sys/src/features/gen_TouchInit.rs index b64ce7a77dc..827fd68717c 100644 --- a/crates/web-sys/src/features/gen_TouchInit.rs +++ b/crates/web-sys/src/features/gen_TouchInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TouchInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TouchInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TouchList.rs b/crates/web-sys/src/features/gen_TouchList.rs index a4415d9eb0f..eb5a05de242 100644 --- a/crates/web-sys/src/features/gen_TouchList.rs +++ b/crates/web-sys/src/features/gen_TouchList.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TouchList , typescript_type = "TouchList")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TouchList", + typescript_type = "TouchList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchList` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchList`*"] pub type TouchList; - # [wasm_bindgen (structural , method , getter , js_class = "TouchList" , js_name = length)] + #[wasm_bindgen(structural, method, getter, js_class = "TouchList", js_name = "length")] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length)"] @@ -19,7 +23,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TouchList`*"] pub fn length(this: &TouchList) -> u32; #[cfg(feature = "Touch")] - # [wasm_bindgen (method , structural , js_class = "TouchList" , js_name = item)] + #[wasm_bindgen(method, structural, js_class = "TouchList", js_name = "item")] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList/item)"] diff --git a/crates/web-sys/src/features/gen_TrackEvent.rs b/crates/web-sys/src/features/gen_TrackEvent.rs index 2325cb3dfcf..2f7c0779ab7 100644 --- a/crates/web-sys/src/features/gen_TrackEvent.rs +++ b/crates/web-sys/src/features/gen_TrackEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TrackEvent , typescript_type = "TrackEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "TrackEvent", + typescript_type = "TrackEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TrackEvent` class."] #[doc = ""] @@ -11,7 +16,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEvent`*"] pub type TrackEvent; - # [wasm_bindgen (structural , method , getter , js_class = "TrackEvent" , js_name = track)] + #[wasm_bindgen(structural, method, getter, js_class = "TrackEvent", js_name = "track")] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/track)"] diff --git a/crates/web-sys/src/features/gen_TrackEventInit.rs b/crates/web-sys/src/features/gen_TrackEventInit.rs index 48a91359b62..3e861e0e5f9 100644 --- a/crates/web-sys/src/features/gen_TrackEventInit.rs +++ b/crates/web-sys/src/features/gen_TrackEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TrackEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TrackEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TrackEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TransformStream.rs b/crates/web-sys/src/features/gen_TransformStream.rs index d2a041a700c..8d5920d25d7 100644 --- a/crates/web-sys/src/features/gen_TransformStream.rs +++ b/crates/web-sys/src/features/gen_TransformStream.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TransformStream , typescript_type = "TransformStream")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TransformStream", + typescript_type = "TransformStream" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TransformStream` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type TransformStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "TransformStream" , js_name = readable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TransformStream", + js_name = "readable" + )] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/readable)"] @@ -29,7 +39,13 @@ extern "C" { pub fn readable(this: &TransformStream) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "TransformStream" , js_name = writable)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TransformStream", + js_name = "writable" + )] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/writable)"] diff --git a/crates/web-sys/src/features/gen_TransitionEvent.rs b/crates/web-sys/src/features/gen_TransitionEvent.rs index c6c98bb93f2..4316dd66102 100644 --- a/crates/web-sys/src/features/gen_TransitionEvent.rs +++ b/crates/web-sys/src/features/gen_TransitionEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TransitionEvent , typescript_type = "TransitionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "TransitionEvent", + typescript_type = "TransitionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TransitionEvent` class."] #[doc = ""] @@ -11,21 +16,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] pub type TransitionEvent; - # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = propertyName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TransitionEvent", + js_name = "propertyName" + )] #[doc = "Getter for the `propertyName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = elapsedTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TransitionEvent", + js_name = "elapsedTime" + )] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/elapsedTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] pub fn elapsed_time(this: &TransitionEvent) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = pseudoElement)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TransitionEvent", + js_name = "pseudoElement" + )] #[doc = "Getter for the `pseudoElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/pseudoElement)"] diff --git a/crates/web-sys/src/features/gen_TransitionEventInit.rs b/crates/web-sys/src/features/gen_TransitionEventInit.rs index 1681b9c1b74..0586eadd98c 100644 --- a/crates/web-sys/src/features/gen_TransitionEventInit.rs +++ b/crates/web-sys/src/features/gen_TransitionEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TransitionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TransitionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TransitionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TreeBoxObject.rs b/crates/web-sys/src/features/gen_TreeBoxObject.rs index 74e6b3e6fce..60b7d27e28c 100644 --- a/crates/web-sys/src/features/gen_TreeBoxObject.rs +++ b/crates/web-sys/src/features/gen_TreeBoxObject.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = TreeBoxObject , typescript_type = "TreeBoxObject")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "TreeBoxObject" , typescript_type = "TreeBoxObject")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeBoxObject` class."] #[doc = ""] @@ -11,14 +11,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub type TreeBoxObject; - # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = focused)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeBoxObject", + js_name = "focused" + )] #[doc = "Getter for the `focused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn focused(this: &TreeBoxObject) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "TreeBoxObject" , js_name = focused)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TreeBoxObject", + js_name = "focused" + )] #[doc = "Setter for the `focused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"] @@ -26,56 +38,100 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn set_focused(this: &TreeBoxObject, value: bool); #[cfg(feature = "Element")] - # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = treeBody)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeBoxObject", + js_name = "treeBody" + )] #[doc = "Getter for the `treeBody` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/treeBody)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `TreeBoxObject`*"] pub fn tree_body(this: &TreeBoxObject) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = rowHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeBoxObject", + js_name = "rowHeight" + )] #[doc = "Getter for the `rowHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn row_height(this: &TreeBoxObject) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = rowWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeBoxObject", + js_name = "rowWidth" + )] #[doc = "Getter for the `rowWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn row_width(this: &TreeBoxObject) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = horizontalPosition)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeBoxObject", + js_name = "horizontalPosition" + )] #[doc = "Getter for the `horizontalPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/horizontalPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn horizontal_position(this: &TreeBoxObject) -> i32; - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = beginUpdateBatch)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "beginUpdateBatch" + )] #[doc = "The `beginUpdateBatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/beginUpdateBatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn begin_update_batch(this: &TreeBoxObject); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = clearStyleAndImageCaches)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "clearStyleAndImageCaches" + )] #[doc = "The `clearStyleAndImageCaches()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/clearStyleAndImageCaches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn clear_style_and_image_caches(this: &TreeBoxObject); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = endUpdateBatch)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "endUpdateBatch" + )] #[doc = "The `endUpdateBatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/endUpdateBatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn end_update_batch(this: &TreeBoxObject); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = ensureRowIsVisible)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "ensureRowIsVisible" + )] #[doc = "The `ensureRowIsVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/ensureRowIsVisible)"] @@ -83,14 +139,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn ensure_row_is_visible(this: &TreeBoxObject, index: i32); #[cfg(feature = "TreeCellInfo")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeBoxObject", + js_name = "getCellAt" + )] #[doc = "The `getCellAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeCellInfo`*"] pub fn get_cell_at(this: &TreeBoxObject, x: i32, y: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeBoxObject", + js_name = "getCellAt" + )] #[doc = "The `getCellAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"] @@ -104,77 +172,122 @@ extern "C" { column: &::js_sys::Object, child_elt: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getFirstVisibleRow)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "getFirstVisibleRow" + )] #[doc = "The `getFirstVisibleRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getFirstVisibleRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_first_visible_row(this: &TreeBoxObject) -> i32; - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getLastVisibleRow)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "getLastVisibleRow" + )] #[doc = "The `getLastVisibleRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getLastVisibleRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_last_visible_row(this: &TreeBoxObject) -> i32; - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getPageLength)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "getPageLength" + )] #[doc = "The `getPageLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getPageLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_page_length(this: &TreeBoxObject) -> i32; - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getRowAt)] + #[wasm_bindgen(method, structural, js_class = "TreeBoxObject", js_name = "getRowAt")] #[doc = "The `getRowAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getRowAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_row_at(this: &TreeBoxObject, x: i32, y: i32) -> i32; - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidate)] + #[wasm_bindgen(method, structural, js_class = "TreeBoxObject", js_name = "invalidate")] #[doc = "The `invalidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn invalidate(this: &TreeBoxObject); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidateRange)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "invalidateRange" + )] #[doc = "The `invalidateRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn invalidate_range(this: &TreeBoxObject, start_index: i32, end_index: i32); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidateRow)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "invalidateRow" + )] #[doc = "The `invalidateRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn invalidate_row(this: &TreeBoxObject, index: i32); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = rowCountChanged)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "rowCountChanged" + )] #[doc = "The `rowCountChanged()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowCountChanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn row_count_changed(this: &TreeBoxObject, index: i32, count: i32); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollByLines)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "scrollByLines" + )] #[doc = "The `scrollByLines()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn scroll_by_lines(this: &TreeBoxObject, num_lines: i32); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollByPages)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "scrollByPages" + )] #[doc = "The `scrollByPages()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByPages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn scroll_by_pages(this: &TreeBoxObject, num_pages: i32); - # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollToRow)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeBoxObject", + js_name = "scrollToRow" + )] #[doc = "The `scrollToRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollToRow)"] diff --git a/crates/web-sys/src/features/gen_TreeCellInfo.rs b/crates/web-sys/src/features/gen_TreeCellInfo.rs index 9d0794449db..287efe386d6 100644 --- a/crates/web-sys/src/features/gen_TreeCellInfo.rs +++ b/crates/web-sys/src/features/gen_TreeCellInfo.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TreeCellInfo)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "TreeCellInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeCellInfo` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TreeView.rs b/crates/web-sys/src/features/gen_TreeView.rs index 50b334a6bce..0484b2b7769 100644 --- a/crates/web-sys/src/features/gen_TreeView.rs +++ b/crates/web-sys/src/features/gen_TreeView.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = TreeView , typescript_type = "TreeView")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "TreeView" , typescript_type = "TreeView")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeView` class."] #[doc = ""] @@ -11,7 +11,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub type TreeView; - # [wasm_bindgen (structural , method , getter , js_class = "TreeView" , js_name = rowCount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeView", + js_name = "rowCount" + )] #[doc = "Getter for the `rowCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/rowCount)"] @@ -19,7 +25,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn row_count(this: &TreeView) -> i32; #[cfg(feature = "DataTransfer")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = canDrop)] + #[wasm_bindgen(catch, method, structural, js_class = "TreeView", js_name = "canDrop")] #[doc = "The `canDrop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/canDrop)"] @@ -32,7 +38,7 @@ extern "C" { data_transfer: Option<&DataTransfer>, ) -> Result; #[cfg(feature = "DataTransfer")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = drop)] + #[wasm_bindgen(catch, method, structural, js_class = "TreeView", js_name = "drop")] #[doc = "The `drop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/drop)"] @@ -44,84 +50,136 @@ extern "C" { orientation: i32, data_transfer: Option<&DataTransfer>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = getLevel)] + #[wasm_bindgen(catch, method, structural, js_class = "TreeView", js_name = "getLevel")] #[doc = "The `getLevel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getLevel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn get_level(this: &TreeView, row: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = getParentIndex)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "getParentIndex" + )] #[doc = "The `getParentIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getParentIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn get_parent_index(this: &TreeView, row: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = getRowProperties)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "getRowProperties" + )] #[doc = "The `getRowProperties()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = hasNextSibling)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "hasNextSibling" + )] #[doc = "The `hasNextSibling()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/hasNextSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn has_next_sibling(this: &TreeView, row: i32, after_index: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isContainer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "isContainer" + )] #[doc = "The `isContainer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_container(this: &TreeView, row: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isContainerEmpty)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "isContainerEmpty" + )] #[doc = "The `isContainerEmpty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainerEmpty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_container_empty(this: &TreeView, row: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isContainerOpen)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "isContainerOpen" + )] #[doc = "The `isContainerOpen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainerOpen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_container_open(this: &TreeView, row: i32) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isSeparator)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "isSeparator" + )] #[doc = "The `isSeparator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isSeparator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_separator(this: &TreeView, row: i32) -> Result; - # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = isSorted)] + #[wasm_bindgen(method, structural, js_class = "TreeView", js_name = "isSorted")] #[doc = "The `isSorted()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isSorted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_sorted(this: &TreeView) -> bool; - # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = performAction)] + #[wasm_bindgen(method, structural, js_class = "TreeView", js_name = "performAction")] #[doc = "The `performAction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/performAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn perform_action(this: &TreeView, action: &str); - # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = performActionOnRow)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeView", + js_name = "performActionOnRow" + )] #[doc = "The `performActionOnRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/performActionOnRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn perform_action_on_row(this: &TreeView, action: &str, row: i32); - # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = selectionChanged)] + #[wasm_bindgen( + method, + structural, + js_class = "TreeView", + js_name = "selectionChanged" + )] #[doc = "The `selectionChanged()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/selectionChanged)"] @@ -129,14 +187,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn selection_changed(this: &TreeView); #[cfg(feature = "TreeBoxObject")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = setTree)] + #[wasm_bindgen(catch, method, structural, js_class = "TreeView", js_name = "setTree")] #[doc = "The `setTree()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/setTree)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeView`*"] pub fn set_tree(this: &TreeView, tree: Option<&TreeBoxObject>) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = toggleOpenState)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeView", + js_name = "toggleOpenState" + )] #[doc = "The `toggleOpenState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/toggleOpenState)"] diff --git a/crates/web-sys/src/features/gen_TreeWalker.rs b/crates/web-sys/src/features/gen_TreeWalker.rs index 3838270c655..2228303c7c8 100644 --- a/crates/web-sys/src/features/gen_TreeWalker.rs +++ b/crates/web-sys/src/features/gen_TreeWalker.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TreeWalker , typescript_type = "TreeWalker")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "TreeWalker", + typescript_type = "TreeWalker" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeWalker` class."] #[doc = ""] @@ -12,14 +16,20 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"] pub type TreeWalker; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = root)] + #[wasm_bindgen(structural, method, getter, js_class = "TreeWalker", js_name = "root")] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/root)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn root(this: &TreeWalker) -> Node; - # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = whatToShow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeWalker", + js_name = "whatToShow" + )] #[doc = "Getter for the `whatToShow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/whatToShow)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"] pub fn what_to_show(this: &TreeWalker) -> u32; #[cfg(feature = "NodeFilter")] - # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = filter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeWalker", + js_name = "filter" + )] #[doc = "Getter for the `filter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/filter)"] @@ -35,7 +51,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NodeFilter`, `TreeWalker`*"] pub fn filter(this: &TreeWalker) -> Option; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = currentNode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "TreeWalker", + js_name = "currentNode" + )] #[doc = "Getter for the `currentNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"] @@ -43,7 +65,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn current_node(this: &TreeWalker) -> Node; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , setter , js_class = "TreeWalker" , js_name = currentNode)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "TreeWalker", + js_name = "currentNode" + )] #[doc = "Setter for the `currentNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"] @@ -51,7 +79,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn set_current_node(this: &TreeWalker, value: &Node); #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = firstChild)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeWalker", + js_name = "firstChild" + )] #[doc = "The `firstChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/firstChild)"] @@ -59,7 +93,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn first_child(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = lastChild)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeWalker", + js_name = "lastChild" + )] #[doc = "The `lastChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/lastChild)"] @@ -67,7 +107,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn last_child(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = nextNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeWalker", + js_name = "nextNode" + )] #[doc = "The `nextNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextNode)"] @@ -75,7 +121,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn next_node(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = nextSibling)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeWalker", + js_name = "nextSibling" + )] #[doc = "The `nextSibling()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextSibling)"] @@ -83,7 +135,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn next_sibling(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = parentNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeWalker", + js_name = "parentNode" + )] #[doc = "The `parentNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/parentNode)"] @@ -91,7 +149,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn parent_node(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = previousNode)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeWalker", + js_name = "previousNode" + )] #[doc = "The `previousNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousNode)"] @@ -99,7 +163,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn previous_node(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = previousSibling)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "TreeWalker", + js_name = "previousSibling" + )] #[doc = "The `previousSibling()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousSibling)"] diff --git a/crates/web-sys/src/features/gen_U2f.rs b/crates/web-sys/src/features/gen_U2f.rs index 775377d12c2..65f2a79ecbe 100644 --- a/crates/web-sys/src/features/gen_U2f.rs +++ b/crates/web-sys/src/features/gen_U2f.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = U2F , typescript_type = "U2F")] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "U2F", typescript_type = "U2F")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `U2f` class."] #[doc = ""] @@ -11,7 +11,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub type U2f; - # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = register)] + #[wasm_bindgen(catch, method, structural, js_class = "U2F", js_name = "register")] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/register)"] @@ -24,7 +24,7 @@ extern "C" { registered_keys: &::wasm_bindgen::JsValue, callback: &::js_sys::Function, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = register)] + #[wasm_bindgen(catch, method, structural, js_class = "U2F", js_name = "register")] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/register)"] @@ -38,7 +38,7 @@ extern "C" { callback: &::js_sys::Function, opt_timeout_seconds: Option, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = sign)] + #[wasm_bindgen(catch, method, structural, js_class = "U2F", js_name = "sign")] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/sign)"] @@ -51,7 +51,7 @@ extern "C" { registered_keys: &::wasm_bindgen::JsValue, callback: &::js_sys::Function, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = sign)] + #[wasm_bindgen(catch, method, structural, js_class = "U2F", js_name = "sign")] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/sign)"] diff --git a/crates/web-sys/src/features/gen_U2fClientData.rs b/crates/web-sys/src/features/gen_U2fClientData.rs index 2a4de187780..336738e1639 100644 --- a/crates/web-sys/src/features/gen_U2fClientData.rs +++ b/crates/web-sys/src/features/gen_U2fClientData.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = U2FClientData)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "U2FClientData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `U2fClientData` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UdpMessageEventInit.rs b/crates/web-sys/src/features/gen_UdpMessageEventInit.rs index 7ba192b349b..1dbdef6ca8e 100644 --- a/crates/web-sys/src/features/gen_UdpMessageEventInit.rs +++ b/crates/web-sys/src/features/gen_UdpMessageEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UDPMessageEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "UDPMessageEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UdpMessageEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UdpOptions.rs b/crates/web-sys/src/features/gen_UdpOptions.rs index 4ba727c4a9c..b0929444b15 100644 --- a/crates/web-sys/src/features/gen_UdpOptions.rs +++ b/crates/web-sys/src/features/gen_UdpOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UDPOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "UDPOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UdpOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UiEvent.rs b/crates/web-sys/src/features/gen_UiEvent.rs index 5c2120b6c75..7e2e98fec2c 100644 --- a/crates/web-sys/src/features/gen_UiEvent.rs +++ b/crates/web-sys/src/features/gen_UiEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = UIEvent , typescript_type = "UIEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "UIEvent", + typescript_type = "UIEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UiEvent` class."] #[doc = ""] @@ -12,49 +17,49 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub type UiEvent; #[cfg(feature = "Window")] - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = view)] + #[wasm_bindgen(structural, method, getter, js_class = "UIEvent", js_name = "view")] #[doc = "Getter for the `view` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/view)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"] pub fn view(this: &UiEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = detail)] + #[wasm_bindgen(structural, method, getter, js_class = "UIEvent", js_name = "detail")] #[doc = "Getter for the `detail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn detail(this: &UiEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = layerX)] + #[wasm_bindgen(structural, method, getter, js_class = "UIEvent", js_name = "layerX")] #[doc = "Getter for the `layerX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn layer_x(this: &UiEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = layerY)] + #[wasm_bindgen(structural, method, getter, js_class = "UIEvent", js_name = "layerY")] #[doc = "Getter for the `layerY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn layer_y(this: &UiEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = pageX)] + #[wasm_bindgen(structural, method, getter, js_class = "UIEvent", js_name = "pageX")] #[doc = "Getter for the `pageX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn page_x(this: &UiEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = pageY)] + #[wasm_bindgen(structural, method, getter, js_class = "UIEvent", js_name = "pageY")] #[doc = "Getter for the `pageY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn page_y(this: &UiEvent) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = which)] + #[wasm_bindgen(structural, method, getter, js_class = "UIEvent", js_name = "which")] #[doc = "Getter for the `which` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which)"] @@ -62,14 +67,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn which(this: &UiEvent) -> u32; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = rangeParent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "UIEvent", + js_name = "rangeParent" + )] #[doc = "Getter for the `rangeParent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `UiEvent`*"] pub fn range_parent(this: &UiEvent) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = rangeOffset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "UIEvent", + js_name = "rangeOffset" + )] #[doc = "Getter for the `rangeOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeOffset)"] @@ -94,21 +111,21 @@ extern "C" { type_: &str, event_init_dict: &UiEventInit, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] + #[wasm_bindgen(method, structural, js_class = "UIEvent", js_name = "initUIEvent")] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn init_ui_event(this: &UiEvent, a_type: &str); - # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] + #[wasm_bindgen(method, structural, js_class = "UIEvent", js_name = "initUIEvent")] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn init_ui_event_with_a_can_bubble(this: &UiEvent, a_type: &str, a_can_bubble: bool); - # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] + #[wasm_bindgen(method, structural, js_class = "UIEvent", js_name = "initUIEvent")] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] @@ -121,7 +138,7 @@ extern "C" { a_cancelable: bool, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] + #[wasm_bindgen(method, structural, js_class = "UIEvent", js_name = "initUIEvent")] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] @@ -135,7 +152,7 @@ extern "C" { a_view: Option<&Window>, ); #[cfg(feature = "Window")] - # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] + #[wasm_bindgen(method, structural, js_class = "UIEvent", js_name = "initUIEvent")] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] diff --git a/crates/web-sys/src/features/gen_UiEventInit.rs b/crates/web-sys/src/features/gen_UiEventInit.rs index d1449c34e97..05b7274934e 100644 --- a/crates/web-sys/src/features/gen_UiEventInit.rs +++ b/crates/web-sys/src/features/gen_UiEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UIEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "UIEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UiEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Url.rs b/crates/web-sys/src/features/gen_Url.rs index b4ad91dbc24..45364bf78c4 100644 --- a/crates/web-sys/src/features/gen_Url.rs +++ b/crates/web-sys/src/features/gen_Url.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = URL , typescript_type = "URL")] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "URL", typescript_type = "URL")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Url` class."] #[doc = ""] @@ -11,133 +11,133 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub type Url; - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = href)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn href(this: &Url) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = href)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "href")] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[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 set_href(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = origin)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn origin(this: &Url) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = protocol)] + #[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; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = protocol)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "protocol")] #[doc = "Setter 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 set_protocol(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = username)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", js_name = "username")] #[doc = "Getter for the `username` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = username)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "username")] #[doc = "Setter for the `username` field of this object."] #[doc = ""] #[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 set_username(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = password)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", js_name = "password")] #[doc = "Getter for the `password` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = password)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "password")] #[doc = "Setter for the `password` field of this object."] #[doc = ""] #[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 set_password(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = host)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn host(this: &Url) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = host)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "host")] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[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 set_host(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = hostname)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn hostname(this: &Url) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = hostname)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "hostname")] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[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 set_hostname(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = port)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn port(this: &Url) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = port)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "port")] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[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 set_port(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = pathname)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn pathname(this: &Url) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = pathname)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "pathname")] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[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 set_pathname(this: &Url, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = search)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn search(this: &Url) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = search)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "search")] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)"] @@ -145,21 +145,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_search(this: &Url, value: &str); #[cfg(feature = "UrlSearchParams")] - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = searchParams)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", js_name = "searchParams")] #[doc = "Getter for the `searchParams` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`, `UrlSearchParams`*"] pub fn search_params(this: &Url) -> UrlSearchParams; - # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = hash)] + #[wasm_bindgen(structural, method, getter, js_class = "URL", 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/URL/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn hash(this: &Url) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = hash)] + #[wasm_bindgen(structural, method, setter, js_class = "URL", js_name = "hash")] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)"] @@ -181,7 +181,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn new_with_base(url: &str, base: &str) -> Result; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = createObjectURL)] + #[wasm_bindgen( + catch, + static_method_of = "Url", + js_class = "URL", + js_name = "createObjectURL" + )] #[doc = "The `createObjectURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)"] @@ -189,21 +194,31 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Blob`, `Url`*"] pub fn create_object_url_with_blob(blob: &Blob) -> Result; #[cfg(feature = "MediaSource")] - # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = createObjectURL)] + #[wasm_bindgen( + catch, + static_method_of = "Url", + js_class = "URL", + js_name = "createObjectURL" + )] #[doc = "The `createObjectURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `Url`*"] pub fn create_object_url_with_source(source: &MediaSource) -> Result; - # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = revokeObjectURL)] + #[wasm_bindgen( + catch, + static_method_of = "Url", + js_class = "URL", + js_name = "revokeObjectURL" + )] #[doc = "The `revokeObjectURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn revoke_object_url(url: &str) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "URL" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "URL", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/toJSON)"] diff --git a/crates/web-sys/src/features/gen_UrlSearchParams.rs b/crates/web-sys/src/features/gen_UrlSearchParams.rs index 4c4f1e3518e..34ef5189190 100644 --- a/crates/web-sys/src/features/gen_UrlSearchParams.rs +++ b/crates/web-sys/src/features/gen_UrlSearchParams.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = URLSearchParams , typescript_type = "URLSearchParams")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "URLSearchParams", + typescript_type = "URLSearchParams" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UrlSearchParams` class."] #[doc = ""] @@ -34,49 +38,55 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn new_with_str(init: &str) -> Result; - # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = append)] + #[wasm_bindgen(method, structural, js_class = "URLSearchParams", js_name = "append")] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn append(this: &UrlSearchParams, name: &str, value: &str); - # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = delete)] + #[wasm_bindgen(method, structural, js_class = "URLSearchParams", js_name = "delete")] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn delete(this: &UrlSearchParams, name: &str); - # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = get)] + #[wasm_bindgen(method, structural, js_class = "URLSearchParams", js_name = "get")] #[doc = "The `get()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = getAll)] + #[wasm_bindgen(method, structural, js_class = "URLSearchParams", js_name = "getAll")] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn get_all(this: &UrlSearchParams, name: &str) -> ::js_sys::Array; - # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = has)] + #[wasm_bindgen(method, structural, js_class = "URLSearchParams", js_name = "has")] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn has(this: &UrlSearchParams, name: &str) -> bool; - # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = set)] + #[wasm_bindgen(method, structural, js_class = "URLSearchParams", js_name = "set")] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/set)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn set(this: &UrlSearchParams, name: &str, value: &str); - # [wasm_bindgen (catch , method , structural , js_class = "URLSearchParams" , js_name = sort)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "URLSearchParams", + js_name = "sort" + )] #[doc = "The `sort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/sort)"] diff --git a/crates/web-sys/src/features/gen_Usb.rs b/crates/web-sys/src/features/gen_Usb.rs index 3b10babdcbe..7ac389ec708 100644 --- a/crates/web-sys/src/features/gen_Usb.rs +++ b/crates/web-sys/src/features/gen_Usb.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = USB , typescript_type = "USB")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "USB", + typescript_type = "USB" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Usb` class."] #[doc = ""] @@ -16,7 +21,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Usb; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USB" , js_name = onconnect)] + #[wasm_bindgen(structural, method, getter, js_class = "USB", js_name = "onconnect")] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/onconnect)"] @@ -27,7 +32,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onconnect(this: &Usb) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "USB" , js_name = onconnect)] + #[wasm_bindgen(structural, method, setter, js_class = "USB", js_name = "onconnect")] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/onconnect)"] @@ -38,7 +43,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onconnect(this: &Usb, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USB" , js_name = ondisconnect)] + #[wasm_bindgen(structural, method, getter, js_class = "USB", js_name = "ondisconnect")] #[doc = "Getter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/ondisconnect)"] @@ -49,7 +54,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondisconnect(this: &Usb) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "USB" , js_name = ondisconnect)] + #[wasm_bindgen(structural, method, setter, js_class = "USB", js_name = "ondisconnect")] #[doc = "Setter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/ondisconnect)"] @@ -60,7 +65,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondisconnect(this: &Usb, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USB" , js_name = getDevices)] + #[wasm_bindgen(method, structural, js_class = "USB", js_name = "getDevices")] #[doc = "The `getDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/getDevices)"] @@ -72,7 +77,7 @@ extern "C" { pub fn get_devices(this: &Usb) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDeviceRequestOptions")] - # [wasm_bindgen (method , structural , js_class = "USB" , js_name = requestDevice)] + #[wasm_bindgen(method, structural, js_class = "USB", js_name = "requestDevice")] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/requestDevice)"] diff --git a/crates/web-sys/src/features/gen_UsbAlternateInterface.rs b/crates/web-sys/src/features/gen_UsbAlternateInterface.rs index 97d7704f1f5..7e962638981 100644 --- a/crates/web-sys/src/features/gen_UsbAlternateInterface.rs +++ b/crates/web-sys/src/features/gen_UsbAlternateInterface.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBAlternateInterface , typescript_type = "USBAlternateInterface")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBAlternateInterface", + typescript_type = "USBAlternateInterface" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbAlternateInterface` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbAlternateInterface; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = alternateSetting)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBAlternateInterface", + js_name = "alternateSetting" + )] #[doc = "Getter for the `alternateSetting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/alternateSetting)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alternate_setting(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceClass)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBAlternateInterface", + js_name = "interfaceClass" + )] #[doc = "Getter for the `interfaceClass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceClass)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_class(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceSubclass)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBAlternateInterface", + js_name = "interfaceSubclass" + )] #[doc = "Getter for the `interfaceSubclass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceSubclass)"] @@ -49,7 +71,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_subclass(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceProtocol)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBAlternateInterface", + js_name = "interfaceProtocol" + )] #[doc = "Getter for the `interfaceProtocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceProtocol)"] @@ -60,7 +88,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_protocol(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBAlternateInterface", + js_name = "interfaceName" + )] #[doc = "Getter for the `interfaceName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceName)"] @@ -71,7 +105,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = endpoints)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBAlternateInterface", + js_name = "endpoints" + )] #[doc = "Getter for the `endpoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/endpoints)"] diff --git a/crates/web-sys/src/features/gen_UsbConfiguration.rs b/crates/web-sys/src/features/gen_UsbConfiguration.rs index 4f2da9e0b77..ff3f7926077 100644 --- a/crates/web-sys/src/features/gen_UsbConfiguration.rs +++ b/crates/web-sys/src/features/gen_UsbConfiguration.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBConfiguration , typescript_type = "USBConfiguration")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBConfiguration", + typescript_type = "USBConfiguration" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbConfiguration` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbConfiguration; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBConfiguration" , js_name = configurationValue)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBConfiguration", + js_name = "configurationValue" + )] #[doc = "Getter for the `configurationValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration/configurationValue)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configuration_value(this: &UsbConfiguration) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBConfiguration" , js_name = configurationName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBConfiguration", + js_name = "configurationName" + )] #[doc = "Getter for the `configurationName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration/configurationName)"] @@ -38,7 +54,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBConfiguration" , js_name = interfaces)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBConfiguration", + js_name = "interfaces" + )] #[doc = "Getter for the `interfaces` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration/interfaces)"] diff --git a/crates/web-sys/src/features/gen_UsbConnectionEvent.rs b/crates/web-sys/src/features/gen_UsbConnectionEvent.rs index 0881347ce6a..c91a1cf73ab 100644 --- a/crates/web-sys/src/features/gen_UsbConnectionEvent.rs +++ b/crates/web-sys/src/features/gen_UsbConnectionEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = USBConnectionEvent , typescript_type = "USBConnectionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "USBConnectionEvent", + typescript_type = "USBConnectionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbConnectionEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type UsbConnectionEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDevice")] - # [wasm_bindgen (structural , method , getter , js_class = "USBConnectionEvent" , js_name = device)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBConnectionEvent", + js_name = "device" + )] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConnectionEvent/device)"] diff --git a/crates/web-sys/src/features/gen_UsbConnectionEventInit.rs b/crates/web-sys/src/features/gen_UsbConnectionEventInit.rs index d0ed6bf52b6..ada9e500b8b 100644 --- a/crates/web-sys/src/features/gen_UsbConnectionEventInit.rs +++ b/crates/web-sys/src/features/gen_UsbConnectionEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBConnectionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "USBConnectionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbConnectionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UsbControlTransferParameters.rs b/crates/web-sys/src/features/gen_UsbControlTransferParameters.rs index 51c820634c5..598cac95db4 100644 --- a/crates/web-sys/src/features/gen_UsbControlTransferParameters.rs +++ b/crates/web-sys/src/features/gen_UsbControlTransferParameters.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBControlTransferParameters)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "USBControlTransferParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbControlTransferParameters` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UsbDevice.rs b/crates/web-sys/src/features/gen_UsbDevice.rs index 67806114dfb..f8d6718e4f5 100644 --- a/crates/web-sys/src/features/gen_UsbDevice.rs +++ b/crates/web-sys/src/features/gen_UsbDevice.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBDevice , typescript_type = "USBDevice")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBDevice", + typescript_type = "USBDevice" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbDevice` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbDevice; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = usbVersionMajor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "usbVersionMajor" + )] #[doc = "Getter for the `usbVersionMajor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/usbVersionMajor)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb_version_major(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = usbVersionMinor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "usbVersionMinor" + )] #[doc = "Getter for the `usbVersionMinor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/usbVersionMinor)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb_version_minor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = usbVersionSubminor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "usbVersionSubminor" + )] #[doc = "Getter for the `usbVersionSubminor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/usbVersionSubminor)"] @@ -49,7 +71,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb_version_subminor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceClass)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "deviceClass" + )] #[doc = "Getter for the `deviceClass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceClass)"] @@ -60,7 +88,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_class(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceSubclass)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "deviceSubclass" + )] #[doc = "Getter for the `deviceSubclass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceSubclass)"] @@ -71,7 +105,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_subclass(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceProtocol)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "deviceProtocol" + )] #[doc = "Getter for the `deviceProtocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceProtocol)"] @@ -82,7 +122,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_protocol(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = vendorId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "vendorId" + )] #[doc = "Getter for the `vendorId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/vendorId)"] @@ -93,7 +139,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor_id(this: &UsbDevice) -> u16; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = productId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "productId" + )] #[doc = "Getter for the `productId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/productId)"] @@ -104,7 +156,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_id(this: &UsbDevice) -> u16; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceVersionMajor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "deviceVersionMajor" + )] #[doc = "Getter for the `deviceVersionMajor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceVersionMajor)"] @@ -115,7 +173,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_version_major(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceVersionMinor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "deviceVersionMinor" + )] #[doc = "Getter for the `deviceVersionMinor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceVersionMinor)"] @@ -126,7 +190,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_version_minor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceVersionSubminor)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "deviceVersionSubminor" + )] #[doc = "Getter for the `deviceVersionSubminor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceVersionSubminor)"] @@ -137,7 +207,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_version_subminor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = manufacturerName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "manufacturerName" + )] #[doc = "Getter for the `manufacturerName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/manufacturerName)"] @@ -148,7 +224,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = productName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "productName" + )] #[doc = "Getter for the `productName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/productName)"] @@ -159,7 +241,13 @@ extern "C" { #[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; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = serialNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "serialNumber" + )] #[doc = "Getter for the `serialNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/serialNumber)"] @@ -171,7 +259,13 @@ extern "C" { pub fn serial_number(this: &UsbDevice) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbConfiguration")] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = configuration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "configuration" + )] #[doc = "Getter for the `configuration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/configuration)"] @@ -182,7 +276,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configuration(this: &UsbDevice) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = configurations)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBDevice", + js_name = "configurations" + )] #[doc = "Getter for the `configurations` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/configurations)"] @@ -193,7 +293,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configurations(this: &UsbDevice) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = opened)] + #[wasm_bindgen(structural, method, getter, js_class = "USBDevice", js_name = "opened")] #[doc = "Getter for the `opened` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/opened)"] @@ -204,7 +304,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn opened(this: &UsbDevice) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = claimInterface)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "claimInterface")] #[doc = "The `claimInterface()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/claimInterface)"] @@ -216,7 +316,7 @@ extern "C" { pub fn claim_interface(this: &UsbDevice, interface_number: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDirection")] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = clearHalt)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "clearHalt")] #[doc = "The `clearHalt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/clearHalt)"] @@ -231,7 +331,7 @@ extern "C" { endpoint_number: u8, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/close)"] @@ -243,7 +343,12 @@ extern "C" { pub fn close(this: &UsbDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = controlTransferIn)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "controlTransferIn" + )] #[doc = "The `controlTransferIn()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferIn)"] @@ -259,7 +364,12 @@ extern "C" { ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = controlTransferOut)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "controlTransferOut" + )] #[doc = "The `controlTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferOut)"] @@ -274,7 +384,12 @@ extern "C" { ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = controlTransferOut)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "controlTransferOut" + )] #[doc = "The `controlTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferOut)"] @@ -290,7 +405,12 @@ extern "C" { ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = controlTransferOut)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "controlTransferOut" + )] #[doc = "The `controlTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferOut)"] @@ -305,7 +425,12 @@ extern "C" { data: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = isochronousTransferIn)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "isochronousTransferIn" + )] #[doc = "The `isochronousTransferIn()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/isochronousTransferIn)"] @@ -320,7 +445,12 @@ extern "C" { packet_lengths: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = isochronousTransferOut)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "isochronousTransferOut" + )] #[doc = "The `isochronousTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/isochronousTransferOut)"] @@ -336,7 +466,12 @@ extern "C" { packet_lengths: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = isochronousTransferOut)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "isochronousTransferOut" + )] #[doc = "The `isochronousTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/isochronousTransferOut)"] @@ -352,7 +487,7 @@ extern "C" { packet_lengths: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = open)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/open)"] @@ -363,7 +498,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn open(this: &UsbDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = releaseInterface)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "releaseInterface" + )] #[doc = "The `releaseInterface()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/releaseInterface)"] @@ -374,7 +514,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_interface(this: &UsbDevice, interface_number: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/reset)"] @@ -385,7 +525,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &UsbDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = selectAlternateInterface)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "selectAlternateInterface" + )] #[doc = "The `selectAlternateInterface()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/selectAlternateInterface)"] @@ -400,7 +545,12 @@ extern "C" { alternate_setting: u8, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = selectConfiguration)] + #[wasm_bindgen( + method, + structural, + js_class = "USBDevice", + js_name = "selectConfiguration" + )] #[doc = "The `selectConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/selectConfiguration)"] @@ -411,7 +561,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn select_configuration(this: &UsbDevice, configuration_value: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = transferIn)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "transferIn")] #[doc = "The `transferIn()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferIn)"] @@ -422,7 +572,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer_in(this: &UsbDevice, endpoint_number: u8, length: u32) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = transferOut)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "transferOut")] #[doc = "The `transferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferOut)"] @@ -437,7 +587,7 @@ extern "C" { data: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = transferOut)] + #[wasm_bindgen(method, structural, js_class = "USBDevice", js_name = "transferOut")] #[doc = "The `transferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferOut)"] diff --git a/crates/web-sys/src/features/gen_UsbDeviceFilter.rs b/crates/web-sys/src/features/gen_UsbDeviceFilter.rs index 132b25637af..d4d5593c4a6 100644 --- a/crates/web-sys/src/features/gen_UsbDeviceFilter.rs +++ b/crates/web-sys/src/features/gen_UsbDeviceFilter.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBDeviceFilter)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "USBDeviceFilter")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbDeviceFilter` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UsbDeviceRequestOptions.rs b/crates/web-sys/src/features/gen_UsbDeviceRequestOptions.rs index 10f3f70e496..3ef3ed3d9af 100644 --- a/crates/web-sys/src/features/gen_UsbDeviceRequestOptions.rs +++ b/crates/web-sys/src/features/gen_UsbDeviceRequestOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBDeviceRequestOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "USBDeviceRequestOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbDeviceRequestOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UsbEndpoint.rs b/crates/web-sys/src/features/gen_UsbEndpoint.rs index 6a829de5d9e..641d2ef15ff 100644 --- a/crates/web-sys/src/features/gen_UsbEndpoint.rs +++ b/crates/web-sys/src/features/gen_UsbEndpoint.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBEndpoint , typescript_type = "USBEndpoint")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBEndpoint", + typescript_type = "USBEndpoint" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbEndpoint` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbEndpoint; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , js_name = endpointNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBEndpoint", + js_name = "endpointNumber" + )] #[doc = "Getter for the `endpointNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBEndpoint/endpointNumber)"] @@ -28,7 +38,13 @@ extern "C" { pub fn endpoint_number(this: &UsbEndpoint) -> u8; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDirection")] - # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , js_name = direction)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBEndpoint", + js_name = "direction" + )] #[doc = "Getter for the `direction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBEndpoint/direction)"] @@ -40,7 +56,7 @@ extern "C" { pub fn direction(this: &UsbEndpoint) -> UsbDirection; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbEndpointType")] - # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , js_name = type)] + #[wasm_bindgen(structural, method, getter, js_class = "USBEndpoint", 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/USBEndpoint/type)"] @@ -51,7 +67,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &UsbEndpoint) -> UsbEndpointType; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , js_name = packetSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBEndpoint", + js_name = "packetSize" + )] #[doc = "Getter for the `packetSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBEndpoint/packetSize)"] diff --git a/crates/web-sys/src/features/gen_UsbInTransferResult.rs b/crates/web-sys/src/features/gen_UsbInTransferResult.rs index 4640a25dad3..f6229d8efde 100644 --- a/crates/web-sys/src/features/gen_UsbInTransferResult.rs +++ b/crates/web-sys/src/features/gen_UsbInTransferResult.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBInTransferResult , typescript_type = "USBInTransferResult")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBInTransferResult", + typescript_type = "USBInTransferResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbInTransferResult` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbInTransferResult; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBInTransferResult" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBInTransferResult", + 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/USBInTransferResult/data)"] @@ -28,7 +38,13 @@ extern "C" { pub fn data(this: &UsbInTransferResult) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] - # [wasm_bindgen (structural , method , getter , js_class = "USBInTransferResult" , js_name = status)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBInTransferResult", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInTransferResult/status)"] diff --git a/crates/web-sys/src/features/gen_UsbInterface.rs b/crates/web-sys/src/features/gen_UsbInterface.rs index 3eab4137b88..de080f7d140 100644 --- a/crates/web-sys/src/features/gen_UsbInterface.rs +++ b/crates/web-sys/src/features/gen_UsbInterface.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBInterface , typescript_type = "USBInterface")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBInterface", + typescript_type = "USBInterface" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbInterface` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbInterface; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = interfaceNumber)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBInterface", + js_name = "interfaceNumber" + )] #[doc = "Getter for the `interfaceNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/interfaceNumber)"] @@ -28,7 +38,13 @@ extern "C" { pub fn interface_number(this: &UsbInterface) -> u8; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbAlternateInterface")] - # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = alternate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBInterface", + js_name = "alternate" + )] #[doc = "Getter for the `alternate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/alternate)"] @@ -39,7 +55,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alternate(this: &UsbInterface) -> UsbAlternateInterface; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = alternates)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBInterface", + js_name = "alternates" + )] #[doc = "Getter for the `alternates` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/alternates)"] @@ -50,7 +72,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alternates(this: &UsbInterface) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = claimed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBInterface", + js_name = "claimed" + )] #[doc = "Getter for the `claimed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/claimed)"] diff --git a/crates/web-sys/src/features/gen_UsbIsochronousInTransferPacket.rs b/crates/web-sys/src/features/gen_UsbIsochronousInTransferPacket.rs index c169ad7ecde..b58487095d0 100644 --- a/crates/web-sys/src/features/gen_UsbIsochronousInTransferPacket.rs +++ b/crates/web-sys/src/features/gen_UsbIsochronousInTransferPacket.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousInTransferPacket , typescript_type = "USBIsochronousInTransferPacket")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBIsochronousInTransferPacket", + typescript_type = "USBIsochronousInTransferPacket" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousInTransferPacket` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousInTransferPacket; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferPacket" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBIsochronousInTransferPacket", + 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/USBIsochronousInTransferPacket/data)"] @@ -28,7 +38,13 @@ extern "C" { pub fn data(this: &UsbIsochronousInTransferPacket) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] - # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferPacket" , js_name = status)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBIsochronousInTransferPacket", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferPacket/status)"] diff --git a/crates/web-sys/src/features/gen_UsbIsochronousInTransferResult.rs b/crates/web-sys/src/features/gen_UsbIsochronousInTransferResult.rs index 6330d44ac6f..94f493132ca 100644 --- a/crates/web-sys/src/features/gen_UsbIsochronousInTransferResult.rs +++ b/crates/web-sys/src/features/gen_UsbIsochronousInTransferResult.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousInTransferResult , typescript_type = "USBIsochronousInTransferResult")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBIsochronousInTransferResult", + typescript_type = "USBIsochronousInTransferResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousInTransferResult` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousInTransferResult; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferResult" , js_name = data)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBIsochronousInTransferResult", + 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/USBIsochronousInTransferResult/data)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &UsbIsochronousInTransferResult) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferResult" , js_name = packets)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBIsochronousInTransferResult", + js_name = "packets" + )] #[doc = "Getter for the `packets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/packets)"] diff --git a/crates/web-sys/src/features/gen_UsbIsochronousOutTransferPacket.rs b/crates/web-sys/src/features/gen_UsbIsochronousOutTransferPacket.rs index 74a87c54b31..48173d37eef 100644 --- a/crates/web-sys/src/features/gen_UsbIsochronousOutTransferPacket.rs +++ b/crates/web-sys/src/features/gen_UsbIsochronousOutTransferPacket.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousOutTransferPacket , typescript_type = "USBIsochronousOutTransferPacket")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBIsochronousOutTransferPacket", + typescript_type = "USBIsochronousOutTransferPacket" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousOutTransferPacket` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousOutTransferPacket; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousOutTransferPacket" , js_name = bytesWritten)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBIsochronousOutTransferPacket", + js_name = "bytesWritten" + )] #[doc = "Getter for the `bytesWritten` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/bytesWritten)"] @@ -28,7 +38,13 @@ extern "C" { pub fn bytes_written(this: &UsbIsochronousOutTransferPacket) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] - # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousOutTransferPacket" , js_name = status)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBIsochronousOutTransferPacket", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/status)"] diff --git a/crates/web-sys/src/features/gen_UsbIsochronousOutTransferResult.rs b/crates/web-sys/src/features/gen_UsbIsochronousOutTransferResult.rs index 5d1c7abf7fd..e66538a818c 100644 --- a/crates/web-sys/src/features/gen_UsbIsochronousOutTransferResult.rs +++ b/crates/web-sys/src/features/gen_UsbIsochronousOutTransferResult.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousOutTransferResult , typescript_type = "USBIsochronousOutTransferResult")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBIsochronousOutTransferResult", + typescript_type = "USBIsochronousOutTransferResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousOutTransferResult` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousOutTransferResult; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousOutTransferResult" , js_name = packets)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBIsochronousOutTransferResult", + js_name = "packets" + )] #[doc = "Getter for the `packets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferResult/packets)"] diff --git a/crates/web-sys/src/features/gen_UsbOutTransferResult.rs b/crates/web-sys/src/features/gen_UsbOutTransferResult.rs index 3f9fbc68a55..3fe3b4e5d90 100644 --- a/crates/web-sys/src/features/gen_UsbOutTransferResult.rs +++ b/crates/web-sys/src/features/gen_UsbOutTransferResult.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBOutTransferResult , typescript_type = "USBOutTransferResult")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "USBOutTransferResult", + typescript_type = "USBOutTransferResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbOutTransferResult` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbOutTransferResult; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBOutTransferResult" , js_name = bytesWritten)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBOutTransferResult", + js_name = "bytesWritten" + )] #[doc = "Getter for the `bytesWritten` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBOutTransferResult/bytesWritten)"] @@ -28,7 +38,13 @@ extern "C" { pub fn bytes_written(this: &UsbOutTransferResult) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] - # [wasm_bindgen (structural , method , getter , js_class = "USBOutTransferResult" , js_name = status)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBOutTransferResult", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBOutTransferResult/status)"] diff --git a/crates/web-sys/src/features/gen_UsbPermissionDescriptor.rs b/crates/web-sys/src/features/gen_UsbPermissionDescriptor.rs index 1d2341838f8..dd1ef830667 100644 --- a/crates/web-sys/src/features/gen_UsbPermissionDescriptor.rs +++ b/crates/web-sys/src/features/gen_UsbPermissionDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBPermissionDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "USBPermissionDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbPermissionDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UsbPermissionResult.rs b/crates/web-sys/src/features/gen_UsbPermissionResult.rs index 2dc7d854b4a..7b171f842d9 100644 --- a/crates/web-sys/src/features/gen_UsbPermissionResult.rs +++ b/crates/web-sys/src/features/gen_UsbPermissionResult.rs @@ -4,7 +4,13 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PermissionStatus , extends = EventTarget , extends = :: js_sys :: Object , js_name = USBPermissionResult , typescript_type = "USBPermissionResult")] + #[wasm_bindgen( + extends = "PermissionStatus", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "USBPermissionResult", + typescript_type = "USBPermissionResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbPermissionResult` class."] #[doc = ""] @@ -16,7 +22,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbPermissionResult; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "USBPermissionResult" , js_name = devices)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "USBPermissionResult", + js_name = "devices" + )] #[doc = "Getter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBPermissionResult/devices)"] @@ -27,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn devices(this: &UsbPermissionResult) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "USBPermissionResult" , js_name = devices)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "USBPermissionResult", + js_name = "devices" + )] #[doc = "Setter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBPermissionResult/devices)"] diff --git a/crates/web-sys/src/features/gen_UsbPermissionStorage.rs b/crates/web-sys/src/features/gen_UsbPermissionStorage.rs index 75b8350e793..40bfb40d996 100644 --- a/crates/web-sys/src/features/gen_UsbPermissionStorage.rs +++ b/crates/web-sys/src/features/gen_UsbPermissionStorage.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBPermissionStorage)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "USBPermissionStorage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbPermissionStorage` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UserProximityEvent.rs b/crates/web-sys/src/features/gen_UserProximityEvent.rs index 5b949247604..7975ba776bb 100644 --- a/crates/web-sys/src/features/gen_UserProximityEvent.rs +++ b/crates/web-sys/src/features/gen_UserProximityEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = UserProximityEvent , typescript_type = "UserProximityEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "UserProximityEvent", + typescript_type = "UserProximityEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UserProximityEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`*"] pub type UserProximityEvent; - # [wasm_bindgen (structural , method , getter , js_class = "UserProximityEvent" , js_name = near)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "UserProximityEvent", + js_name = "near" + )] #[doc = "Getter for the `near` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent/near)"] diff --git a/crates/web-sys/src/features/gen_UserProximityEventInit.rs b/crates/web-sys/src/features/gen_UserProximityEventInit.rs index 63c45c228e7..e19c115c779 100644 --- a/crates/web-sys/src/features/gen_UserProximityEventInit.rs +++ b/crates/web-sys/src/features/gen_UserProximityEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UserProximityEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "UserProximityEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UserProximityEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ValidityState.rs b/crates/web-sys/src/features/gen_ValidityState.rs index 4550a3de489..91f3b1ccd2d 100644 --- a/crates/web-sys/src/features/gen_ValidityState.rs +++ b/crates/web-sys/src/features/gen_ValidityState.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ValidityState , typescript_type = "ValidityState")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "ValidityState", + typescript_type = "ValidityState" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ValidityState` class."] #[doc = ""] @@ -11,77 +15,143 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub type ValidityState; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = valueMissing)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "valueMissing" + )] #[doc = "Getter for the `valueMissing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valueMissing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn value_missing(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = typeMismatch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "typeMismatch" + )] #[doc = "Getter for the `typeMismatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/typeMismatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn type_mismatch(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = patternMismatch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "patternMismatch" + )] #[doc = "Getter for the `patternMismatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/patternMismatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn pattern_mismatch(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = tooLong)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "tooLong" + )] #[doc = "Getter for the `tooLong` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooLong)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn too_long(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = tooShort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "tooShort" + )] #[doc = "Getter for the `tooShort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooShort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn too_short(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = rangeUnderflow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "rangeUnderflow" + )] #[doc = "Getter for the `rangeUnderflow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeUnderflow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn range_underflow(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = rangeOverflow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "rangeOverflow" + )] #[doc = "Getter for the `rangeOverflow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeOverflow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn range_overflow(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = stepMismatch)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "stepMismatch" + )] #[doc = "Getter for the `stepMismatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/stepMismatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn step_mismatch(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = badInput)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "badInput" + )] #[doc = "Getter for the `badInput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/badInput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn bad_input(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = customError)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "customError" + )] #[doc = "Getter for the `customError` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/customError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn custom_error(this: &ValidityState) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = valid)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "ValidityState", + js_name = "valid" + )] #[doc = "Getter for the `valid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valid)"] diff --git a/crates/web-sys/src/features/gen_ValueEvent.rs b/crates/web-sys/src/features/gen_ValueEvent.rs index dad1661210f..291bc60eba7 100644 --- a/crates/web-sys/src/features/gen_ValueEvent.rs +++ b/crates/web-sys/src/features/gen_ValueEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ValueEvent , typescript_type = "ValueEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "ValueEvent", + typescript_type = "ValueEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ValueEvent` class."] #[doc = ""] @@ -16,7 +21,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ValueEvent; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "ValueEvent" , js_name = value)] + #[wasm_bindgen(structural, method, getter, js_class = "ValueEvent", 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/ValueEvent/value)"] diff --git a/crates/web-sys/src/features/gen_ValueEventInit.rs b/crates/web-sys/src/features/gen_ValueEventInit.rs index 7e6980e597f..c93d0a0b29b 100644 --- a/crates/web-sys/src/features/gen_ValueEventInit.rs +++ b/crates/web-sys/src/features/gen_ValueEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ValueEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "ValueEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ValueEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoColorSpace.rs b/crates/web-sys/src/features/gen_VideoColorSpace.rs index 11287ec9b23..dd9edcd6462 100644 --- a/crates/web-sys/src/features/gen_VideoColorSpace.rs +++ b/crates/web-sys/src/features/gen_VideoColorSpace.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoColorSpace , typescript_type = "VideoColorSpace")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VideoColorSpace", + typescript_type = "VideoColorSpace" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoColorSpace` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type VideoColorSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorPrimaries")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , js_name = primaries)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoColorSpace", + js_name = "primaries" + )] #[doc = "Getter for the `primaries` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/primaries)"] @@ -29,7 +39,13 @@ extern "C" { pub fn primaries(this: &VideoColorSpace) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoTransferCharacteristics")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , js_name = transfer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoColorSpace", + js_name = "transfer" + )] #[doc = "Getter for the `transfer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/transfer)"] @@ -41,7 +57,13 @@ extern "C" { pub fn transfer(this: &VideoColorSpace) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoMatrixCoefficients")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , js_name = matrix)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoColorSpace", + js_name = "matrix" + )] #[doc = "Getter for the `matrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/matrix)"] @@ -52,7 +74,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn matrix(this: &VideoColorSpace) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , js_name = fullRange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoColorSpace", + js_name = "fullRange" + )] #[doc = "Getter for the `fullRange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/fullRange)"] @@ -87,7 +115,7 @@ extern "C" { pub fn new_with_init(init: &VideoColorSpaceInit) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] - # [wasm_bindgen (method , structural , js_class = "VideoColorSpace" , js_name = toJSON)] + #[wasm_bindgen(method, structural, js_class = "VideoColorSpace", js_name = "toJSON")] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/toJSON)"] diff --git a/crates/web-sys/src/features/gen_VideoColorSpaceInit.rs b/crates/web-sys/src/features/gen_VideoColorSpaceInit.rs index 2343649f9d9..c30e11df590 100644 --- a/crates/web-sys/src/features/gen_VideoColorSpaceInit.rs +++ b/crates/web-sys/src/features/gen_VideoColorSpaceInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoColorSpaceInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoColorSpaceInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoColorSpaceInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoConfiguration.rs b/crates/web-sys/src/features/gen_VideoConfiguration.rs index a69d0039a38..08a9eb71871 100644 --- a/crates/web-sys/src/features/gen_VideoConfiguration.rs +++ b/crates/web-sys/src/features/gen_VideoConfiguration.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoConfiguration)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoConfiguration` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoDecoder.rs b/crates/web-sys/src/features/gen_VideoDecoder.rs index 591aad1b908..d15799c077b 100644 --- a/crates/web-sys/src/features/gen_VideoDecoder.rs +++ b/crates/web-sys/src/features/gen_VideoDecoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoder , typescript_type = "VideoDecoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VideoDecoder", + typescript_type = "VideoDecoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoder` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type VideoDecoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoDecoder" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoDecoder", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/state)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &VideoDecoder) -> CodecState; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoDecoder" , js_name = decodeQueueSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoDecoder", + js_name = "decodeQueueSize" + )] #[doc = "Getter for the `decodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/decodeQueueSize)"] @@ -51,7 +67,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &VideoDecoderInit) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoDecoder" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "VideoDecoder", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/close)"] @@ -63,7 +79,7 @@ extern "C" { pub fn close(this: &VideoDecoder); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] - # [wasm_bindgen (method , structural , js_class = "VideoDecoder" , js_name = configure)] + #[wasm_bindgen(method, structural, js_class = "VideoDecoder", js_name = "configure")] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/configure)"] @@ -75,7 +91,7 @@ extern "C" { pub fn configure(this: &VideoDecoder, config: &VideoDecoderConfig); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunk")] - # [wasm_bindgen (method , structural , js_class = "VideoDecoder" , js_name = decode)] + #[wasm_bindgen(method, structural, js_class = "VideoDecoder", js_name = "decode")] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/decode)"] @@ -86,7 +102,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode(this: &VideoDecoder, chunk: &EncodedVideoChunk); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoDecoder" , js_name = flush)] + #[wasm_bindgen(method, structural, js_class = "VideoDecoder", js_name = "flush")] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/flush)"] @@ -98,7 +114,11 @@ extern "C" { pub fn flush(this: &VideoDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] - # [wasm_bindgen (static_method_of = VideoDecoder , js_class = "VideoDecoder" , js_name = isConfigSupported)] + #[wasm_bindgen( + static_method_of = "VideoDecoder", + js_class = "VideoDecoder", + js_name = "isConfigSupported" + )] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/isConfigSupported)"] @@ -109,7 +129,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &VideoDecoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoDecoder" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "VideoDecoder", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/reset)"] diff --git a/crates/web-sys/src/features/gen_VideoDecoderConfig.rs b/crates/web-sys/src/features/gen_VideoDecoderConfig.rs index 073b8b4a64b..1bef2f27c12 100644 --- a/crates/web-sys/src/features/gen_VideoDecoderConfig.rs +++ b/crates/web-sys/src/features/gen_VideoDecoderConfig.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoderConfig)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoDecoderConfig")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoderConfig` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoDecoderInit.rs b/crates/web-sys/src/features/gen_VideoDecoderInit.rs index b1dd38bcc20..7d1f18a323d 100644 --- a/crates/web-sys/src/features/gen_VideoDecoderInit.rs +++ b/crates/web-sys/src/features/gen_VideoDecoderInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoderInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoDecoderInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoderInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoDecoderSupport.rs b/crates/web-sys/src/features/gen_VideoDecoderSupport.rs index 44efe4037ab..90aced522fd 100644 --- a/crates/web-sys/src/features/gen_VideoDecoderSupport.rs +++ b/crates/web-sys/src/features/gen_VideoDecoderSupport.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoderSupport)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoDecoderSupport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoderSupport` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoEncoder.rs b/crates/web-sys/src/features/gen_VideoEncoder.rs index 28a670772a8..f39961d08c6 100644 --- a/crates/web-sys/src/features/gen_VideoEncoder.rs +++ b/crates/web-sys/src/features/gen_VideoEncoder.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoder , typescript_type = "VideoEncoder")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VideoEncoder", + typescript_type = "VideoEncoder" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoder` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type VideoEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoEncoder" , js_name = state)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoEncoder", + js_name = "state" + )] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/state)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &VideoEncoder) -> CodecState; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoEncoder" , js_name = encodeQueueSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoEncoder", + js_name = "encodeQueueSize" + )] #[doc = "Getter for the `encodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/encodeQueueSize)"] @@ -51,7 +67,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &VideoEncoderInit) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoEncoder" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "VideoEncoder", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/close)"] @@ -63,7 +79,7 @@ extern "C" { pub fn close(this: &VideoEncoder); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoEncoderConfig")] - # [wasm_bindgen (method , structural , js_class = "VideoEncoder" , js_name = configure)] + #[wasm_bindgen(method, structural, js_class = "VideoEncoder", js_name = "configure")] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/configure)"] @@ -75,7 +91,7 @@ extern "C" { pub fn configure(this: &VideoEncoder, config: &VideoEncoderConfig); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] - # [wasm_bindgen (method , structural , js_class = "VideoEncoder" , js_name = encode)] + #[wasm_bindgen(method, structural, js_class = "VideoEncoder", js_name = "encode")] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/encode)"] @@ -87,7 +103,7 @@ extern "C" { pub fn encode(this: &VideoEncoder, frame: &VideoFrame); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "VideoEncoderEncodeOptions", feature = "VideoFrame",))] - # [wasm_bindgen (method , structural , js_class = "VideoEncoder" , js_name = encode)] + #[wasm_bindgen(method, structural, js_class = "VideoEncoder", js_name = "encode")] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/encode)"] @@ -102,7 +118,7 @@ extern "C" { options: &VideoEncoderEncodeOptions, ); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoEncoder" , js_name = flush)] + #[wasm_bindgen(method, structural, js_class = "VideoEncoder", js_name = "flush")] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/flush)"] @@ -114,7 +130,11 @@ extern "C" { pub fn flush(this: &VideoEncoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoEncoderConfig")] - # [wasm_bindgen (static_method_of = VideoEncoder , js_class = "VideoEncoder" , js_name = isConfigSupported)] + #[wasm_bindgen( + static_method_of = "VideoEncoder", + js_class = "VideoEncoder", + js_name = "isConfigSupported" + )] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/isConfigSupported)"] @@ -125,7 +145,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &VideoEncoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoEncoder" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "VideoEncoder", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/reset)"] diff --git a/crates/web-sys/src/features/gen_VideoEncoderConfig.rs b/crates/web-sys/src/features/gen_VideoEncoderConfig.rs index 4d61f21a74b..9ac9f39e271 100644 --- a/crates/web-sys/src/features/gen_VideoEncoderConfig.rs +++ b/crates/web-sys/src/features/gen_VideoEncoderConfig.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderConfig)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoEncoderConfig")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderConfig` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoEncoderEncodeOptions.rs b/crates/web-sys/src/features/gen_VideoEncoderEncodeOptions.rs index 345363afa30..ec5007d3f97 100644 --- a/crates/web-sys/src/features/gen_VideoEncoderEncodeOptions.rs +++ b/crates/web-sys/src/features/gen_VideoEncoderEncodeOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderEncodeOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoEncoderEncodeOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderEncodeOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoEncoderInit.rs b/crates/web-sys/src/features/gen_VideoEncoderInit.rs index e2c73e0b4a1..ba41c4715ac 100644 --- a/crates/web-sys/src/features/gen_VideoEncoderInit.rs +++ b/crates/web-sys/src/features/gen_VideoEncoderInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoEncoderInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoEncoderSupport.rs b/crates/web-sys/src/features/gen_VideoEncoderSupport.rs index 94dab1e0fa5..082b06b258b 100644 --- a/crates/web-sys/src/features/gen_VideoEncoderSupport.rs +++ b/crates/web-sys/src/features/gen_VideoEncoderSupport.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderSupport)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoEncoderSupport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderSupport` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoFrame.rs b/crates/web-sys/src/features/gen_VideoFrame.rs index b0f29df7644..d33af04b1d1 100644 --- a/crates/web-sys/src/features/gen_VideoFrame.rs +++ b/crates/web-sys/src/features/gen_VideoFrame.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrame , typescript_type = "VideoFrame")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VideoFrame", + typescript_type = "VideoFrame" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrame` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type VideoFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoPixelFormat")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = format)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "format" + )] #[doc = "Getter for the `format` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/format)"] @@ -28,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "codedWidth" + )] #[doc = "Getter for the `codedWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedWidth)"] @@ -39,7 +55,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn coded_width(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "codedHeight" + )] #[doc = "Getter for the `codedHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedHeight)"] @@ -51,7 +73,13 @@ extern "C" { pub fn coded_height(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedRect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "codedRect" + )] #[doc = "Getter for the `codedRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedRect)"] @@ -63,7 +91,13 @@ extern "C" { pub fn coded_rect(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = visibleRect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "visibleRect" + )] #[doc = "Getter for the `visibleRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/visibleRect)"] @@ -74,7 +108,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn visible_rect(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = displayWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "displayWidth" + )] #[doc = "Getter for the `displayWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/displayWidth)"] @@ -85,7 +125,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn display_width(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = displayHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "displayHeight" + )] #[doc = "Getter for the `displayHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/displayHeight)"] @@ -96,7 +142,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn display_height(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = duration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "duration" + )] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/duration)"] @@ -107,7 +159,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = timestamp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "timestamp" + )] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/timestamp)"] @@ -119,7 +177,13 @@ extern "C" { pub fn timestamp(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpace")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = colorSpace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoFrame", + js_name = "colorSpace" + )] #[doc = "Getter for the `colorSpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/colorSpace)"] @@ -295,7 +359,12 @@ extern "C" { init: &VideoFrameBufferInit, ) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = allocationSize)] + #[wasm_bindgen( + method, + structural, + js_class = "VideoFrame", + js_name = "allocationSize" + )] #[doc = "The `allocationSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/allocationSize)"] @@ -307,7 +376,12 @@ extern "C" { pub fn allocation_size(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameCopyToOptions")] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = allocationSize)] + #[wasm_bindgen( + method, + structural, + js_class = "VideoFrame", + js_name = "allocationSize" + )] #[doc = "The `allocationSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/allocationSize)"] @@ -321,7 +395,7 @@ extern "C" { options: &VideoFrameCopyToOptions, ) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = clone)] + #[wasm_bindgen(method, structural, js_class = "VideoFrame", js_name = "clone")] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/clone)"] @@ -332,7 +406,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clone(this: &VideoFrame) -> VideoFrame; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "VideoFrame", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/close)"] @@ -343,7 +417,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &VideoFrame); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "VideoFrame", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] @@ -357,7 +431,7 @@ extern "C" { destination: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "VideoFrame", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] @@ -369,7 +443,7 @@ extern "C" { pub fn copy_to_with_u8_array(this: &VideoFrame, destination: &mut [u8]) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameCopyToOptions")] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "VideoFrame", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] @@ -385,7 +459,7 @@ extern "C" { ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameCopyToOptions")] - # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] + #[wasm_bindgen(method, structural, js_class = "VideoFrame", js_name = "copyTo")] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] diff --git a/crates/web-sys/src/features/gen_VideoFrameBufferInit.rs b/crates/web-sys/src/features/gen_VideoFrameBufferInit.rs index 30607a75dd1..01be5b43a02 100644 --- a/crates/web-sys/src/features/gen_VideoFrameBufferInit.rs +++ b/crates/web-sys/src/features/gen_VideoFrameBufferInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrameBufferInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoFrameBufferInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrameBufferInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoFrameCopyToOptions.rs b/crates/web-sys/src/features/gen_VideoFrameCopyToOptions.rs index 9ba37f78971..89f5516c01f 100644 --- a/crates/web-sys/src/features/gen_VideoFrameCopyToOptions.rs +++ b/crates/web-sys/src/features/gen_VideoFrameCopyToOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrameCopyToOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoFrameCopyToOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrameCopyToOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoFrameInit.rs b/crates/web-sys/src/features/gen_VideoFrameInit.rs index bf91f0fb757..c691679ee8a 100644 --- a/crates/web-sys/src/features/gen_VideoFrameInit.rs +++ b/crates/web-sys/src/features/gen_VideoFrameInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrameInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VideoFrameInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrameInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoPlaybackQuality.rs b/crates/web-sys/src/features/gen_VideoPlaybackQuality.rs index 6556f12225a..7479056a98e 100644 --- a/crates/web-sys/src/features/gen_VideoPlaybackQuality.rs +++ b/crates/web-sys/src/features/gen_VideoPlaybackQuality.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoPlaybackQuality , typescript_type = "VideoPlaybackQuality")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VideoPlaybackQuality", + typescript_type = "VideoPlaybackQuality" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoPlaybackQuality` class."] #[doc = ""] @@ -11,28 +15,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub type VideoPlaybackQuality; - # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = creationTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoPlaybackQuality", + js_name = "creationTime" + )] #[doc = "Getter for the `creationTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/creationTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub fn creation_time(this: &VideoPlaybackQuality) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = totalVideoFrames)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoPlaybackQuality", + js_name = "totalVideoFrames" + )] #[doc = "Getter for the `totalVideoFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/totalVideoFrames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub fn total_video_frames(this: &VideoPlaybackQuality) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = droppedVideoFrames)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoPlaybackQuality", + js_name = "droppedVideoFrames" + )] #[doc = "Getter for the `droppedVideoFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub fn dropped_video_frames(this: &VideoPlaybackQuality) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = corruptedVideoFrames)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoPlaybackQuality", + js_name = "corruptedVideoFrames" + )] #[doc = "Getter for the `corruptedVideoFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)"] diff --git a/crates/web-sys/src/features/gen_VideoStreamTrack.rs b/crates/web-sys/src/features/gen_VideoStreamTrack.rs index de248ce5f83..1705b40c379 100644 --- a/crates/web-sys/src/features/gen_VideoStreamTrack.rs +++ b/crates/web-sys/src/features/gen_VideoStreamTrack.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = VideoStreamTrack , typescript_type = "VideoStreamTrack")] + #[wasm_bindgen( + extends = "MediaStreamTrack", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "VideoStreamTrack", + typescript_type = "VideoStreamTrack" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoStreamTrack` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoTrack.rs b/crates/web-sys/src/features/gen_VideoTrack.rs index 08f6e0b0221..d1d8bc120d2 100644 --- a/crates/web-sys/src/features/gen_VideoTrack.rs +++ b/crates/web-sys/src/features/gen_VideoTrack.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoTrack , typescript_type = "VideoTrack")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VideoTrack", + typescript_type = "VideoTrack" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoTrack` class."] #[doc = ""] @@ -11,42 +15,60 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub type VideoTrack; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "VideoTrack", 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/VideoTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn id(this: &VideoTrack) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = kind)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = label)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = language)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = selected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoTrack", + js_name = "selected" + )] #[doc = "Getter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn selected(this: &VideoTrack) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "VideoTrack" , js_name = selected)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VideoTrack", + js_name = "selected" + )] #[doc = "Setter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"] @@ -54,7 +76,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn set_selected(this: &VideoTrack, value: bool); #[cfg(feature = "SourceBuffer")] - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = sourceBuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoTrack", + js_name = "sourceBuffer" + )] #[doc = "Getter for the `sourceBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/sourceBuffer)"] diff --git a/crates/web-sys/src/features/gen_VideoTrackList.rs b/crates/web-sys/src/features/gen_VideoTrackList.rs index 8a743d5e7b9..d1e96a55bb8 100644 --- a/crates/web-sys/src/features/gen_VideoTrackList.rs +++ b/crates/web-sys/src/features/gen_VideoTrackList.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VideoTrackList , typescript_type = "VideoTrackList")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "VideoTrackList", + typescript_type = "VideoTrackList" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoTrackList` class."] #[doc = ""] @@ -11,56 +16,104 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub type VideoTrackList; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoTrackList", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn length(this: &VideoTrackList) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = selectedIndex)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoTrackList", + js_name = "selectedIndex" + )] #[doc = "Getter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn selected_index(this: &VideoTrackList) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoTrackList", + js_name = "onchange" + )] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn onchange(this: &VideoTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VideoTrackList", + js_name = "onchange" + )] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn set_onchange(this: &VideoTrackList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoTrackList", + js_name = "onaddtrack" + )] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn onaddtrack(this: &VideoTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onaddtrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VideoTrackList", + js_name = "onaddtrack" + )] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn set_onaddtrack(this: &VideoTrackList, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VideoTrackList", + js_name = "onremovetrack" + )] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn onremovetrack(this: &VideoTrackList) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onremovetrack)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VideoTrackList", + js_name = "onremovetrack" + )] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"] @@ -68,7 +121,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn set_onremovetrack(this: &VideoTrackList, value: Option<&::js_sys::Function>); #[cfg(feature = "VideoTrack")] - # [wasm_bindgen (method , structural , js_class = "VideoTrackList" , js_name = getTrackById)] + #[wasm_bindgen( + method, + structural, + js_class = "VideoTrackList", + js_name = "getTrackById" + )] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/getTrackById)"] diff --git a/crates/web-sys/src/features/gen_VoidCallback.rs b/crates/web-sys/src/features/gen_VoidCallback.rs index c76cadcb0a8..a322f49e70d 100644 --- a/crates/web-sys/src/features/gen_VoidCallback.rs +++ b/crates/web-sys/src/features/gen_VoidCallback.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VoidCallback)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VoidCallback")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VoidCallback` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VrDisplay.rs b/crates/web-sys/src/features/gen_VrDisplay.rs index f4f100e869d..93f0ea44511 100644 --- a/crates/web-sys/src/features/gen_VrDisplay.rs +++ b/crates/web-sys/src/features/gen_VrDisplay.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VRDisplay , typescript_type = "VRDisplay")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "VRDisplay", + typescript_type = "VRDisplay" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrDisplay` class."] #[doc = ""] @@ -11,14 +16,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub type VrDisplay; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = isConnected)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "isConnected" + )] #[doc = "Getter for the `isConnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn is_connected(this: &VrDisplay) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = isPresenting)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "isPresenting" + )] #[doc = "Getter for the `isPresenting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting)"] @@ -26,7 +43,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn is_presenting(this: &VrDisplay) -> bool; #[cfg(feature = "VrDisplayCapabilities")] - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = capabilities)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "capabilities" + )] #[doc = "Getter for the `capabilities` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities)"] @@ -34,63 +57,117 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrDisplayCapabilities`*"] pub fn capabilities(this: &VrDisplay) -> VrDisplayCapabilities; #[cfg(feature = "VrStageParameters")] - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = stageParameters)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "stageParameters" + )] #[doc = "Getter for the `stageParameters` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrStageParameters`*"] pub fn stage_parameters(this: &VrDisplay) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = displayId)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "displayId" + )] #[doc = "Getter for the `displayId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn display_id(this: &VrDisplay) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = displayName)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "displayName" + )] #[doc = "Getter for the `displayName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = depthNear)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "depthNear" + )] #[doc = "Getter for the `depthNear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn depth_near(this: &VrDisplay) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VRDisplay" , js_name = depthNear)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VRDisplay", + js_name = "depthNear" + )] #[doc = "Setter for the `depthNear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn set_depth_near(this: &VrDisplay, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = depthFar)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplay", + js_name = "depthFar" + )] #[doc = "Getter for the `depthFar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn depth_far(this: &VrDisplay) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VRDisplay" , js_name = depthFar)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VRDisplay", + js_name = "depthFar" + )] #[doc = "Setter for the `depthFar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn set_depth_far(this: &VrDisplay, value: f64); - # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = cancelAnimationFrame)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "VRDisplay", + js_name = "cancelAnimationFrame" + )] #[doc = "The `cancelAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/cancelAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn cancel_animation_frame(this: &VrDisplay, handle: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = exitPresent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "VRDisplay", + js_name = "exitPresent" + )] #[doc = "The `exitPresent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/exitPresent)"] @@ -98,7 +175,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn exit_present(this: &VrDisplay) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "VrEye", feature = "VrEyeParameters",))] - # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getEyeParameters)] + #[wasm_bindgen( + method, + structural, + js_class = "VRDisplay", + js_name = "getEyeParameters" + )] #[doc = "The `getEyeParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getEyeParameters)"] @@ -106,14 +188,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrEye`, `VrEyeParameters`*"] pub fn get_eye_parameters(this: &VrDisplay, which_eye: VrEye) -> VrEyeParameters; #[cfg(feature = "VrFrameData")] - # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getFrameData)] + #[wasm_bindgen(method, structural, js_class = "VRDisplay", js_name = "getFrameData")] #[doc = "The `getFrameData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getFrameData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrFrameData`*"] pub fn get_frame_data(this: &VrDisplay, frame_data: &VrFrameData) -> bool; - # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getLayers)] + #[wasm_bindgen(method, structural, js_class = "VRDisplay", js_name = "getLayers")] #[doc = "The `getLayers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getLayers)"] @@ -121,7 +203,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn get_layers(this: &VrDisplay) -> ::js_sys::Array; #[cfg(feature = "VrPose")] - # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getPose)] + #[wasm_bindgen(method, structural, js_class = "VRDisplay", js_name = "getPose")] #[doc = "The `getPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getPose)"] @@ -129,14 +211,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrPose`*"] pub fn get_pose(this: &VrDisplay) -> VrPose; #[cfg(feature = "VrSubmitFrameResult")] - # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getSubmitFrameResult)] + #[wasm_bindgen( + method, + structural, + js_class = "VRDisplay", + js_name = "getSubmitFrameResult" + )] #[doc = "The `getSubmitFrameResult()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getSubmitFrameResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrSubmitFrameResult`*"] pub fn get_submit_frame_result(this: &VrDisplay, result: &VrSubmitFrameResult) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = requestAnimationFrame)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "VRDisplay", + js_name = "requestAnimationFrame" + )] #[doc = "The `requestAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestAnimationFrame)"] @@ -146,7 +239,13 @@ extern "C" { this: &VrDisplay, callback: &::js_sys::Function, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = requestPresent)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "VRDisplay", + js_name = "requestPresent" + )] #[doc = "The `requestPresent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestPresent)"] @@ -156,14 +255,14 @@ extern "C" { this: &VrDisplay, layers: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = resetPose)] + #[wasm_bindgen(method, structural, js_class = "VRDisplay", js_name = "resetPose")] #[doc = "The `resetPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/resetPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn reset_pose(this: &VrDisplay); - # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = submitFrame)] + #[wasm_bindgen(method, structural, js_class = "VRDisplay", js_name = "submitFrame")] #[doc = "The `submitFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/submitFrame)"] diff --git a/crates/web-sys/src/features/gen_VrDisplayCapabilities.rs b/crates/web-sys/src/features/gen_VrDisplayCapabilities.rs index 1f02ad81f44..5b058e5fde9 100644 --- a/crates/web-sys/src/features/gen_VrDisplayCapabilities.rs +++ b/crates/web-sys/src/features/gen_VrDisplayCapabilities.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRDisplayCapabilities , typescript_type = "VRDisplayCapabilities")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRDisplayCapabilities", + typescript_type = "VRDisplayCapabilities" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrDisplayCapabilities` class."] #[doc = ""] @@ -11,35 +15,65 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub type VrDisplayCapabilities; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasPosition)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplayCapabilities", + js_name = "hasPosition" + )] #[doc = "Getter for the `hasPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn has_position(this: &VrDisplayCapabilities) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasOrientation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplayCapabilities", + js_name = "hasOrientation" + )] #[doc = "Getter for the `hasOrientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn has_orientation(this: &VrDisplayCapabilities) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasExternalDisplay)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplayCapabilities", + js_name = "hasExternalDisplay" + )] #[doc = "Getter for the `hasExternalDisplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasExternalDisplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn has_external_display(this: &VrDisplayCapabilities) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = canPresent)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplayCapabilities", + js_name = "canPresent" + )] #[doc = "Getter for the `canPresent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/canPresent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn can_present(this: &VrDisplayCapabilities) -> bool; - # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = maxLayers)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRDisplayCapabilities", + js_name = "maxLayers" + )] #[doc = "Getter for the `maxLayers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/maxLayers)"] diff --git a/crates/web-sys/src/features/gen_VrEyeParameters.rs b/crates/web-sys/src/features/gen_VrEyeParameters.rs index 6a351c26a31..1f46b981534 100644 --- a/crates/web-sys/src/features/gen_VrEyeParameters.rs +++ b/crates/web-sys/src/features/gen_VrEyeParameters.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VREyeParameters , typescript_type = "VREyeParameters")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VREyeParameters", + typescript_type = "VREyeParameters" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrEyeParameters` class."] #[doc = ""] @@ -11,7 +15,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] pub type VrEyeParameters; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VREyeParameters" , js_name = offset)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VREyeParameters", + js_name = "offset" + )] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/offset)"] @@ -19,21 +30,39 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] pub fn offset(this: &VrEyeParameters) -> Result, JsValue>; #[cfg(feature = "VrFieldOfView")] - # [wasm_bindgen (structural , method , getter , js_class = "VREyeParameters" , js_name = fieldOfView)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VREyeParameters", + js_name = "fieldOfView" + )] #[doc = "Getter for the `fieldOfView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/fieldOfView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`, `VrFieldOfView`*"] pub fn field_of_view(this: &VrEyeParameters) -> VrFieldOfView; - # [wasm_bindgen (structural , method , getter , js_class = "VREyeParameters" , js_name = renderWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VREyeParameters", + js_name = "renderWidth" + )] #[doc = "Getter for the `renderWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] pub fn render_width(this: &VrEyeParameters) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "VREyeParameters" , js_name = renderHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VREyeParameters", + js_name = "renderHeight" + )] #[doc = "Getter for the `renderHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderHeight)"] diff --git a/crates/web-sys/src/features/gen_VrFieldOfView.rs b/crates/web-sys/src/features/gen_VrFieldOfView.rs index 45621b219f3..b6a5a58e736 100644 --- a/crates/web-sys/src/features/gen_VrFieldOfView.rs +++ b/crates/web-sys/src/features/gen_VrFieldOfView.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRFieldOfView , typescript_type = "VRFieldOfView")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRFieldOfView", + typescript_type = "VRFieldOfView" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrFieldOfView` class."] #[doc = ""] @@ -11,28 +15,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub type VrFieldOfView; - # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = upDegrees)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRFieldOfView", + js_name = "upDegrees" + )] #[doc = "Getter for the `upDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/upDegrees)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub fn up_degrees(this: &VrFieldOfView) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = rightDegrees)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRFieldOfView", + js_name = "rightDegrees" + )] #[doc = "Getter for the `rightDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/rightDegrees)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub fn right_degrees(this: &VrFieldOfView) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = downDegrees)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRFieldOfView", + js_name = "downDegrees" + )] #[doc = "Getter for the `downDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/downDegrees)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub fn down_degrees(this: &VrFieldOfView) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = leftDegrees)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRFieldOfView", + js_name = "leftDegrees" + )] #[doc = "Getter for the `leftDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/leftDegrees)"] diff --git a/crates/web-sys/src/features/gen_VrFrameData.rs b/crates/web-sys/src/features/gen_VrFrameData.rs index 697997dbdce..3701c5d70ad 100644 --- a/crates/web-sys/src/features/gen_VrFrameData.rs +++ b/crates/web-sys/src/features/gen_VrFrameData.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRFrameData , typescript_type = "VRFrameData")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRFrameData", + typescript_type = "VRFrameData" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrFrameData` class."] #[doc = ""] @@ -11,35 +15,69 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub type VrFrameData; - # [wasm_bindgen (structural , method , getter , js_class = "VRFrameData" , js_name = timestamp)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRFrameData", + js_name = "timestamp" + )] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn timestamp(this: &VrFrameData) -> f64; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftProjectionMatrix)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRFrameData", + js_name = "leftProjectionMatrix" + )] #[doc = "Getter for the `leftProjectionMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftProjectionMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn left_projection_matrix(this: &VrFrameData) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftViewMatrix)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRFrameData", + js_name = "leftViewMatrix" + )] #[doc = "Getter for the `leftViewMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftViewMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn left_view_matrix(this: &VrFrameData) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightProjectionMatrix)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRFrameData", + js_name = "rightProjectionMatrix" + )] #[doc = "Getter for the `rightProjectionMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightProjectionMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn right_projection_matrix(this: &VrFrameData) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightViewMatrix)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRFrameData", + js_name = "rightViewMatrix" + )] #[doc = "Getter for the `rightViewMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightViewMatrix)"] @@ -47,7 +85,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn right_view_matrix(this: &VrFrameData) -> Result, JsValue>; #[cfg(feature = "VrPose")] - # [wasm_bindgen (structural , method , getter , js_class = "VRFrameData" , js_name = pose)] + #[wasm_bindgen(structural, method, getter, js_class = "VRFrameData", js_name = "pose")] #[doc = "Getter for the `pose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/pose)"] diff --git a/crates/web-sys/src/features/gen_VrLayer.rs b/crates/web-sys/src/features/gen_VrLayer.rs index 6d0adae943e..1a13d36b3c8 100644 --- a/crates/web-sys/src/features/gen_VrLayer.rs +++ b/crates/web-sys/src/features/gen_VrLayer.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRLayer)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "VRLayer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrLayer` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VrMockController.rs b/crates/web-sys/src/features/gen_VrMockController.rs index 23676c7ef8f..6aefe0d9b4b 100644 --- a/crates/web-sys/src/features/gen_VrMockController.rs +++ b/crates/web-sys/src/features/gen_VrMockController.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRMockController , typescript_type = "VRMockController")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRMockController", + typescript_type = "VRMockController" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrMockController` class."] #[doc = ""] @@ -11,21 +15,36 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] pub type VrMockController; - # [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newAxisMoveEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "VRMockController", + js_name = "newAxisMoveEvent" + )] #[doc = "The `newAxisMoveEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newAxisMoveEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] pub fn new_axis_move_event(this: &VrMockController, axis: u32, value: f64); - # [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newButtonEvent)] + #[wasm_bindgen( + method, + structural, + js_class = "VRMockController", + js_name = "newButtonEvent" + )] #[doc = "The `newButtonEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newButtonEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] pub fn new_button_event(this: &VrMockController, button: u32, pressed: bool); - # [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newPoseMove)] + #[wasm_bindgen( + method, + structural, + js_class = "VRMockController", + js_name = "newPoseMove" + )] #[doc = "The `newPoseMove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newPoseMove)"] diff --git a/crates/web-sys/src/features/gen_VrMockDisplay.rs b/crates/web-sys/src/features/gen_VrMockDisplay.rs index 5f503ba12fe..e59d909cbb3 100644 --- a/crates/web-sys/src/features/gen_VrMockDisplay.rs +++ b/crates/web-sys/src/features/gen_VrMockDisplay.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRMockDisplay , typescript_type = "VRMockDisplay")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRMockDisplay", + typescript_type = "VRMockDisplay" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrMockDisplay` class."] #[doc = ""] @@ -12,7 +16,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub type VrMockDisplay; #[cfg(feature = "VrEye")] - # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "VRMockDisplay", + js_name = "setEyeParameter" + )] #[doc = "The `setEyeParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeParameter)"] @@ -29,21 +38,31 @@ extern "C" { down_degree: f64, left_degree: f64, ); - # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeResolution)] + #[wasm_bindgen( + method, + structural, + js_class = "VRMockDisplay", + js_name = "setEyeResolution" + )] #[doc = "The `setEyeResolution()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeResolution)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub fn set_eye_resolution(this: &VrMockDisplay, a_render_width: u32, a_render_height: u32); - # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setMountState)] + #[wasm_bindgen( + method, + structural, + js_class = "VRMockDisplay", + js_name = "setMountState" + )] #[doc = "The `setMountState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setMountState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub fn set_mount_state(this: &VrMockDisplay, is_mounted: bool); - # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setPose)] + #[wasm_bindgen(method, structural, js_class = "VRMockDisplay", js_name = "setPose")] #[doc = "The `setPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setPose)"] @@ -58,7 +77,7 @@ extern "C" { angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); - # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = update)] + #[wasm_bindgen(method, structural, js_class = "VRMockDisplay", js_name = "update")] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/update)"] diff --git a/crates/web-sys/src/features/gen_VrPose.rs b/crates/web-sys/src/features/gen_VrPose.rs index c7e03eea5e4..939c70af2a1 100644 --- a/crates/web-sys/src/features/gen_VrPose.rs +++ b/crates/web-sys/src/features/gen_VrPose.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRPose , typescript_type = "VRPose")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRPose", + typescript_type = "VRPose" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrPose` class."] #[doc = ""] @@ -11,42 +15,84 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub type VrPose; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = position)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRPose", + js_name = "position" + )] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn position(this: &VrPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = linearVelocity)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRPose", + js_name = "linearVelocity" + )] #[doc = "Getter for the `linearVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn linear_velocity(this: &VrPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = linearAcceleration)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRPose", + js_name = "linearAcceleration" + )] #[doc = "Getter for the `linearAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearAcceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn linear_acceleration(this: &VrPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = orientation)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRPose", + js_name = "orientation" + )] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn orientation(this: &VrPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = angularVelocity)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRPose", + js_name = "angularVelocity" + )] #[doc = "Getter for the `angularVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn angular_velocity(this: &VrPose) -> Result>, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = angularAcceleration)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRPose", + js_name = "angularAcceleration" + )] #[doc = "Getter for the `angularAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularAcceleration)"] diff --git a/crates/web-sys/src/features/gen_VrServiceTest.rs b/crates/web-sys/src/features/gen_VrServiceTest.rs index 7becadb161a..9866cdb147f 100644 --- a/crates/web-sys/src/features/gen_VrServiceTest.rs +++ b/crates/web-sys/src/features/gen_VrServiceTest.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRServiceTest , typescript_type = "VRServiceTest")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRServiceTest", + typescript_type = "VRServiceTest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrServiceTest` class."] #[doc = ""] @@ -11,7 +15,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"] pub type VrServiceTest; - # [wasm_bindgen (catch , method , structural , js_class = "VRServiceTest" , js_name = attachVRController)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "VRServiceTest", + js_name = "attachVRController" + )] #[doc = "The `attachVRController()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRController)"] @@ -21,7 +31,13 @@ extern "C" { this: &VrServiceTest, id: &str, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "VRServiceTest" , js_name = attachVRDisplay)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "VRServiceTest", + js_name = "attachVRDisplay" + )] #[doc = "The `attachVRDisplay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRDisplay)"] diff --git a/crates/web-sys/src/features/gen_VrStageParameters.rs b/crates/web-sys/src/features/gen_VrStageParameters.rs index 081ff053557..5dd9d17ee60 100644 --- a/crates/web-sys/src/features/gen_VrStageParameters.rs +++ b/crates/web-sys/src/features/gen_VrStageParameters.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRStageParameters , typescript_type = "VRStageParameters")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRStageParameters", + typescript_type = "VRStageParameters" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrStageParameters` class."] #[doc = ""] @@ -11,21 +15,40 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] pub type VrStageParameters; - # [wasm_bindgen (structural , catch , method , getter , js_class = "VRStageParameters" , js_name = sittingToStandingTransform)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "VRStageParameters", + js_name = "sittingToStandingTransform" + )] #[doc = "Getter for the `sittingToStandingTransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sittingToStandingTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] pub fn sitting_to_standing_transform(this: &VrStageParameters) -> Result, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "VRStageParameters" , js_name = sizeX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRStageParameters", + js_name = "sizeX" + )] #[doc = "Getter for the `sizeX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] pub fn size_x(this: &VrStageParameters) -> f32; - # [wasm_bindgen (structural , method , getter , js_class = "VRStageParameters" , js_name = sizeZ)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRStageParameters", + js_name = "sizeZ" + )] #[doc = "Getter for the `sizeZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeZ)"] diff --git a/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs b/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs index b0dd1aebedd..862711ffc02 100644 --- a/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs +++ b/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRSubmitFrameResult , typescript_type = "VRSubmitFrameResult")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VRSubmitFrameResult", + typescript_type = "VRSubmitFrameResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrSubmitFrameResult` class."] #[doc = ""] @@ -11,14 +15,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] pub type VrSubmitFrameResult; - # [wasm_bindgen (structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = frameNum)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRSubmitFrameResult", + js_name = "frameNum" + )] #[doc = "Getter for the `frameNum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/frameNum)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] pub fn frame_num(this: &VrSubmitFrameResult) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = base64Image)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VRSubmitFrameResult", + js_name = "base64Image" + )] #[doc = "Getter for the `base64Image` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/base64Image)"] diff --git a/crates/web-sys/src/features/gen_VttCue.rs b/crates/web-sys/src/features/gen_VttCue.rs index a232704b0d1..eec5bbf33ba 100644 --- a/crates/web-sys/src/features/gen_VttCue.rs +++ b/crates/web-sys/src/features/gen_VttCue.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = TextTrackCue , extends = EventTarget , extends = :: js_sys :: Object , js_name = VTTCue , typescript_type = "VTTCue")] + #[wasm_bindgen( + extends = "TextTrackCue", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "VTTCue", + typescript_type = "VTTCue" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VttCue` class."] #[doc = ""] @@ -12,7 +18,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub type VttCue; #[cfg(feature = "VttRegion")] - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = region)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", js_name = "region")] #[doc = "Getter for the `region` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"] @@ -20,7 +26,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"] pub fn region(this: &VttCue) -> Option; #[cfg(feature = "VttRegion")] - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = region)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "region")] #[doc = "Setter for the `region` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"] @@ -28,7 +34,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"] pub fn set_region(this: &VttCue, value: Option<&VttRegion>); #[cfg(feature = "DirectionSetting")] - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = vertical)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", js_name = "vertical")] #[doc = "Getter for the `vertical` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"] @@ -36,35 +42,47 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"] pub fn vertical(this: &VttCue) -> DirectionSetting; #[cfg(feature = "DirectionSetting")] - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = vertical)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "vertical")] #[doc = "Setter for the `vertical` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"] pub fn set_vertical(this: &VttCue, value: DirectionSetting); - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = snapToLines)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VTTCue", + js_name = "snapToLines" + )] #[doc = "Getter for the `snapToLines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn snap_to_lines(this: &VttCue) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = snapToLines)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VTTCue", + js_name = "snapToLines" + )] #[doc = "Setter for the `snapToLines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_snap_to_lines(this: &VttCue, value: bool); - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = line)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", js_name = "line")] #[doc = "Getter for the `line` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn line(this: &VttCue) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = line)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "line")] #[doc = "Setter for the `line` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"] @@ -72,7 +90,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_line(this: &VttCue, value: &::wasm_bindgen::JsValue); #[cfg(feature = "LineAlignSetting")] - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = lineAlign)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", js_name = "lineAlign")] #[doc = "Getter for the `lineAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"] @@ -80,21 +98,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"] pub fn line_align(this: &VttCue) -> LineAlignSetting; #[cfg(feature = "LineAlignSetting")] - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = lineAlign)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "lineAlign")] #[doc = "Setter for the `lineAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"] pub fn set_line_align(this: &VttCue, value: LineAlignSetting); - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = position)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", js_name = "position")] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn position(this: &VttCue) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = position)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "position")] #[doc = "Setter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"] @@ -102,7 +120,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_position(this: &VttCue, value: &::wasm_bindgen::JsValue); #[cfg(feature = "PositionAlignSetting")] - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = positionAlign)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VTTCue", + js_name = "positionAlign" + )] #[doc = "Getter for the `positionAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"] @@ -110,21 +134,27 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"] pub fn position_align(this: &VttCue) -> PositionAlignSetting; #[cfg(feature = "PositionAlignSetting")] - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = positionAlign)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VTTCue", + js_name = "positionAlign" + )] #[doc = "Setter for the `positionAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"] pub fn set_position_align(this: &VttCue, value: PositionAlignSetting); - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = size)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", js_name = "size")] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn size(this: &VttCue) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = size)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "size")] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"] @@ -132,7 +162,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_size(this: &VttCue, value: f64); #[cfg(feature = "AlignSetting")] - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = align)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", 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/VTTCue/align)"] @@ -140,21 +170,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"] pub fn align(this: &VttCue) -> AlignSetting; #[cfg(feature = "AlignSetting")] - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = align)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "align")] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"] pub fn set_align(this: &VttCue, value: AlignSetting); - # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = text)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTCue", js_name = "text")] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = text)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTCue", js_name = "text")] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"] @@ -169,7 +199,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn new(start_time: f64, end_time: f64, text: &str) -> Result; #[cfg(feature = "DocumentFragment")] - # [wasm_bindgen (method , structural , js_class = "VTTCue" , js_name = getCueAsHTML)] + #[wasm_bindgen(method, structural, js_class = "VTTCue", js_name = "getCueAsHTML")] #[doc = "The `getCueAsHTML()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/getCueAsHTML)"] diff --git a/crates/web-sys/src/features/gen_VttRegion.rs b/crates/web-sys/src/features/gen_VttRegion.rs index 71e3fb3d06d..9dcaf3fc9b7 100644 --- a/crates/web-sys/src/features/gen_VttRegion.rs +++ b/crates/web-sys/src/features/gen_VttRegion.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VTTRegion , typescript_type = "VTTRegion")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "VTTRegion", + typescript_type = "VTTRegion" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VttRegion` class."] #[doc = ""] @@ -11,98 +15,146 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub type VttRegion; - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = id)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTRegion", 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/VTTRegion/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn id(this: &VttRegion) -> String; - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = id)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTRegion", js_name = "id")] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[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 set_id(this: &VttRegion, value: &str); - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = width)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTRegion", js_name = "width")] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn width(this: &VttRegion) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = width)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTRegion", js_name = "width")] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_width(this: &VttRegion, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = lines)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTRegion", js_name = "lines")] #[doc = "Getter for the `lines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn lines(this: &VttRegion) -> i32; - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = lines)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTRegion", js_name = "lines")] #[doc = "Setter for the `lines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_lines(this: &VttRegion, value: i32); - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VTTRegion", + js_name = "regionAnchorX" + )] #[doc = "Getter for the `regionAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn region_anchor_x(this: &VttRegion) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorX)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VTTRegion", + js_name = "regionAnchorX" + )] #[doc = "Setter for the `regionAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_region_anchor_x(this: &VttRegion, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VTTRegion", + js_name = "regionAnchorY" + )] #[doc = "Getter for the `regionAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn region_anchor_y(this: &VttRegion) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorY)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VTTRegion", + js_name = "regionAnchorY" + )] #[doc = "Setter for the `regionAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_region_anchor_y(this: &VttRegion, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VTTRegion", + js_name = "viewportAnchorX" + )] #[doc = "Getter for the `viewportAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn viewport_anchor_x(this: &VttRegion) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorX)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VTTRegion", + js_name = "viewportAnchorX" + )] #[doc = "Setter for the `viewportAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_viewport_anchor_x(this: &VttRegion, value: f64); - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "VTTRegion", + js_name = "viewportAnchorY" + )] #[doc = "Getter for the `viewportAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn viewport_anchor_y(this: &VttRegion) -> f64; - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorY)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "VTTRegion", + js_name = "viewportAnchorY" + )] #[doc = "Setter for the `viewportAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"] @@ -110,7 +162,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_viewport_anchor_y(this: &VttRegion, value: f64); #[cfg(feature = "ScrollSetting")] - # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = scroll)] + #[wasm_bindgen(structural, method, getter, js_class = "VTTRegion", js_name = "scroll")] #[doc = "Getter for the `scroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"] @@ -118,7 +170,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"] pub fn scroll(this: &VttRegion) -> ScrollSetting; #[cfg(feature = "ScrollSetting")] - # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = scroll)] + #[wasm_bindgen(structural, method, setter, js_class = "VTTRegion", js_name = "scroll")] #[doc = "Setter for the `scroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"] diff --git a/crates/web-sys/src/features/gen_WakeLock.rs b/crates/web-sys/src/features/gen_WakeLock.rs index ecdad001894..99c3230b1c3 100644 --- a/crates/web-sys/src/features/gen_WakeLock.rs +++ b/crates/web-sys/src/features/gen_WakeLock.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WakeLock , typescript_type = "WakeLock")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WakeLock", + typescript_type = "WakeLock" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WakeLock` class."] #[doc = ""] @@ -17,7 +21,7 @@ extern "C" { pub type WakeLock; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WakeLockType")] - # [wasm_bindgen (method , structural , js_class = "WakeLock" , js_name = request)] + #[wasm_bindgen(method, structural, js_class = "WakeLock", js_name = "request")] #[doc = "The `request()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLock/request)"] diff --git a/crates/web-sys/src/features/gen_WakeLockSentinel.rs b/crates/web-sys/src/features/gen_WakeLockSentinel.rs index 3cd67d7f153..cdb90b6feec 100644 --- a/crates/web-sys/src/features/gen_WakeLockSentinel.rs +++ b/crates/web-sys/src/features/gen_WakeLockSentinel.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WakeLockSentinel , typescript_type = "WakeLockSentinel")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "WakeLockSentinel", + typescript_type = "WakeLockSentinel" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WakeLockSentinel` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WakeLockSentinel; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WakeLockSentinel" , js_name = released)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WakeLockSentinel", + js_name = "released" + )] #[doc = "Getter for the `released` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/released)"] @@ -28,7 +39,13 @@ extern "C" { pub fn released(this: &WakeLockSentinel) -> bool; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WakeLockType")] - # [wasm_bindgen (structural , method , getter , js_class = "WakeLockSentinel" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WakeLockSentinel", + 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/WakeLockSentinel/type)"] @@ -39,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &WakeLockSentinel) -> WakeLockType; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WakeLockSentinel" , js_name = onrelease)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WakeLockSentinel", + js_name = "onrelease" + )] #[doc = "Getter for the `onrelease` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/onrelease)"] @@ -50,7 +73,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onrelease(this: &WakeLockSentinel) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "WakeLockSentinel" , js_name = onrelease)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WakeLockSentinel", + js_name = "onrelease" + )] #[doc = "Setter for the `onrelease` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/onrelease)"] @@ -61,7 +90,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onrelease(this: &WakeLockSentinel, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WakeLockSentinel" , js_name = release)] + #[wasm_bindgen(method, structural, js_class = "WakeLockSentinel", js_name = "release")] #[doc = "The `release()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/release)"] diff --git a/crates/web-sys/src/features/gen_WatchAdvertisementsOptions.rs b/crates/web-sys/src/features/gen_WatchAdvertisementsOptions.rs index 175bbfaedb8..11097ac1e6f 100644 --- a/crates/web-sys/src/features/gen_WatchAdvertisementsOptions.rs +++ b/crates/web-sys/src/features/gen_WatchAdvertisementsOptions.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WatchAdvertisementsOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WatchAdvertisementsOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WatchAdvertisementsOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WaveShaperNode.rs b/crates/web-sys/src/features/gen_WaveShaperNode.rs index 4c3b8c31ce5..58cecfeae4e 100644 --- a/crates/web-sys/src/features/gen_WaveShaperNode.rs +++ b/crates/web-sys/src/features/gen_WaveShaperNode.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = WaveShaperNode , typescript_type = "WaveShaperNode")] + #[wasm_bindgen( + extends = "AudioNode", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "WaveShaperNode", + typescript_type = "WaveShaperNode" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WaveShaperNode` class."] #[doc = ""] @@ -11,14 +17,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] pub type WaveShaperNode; - # [wasm_bindgen (structural , method , getter , js_class = "WaveShaperNode" , js_name = curve)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WaveShaperNode", + js_name = "curve" + )] #[doc = "Getter for the `curve` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] pub fn curve(this: &WaveShaperNode) -> Option>; - # [wasm_bindgen (structural , method , setter , js_class = "WaveShaperNode" , js_name = curve)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WaveShaperNode", + js_name = "curve" + )] #[doc = "Setter for the `curve` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve)"] @@ -26,7 +44,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] pub fn set_curve(this: &WaveShaperNode, value: Option<&mut [f32]>); #[cfg(feature = "OverSampleType")] - # [wasm_bindgen (structural , method , getter , js_class = "WaveShaperNode" , js_name = oversample)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WaveShaperNode", + js_name = "oversample" + )] #[doc = "Getter for the `oversample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample)"] @@ -34,7 +58,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperNode`*"] pub fn oversample(this: &WaveShaperNode) -> OverSampleType; #[cfg(feature = "OverSampleType")] - # [wasm_bindgen (structural , method , setter , js_class = "WaveShaperNode" , js_name = oversample)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WaveShaperNode", + js_name = "oversample" + )] #[doc = "Setter for the `oversample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample)"] diff --git a/crates/web-sys/src/features/gen_WaveShaperOptions.rs b/crates/web-sys/src/features/gen_WaveShaperOptions.rs index c3581bc61d4..597ee304bf7 100644 --- a/crates/web-sys/src/features/gen_WaveShaperOptions.rs +++ b/crates/web-sys/src/features/gen_WaveShaperOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WaveShaperOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WaveShaperOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WaveShaperOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs b/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs index ddaa46f2c68..f15835dd9d1 100644 --- a/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs +++ b/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGL2RenderingContext , typescript_type = "WebGL2RenderingContext")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGL2RenderingContext", + typescript_type = "WebGL2RenderingContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGl2RenderingContext` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub type WebGl2RenderingContext; - # [wasm_bindgen (structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = canvas)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGL2RenderingContext", + js_name = "canvas" + )] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn canvas(this: &WebGl2RenderingContext) -> Option<::js_sys::Object>; - # [wasm_bindgen (structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = drawingBufferWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGL2RenderingContext", + js_name = "drawingBufferWidth" + )] #[doc = "Getter for the `drawingBufferWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawingBufferWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn drawing_buffer_width(this: &WebGl2RenderingContext) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = drawingBufferHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGL2RenderingContext", + js_name = "drawingBufferHeight" + )] #[doc = "Getter for the `drawingBufferHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawingBufferHeight)"] @@ -33,14 +55,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn drawing_buffer_height(this: &WebGl2RenderingContext) -> i32; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = beginQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "beginQuery" + )] #[doc = "The `beginQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/beginQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn begin_query(this: &WebGl2RenderingContext, target: u32, query: &WebGlQuery); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = beginTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "beginTransformFeedback" + )] #[doc = "The `beginTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback)"] @@ -48,7 +80,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn begin_transform_feedback(this: &WebGl2RenderingContext, primitive_mode: u32); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferBase)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindBufferBase" + )] #[doc = "The `bindBufferBase()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferBase)"] @@ -61,7 +98,12 @@ extern "C" { buffer: Option<&WebGlBuffer>, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindBufferRange" + )] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] @@ -76,7 +118,12 @@ extern "C" { size: i32, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindBufferRange" + )] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] @@ -91,7 +138,12 @@ extern "C" { size: i32, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindBufferRange" + )] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] @@ -106,7 +158,12 @@ extern "C" { size: f64, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindBufferRange" + )] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] @@ -121,7 +178,12 @@ extern "C" { size: f64, ); #[cfg(feature = "WebGlSampler")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindSampler)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindSampler" + )] #[doc = "The `bindSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindSampler)"] @@ -129,7 +191,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn bind_sampler(this: &WebGl2RenderingContext, unit: u32, sampler: Option<&WebGlSampler>); #[cfg(feature = "WebGlTransformFeedback")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindTransformFeedback" + )] #[doc = "The `bindTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback)"] @@ -141,14 +208,24 @@ extern "C" { tf: Option<&WebGlTransformFeedback>, ); #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindVertexArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindVertexArray" + )] #[doc = "The `bindVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindVertexArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] pub fn bind_vertex_array(this: &WebGl2RenderingContext, array: Option<&WebGlVertexArrayObject>); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blitFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "blitFramebuffer" + )] #[doc = "The `blitFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blitFramebuffer)"] @@ -167,21 +244,36 @@ extern "C" { mask: u32, filter: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_i32(this: &WebGl2RenderingContext, target: u32, size: i32, usage: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_f64(this: &WebGl2RenderingContext, target: u32, size: f64, usage: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] @@ -193,7 +285,12 @@ extern "C" { src_data: Option<&::js_sys::ArrayBuffer>, usage: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] @@ -205,7 +302,12 @@ extern "C" { src_data: &::js_sys::Object, usage: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] @@ -217,7 +319,12 @@ extern "C" { src_data: &[u8], usage: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] @@ -230,7 +337,12 @@ extern "C" { usage: u32, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] @@ -243,7 +355,12 @@ extern "C" { usage: u32, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] @@ -257,7 +374,12 @@ extern "C" { src_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] @@ -271,7 +393,12 @@ extern "C" { src_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -283,7 +410,12 @@ extern "C" { offset: i32, src_data: &::js_sys::ArrayBuffer, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -295,7 +427,12 @@ extern "C" { offset: f64, src_data: &::js_sys::ArrayBuffer, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -307,7 +444,12 @@ extern "C" { offset: i32, src_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -319,7 +461,12 @@ extern "C" { offset: f64, src_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -331,7 +478,12 @@ extern "C" { offset: i32, src_data: &[u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -343,7 +495,12 @@ extern "C" { offset: f64, src_data: &[u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -356,7 +513,12 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -369,7 +531,12 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -382,7 +549,12 @@ extern "C" { src_data: &[u8], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -395,7 +567,12 @@ extern "C" { src_data: &[u8], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -409,7 +586,12 @@ extern "C" { src_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -423,7 +605,12 @@ extern "C" { src_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -437,7 +624,12 @@ extern "C" { src_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] @@ -451,7 +643,12 @@ extern "C" { src_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfi)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferfi" + )] #[doc = "The `clearBufferfi()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfi)"] @@ -464,7 +661,12 @@ extern "C" { depth: f32, stencil: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferfv" + )] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] @@ -476,7 +678,12 @@ extern "C" { drawbuffer: i32, values: &[f32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferfv" + )] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] @@ -488,7 +695,12 @@ extern "C" { drawbuffer: i32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferfv" + )] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] @@ -501,7 +713,12 @@ extern "C" { values: &[f32], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferfv" + )] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] @@ -514,7 +731,12 @@ extern "C" { values: &::wasm_bindgen::JsValue, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferiv" + )] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] @@ -526,7 +748,12 @@ extern "C" { drawbuffer: i32, values: &[i32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferiv" + )] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] @@ -538,7 +765,12 @@ extern "C" { drawbuffer: i32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferiv" + )] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] @@ -551,7 +783,12 @@ extern "C" { values: &[i32], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferiv" + )] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] @@ -564,7 +801,12 @@ extern "C" { values: &::wasm_bindgen::JsValue, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferuiv" + )] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] @@ -576,7 +818,12 @@ extern "C" { drawbuffer: i32, values: &[u32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferuiv" + )] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] @@ -588,7 +835,12 @@ extern "C" { drawbuffer: i32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferuiv" + )] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] @@ -601,7 +853,12 @@ extern "C" { values: &[u32], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearBufferuiv" + )] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] @@ -615,7 +872,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clientWaitSync)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clientWaitSync" + )] #[doc = "The `clientWaitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clientWaitSync)"] @@ -628,7 +890,12 @@ extern "C" { timeout: u32, ) -> u32; #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clientWaitSync)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clientWaitSync" + )] #[doc = "The `clientWaitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clientWaitSync)"] @@ -640,7 +907,12 @@ extern "C" { flags: u32, timeout: f64, ) -> u32; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -657,7 +929,12 @@ extern "C" { image_size: i32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -674,7 +951,12 @@ extern "C" { image_size: i32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -690,7 +972,12 @@ extern "C" { border: i32, src_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -706,7 +993,12 @@ extern "C" { border: i32, src_data: &[u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -723,7 +1015,12 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -740,7 +1037,12 @@ extern "C" { src_data: &[u8], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -758,7 +1060,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] @@ -776,7 +1083,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -794,7 +1106,12 @@ extern "C" { image_size: i32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -812,7 +1129,12 @@ extern "C" { image_size: i32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -829,7 +1151,12 @@ extern "C" { border: i32, src_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -846,7 +1173,12 @@ extern "C" { border: i32, src_data: &[u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -864,7 +1196,12 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -882,7 +1219,12 @@ extern "C" { src_data: &[u8], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -901,7 +1243,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexImage3D" + )] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] @@ -920,7 +1267,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -938,7 +1290,12 @@ extern "C" { image_size: i32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -956,7 +1313,12 @@ extern "C" { image_size: i32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -973,7 +1335,12 @@ extern "C" { format: u32, src_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -990,7 +1357,12 @@ extern "C" { format: u32, src_data: &mut [u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -1008,7 +1380,12 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -1026,7 +1403,12 @@ extern "C" { src_data: &mut [u8], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -1045,7 +1427,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] @@ -1064,7 +1451,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1084,7 +1476,12 @@ extern "C" { image_size: i32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1104,7 +1501,12 @@ extern "C" { image_size: i32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1123,7 +1525,12 @@ extern "C" { format: u32, src_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1142,7 +1549,12 @@ extern "C" { format: u32, src_data: &mut [u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1162,7 +1574,12 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1182,7 +1599,12 @@ extern "C" { src_data: &mut [u8], src_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1203,7 +1625,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compressedTexSubImage3D" + )] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] @@ -1224,7 +1651,12 @@ extern "C" { src_offset: u32, src_length_override: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1238,7 +1670,12 @@ extern "C" { write_offset: i32, size: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1252,7 +1689,12 @@ extern "C" { write_offset: i32, size: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1266,7 +1708,12 @@ extern "C" { write_offset: f64, size: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1280,7 +1727,12 @@ extern "C" { write_offset: f64, size: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1294,7 +1746,12 @@ extern "C" { write_offset: i32, size: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1308,7 +1765,12 @@ extern "C" { write_offset: i32, size: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1322,7 +1784,12 @@ extern "C" { write_offset: f64, size: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyBufferSubData" + )] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] @@ -1336,7 +1803,12 @@ extern "C" { write_offset: f64, size: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexSubImage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyTexSubImage3D" + )] #[doc = "The `copyTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D)"] @@ -1355,7 +1827,12 @@ extern "C" { height: i32, ); #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createQuery" + )] #[doc = "The `createQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createQuery)"] @@ -1363,7 +1840,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn create_query(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlSampler")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createSampler)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createSampler" + )] #[doc = "The `createSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createSampler)"] @@ -1371,7 +1853,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn create_sampler(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlTransformFeedback")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createTransformFeedback" + )] #[doc = "The `createTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createTransformFeedback)"] @@ -1381,7 +1868,12 @@ extern "C" { this: &WebGl2RenderingContext, ) -> Option; #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createVertexArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createVertexArray" + )] #[doc = "The `createVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createVertexArray)"] @@ -1389,7 +1881,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] pub fn create_vertex_array(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteQuery" + )] #[doc = "The `deleteQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteQuery)"] @@ -1397,7 +1894,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn delete_query(this: &WebGl2RenderingContext, query: Option<&WebGlQuery>); #[cfg(feature = "WebGlSampler")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteSampler)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteSampler" + )] #[doc = "The `deleteSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteSampler)"] @@ -1405,7 +1907,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn delete_sampler(this: &WebGl2RenderingContext, sampler: Option<&WebGlSampler>); #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteSync)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteSync" + )] #[doc = "The `deleteSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteSync)"] @@ -1413,7 +1920,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn delete_sync(this: &WebGl2RenderingContext, sync: Option<&WebGlSync>); #[cfg(feature = "WebGlTransformFeedback")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteTransformFeedback" + )] #[doc = "The `deleteTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback)"] @@ -1424,7 +1936,12 @@ extern "C" { tf: Option<&WebGlTransformFeedback>, ); #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteVertexArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteVertexArray" + )] #[doc = "The `deleteVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteVertexArray)"] @@ -1434,7 +1951,12 @@ extern "C" { this: &WebGl2RenderingContext, vertex_array: Option<&WebGlVertexArrayObject>, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawArraysInstanced)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawArraysInstanced" + )] #[doc = "The `drawArraysInstanced()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced)"] @@ -1447,14 +1969,24 @@ extern "C" { count: i32, instance_count: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawBuffers)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawBuffers" + )] #[doc = "The `drawBuffers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawBuffers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_buffers(this: &WebGl2RenderingContext, buffers: &::wasm_bindgen::JsValue); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElementsInstanced)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawElementsInstanced" + )] #[doc = "The `drawElementsInstanced()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced)"] @@ -1468,7 +2000,12 @@ extern "C" { offset: i32, instance_count: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElementsInstanced)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawElementsInstanced" + )] #[doc = "The `drawElementsInstanced()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced)"] @@ -1482,7 +2019,12 @@ extern "C" { offset: f64, instance_count: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawRangeElements)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawRangeElements" + )] #[doc = "The `drawRangeElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawRangeElements)"] @@ -1497,7 +2039,12 @@ extern "C" { type_: u32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawRangeElements)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawRangeElements" + )] #[doc = "The `drawRangeElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawRangeElements)"] @@ -1512,14 +2059,24 @@ extern "C" { type_: u32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = endQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "endQuery" + )] #[doc = "The `endQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/endQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn end_query(this: &WebGl2RenderingContext, target: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = endTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "endTransformFeedback" + )] #[doc = "The `endTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/endTransformFeedback)"] @@ -1527,7 +2084,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn end_transform_feedback(this: &WebGl2RenderingContext); #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = fenceSync)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "fenceSync" + )] #[doc = "The `fenceSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/fenceSync)"] @@ -1539,7 +2101,12 @@ extern "C" { flags: u32, ) -> Option; #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferTextureLayer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "framebufferTextureLayer" + )] #[doc = "The `framebufferTextureLayer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer)"] @@ -1554,7 +2121,12 @@ extern "C" { layer: i32, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniformBlockName)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getActiveUniformBlockName" + )] #[doc = "The `getActiveUniformBlockName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName)"] @@ -1566,7 +2138,13 @@ extern "C" { uniform_block_index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniformBlockParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getActiveUniformBlockParameter" + )] #[doc = "The `getActiveUniformBlockParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter)"] @@ -1579,7 +2157,12 @@ extern "C" { pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniforms)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getActiveUniforms" + )] #[doc = "The `getActiveUniforms()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniforms)"] @@ -1591,7 +2174,12 @@ extern "C" { uniform_indices: &::wasm_bindgen::JsValue, pname: u32, ) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1603,7 +2191,12 @@ extern "C" { src_byte_offset: i32, dst_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1615,7 +2208,12 @@ extern "C" { src_byte_offset: f64, dst_data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1627,7 +2225,12 @@ extern "C" { src_byte_offset: i32, dst_data: &mut [u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1639,7 +2242,12 @@ extern "C" { src_byte_offset: f64, dst_data: &mut [u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1652,7 +2260,12 @@ extern "C" { dst_data: &::js_sys::Object, dst_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1665,7 +2278,12 @@ extern "C" { dst_data: &::js_sys::Object, dst_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1678,7 +2296,12 @@ extern "C" { dst_data: &mut [u8], dst_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1691,7 +2314,12 @@ extern "C" { dst_data: &mut [u8], dst_offset: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1705,7 +2333,12 @@ extern "C" { dst_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1719,7 +2352,12 @@ extern "C" { dst_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1733,7 +2371,12 @@ extern "C" { dst_offset: u32, length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferSubData" + )] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] @@ -1748,7 +2391,12 @@ extern "C" { length: u32, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getFragDataLocation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getFragDataLocation" + )] #[doc = "The `getFragDataLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getFragDataLocation)"] @@ -1759,7 +2407,13 @@ extern "C" { program: &WebGlProgram, name: &str, ) -> i32; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getIndexedParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getIndexedParameter" + )] #[doc = "The `getIndexedParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getIndexedParameter)"] @@ -1770,7 +2424,13 @@ extern "C" { target: u32, index: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getInternalformatParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getInternalformatParameter" + )] #[doc = "The `getInternalformatParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter)"] @@ -1782,7 +2442,12 @@ extern "C" { internalformat: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getQuery" + )] #[doc = "The `getQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getQuery)"] @@ -1794,7 +2459,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getQueryParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getQueryParameter" + )] #[doc = "The `getQueryParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getQueryParameter)"] @@ -1806,7 +2476,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlSampler")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getSamplerParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getSamplerParameter" + )] #[doc = "The `getSamplerParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSamplerParameter)"] @@ -1818,7 +2493,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getSyncParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getSyncParameter" + )] #[doc = "The `getSyncParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSyncParameter)"] @@ -1830,7 +2510,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getTransformFeedbackVarying)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getTransformFeedbackVarying" + )] #[doc = "The `getTransformFeedbackVarying()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying)"] @@ -1842,7 +2527,12 @@ extern "C" { index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformBlockIndex)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getUniformBlockIndex" + )] #[doc = "The `getUniformBlockIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex)"] @@ -1854,7 +2544,12 @@ extern "C" { uniform_block_name: &str, ) -> u32; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformIndices)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getUniformIndices" + )] #[doc = "The `getUniformIndices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformIndices)"] @@ -1865,7 +2560,13 @@ extern "C" { program: &WebGlProgram, uniform_names: &::wasm_bindgen::JsValue, ) -> Option<::js_sys::Array>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = invalidateFramebuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "invalidateFramebuffer" + )] #[doc = "The `invalidateFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer)"] @@ -1876,7 +2577,13 @@ extern "C" { target: u32, attachments: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = invalidateSubFramebuffer)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "invalidateSubFramebuffer" + )] #[doc = "The `invalidateSubFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer)"] @@ -1892,7 +2599,12 @@ extern "C" { height: i32, ) -> Result<(), JsValue>; #[cfg(feature = "WebGlQuery")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isQuery)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isQuery" + )] #[doc = "The `isQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isQuery)"] @@ -1900,7 +2612,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn is_query(this: &WebGl2RenderingContext, query: Option<&WebGlQuery>) -> bool; #[cfg(feature = "WebGlSampler")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isSampler)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isSampler" + )] #[doc = "The `isSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isSampler)"] @@ -1908,7 +2625,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn is_sampler(this: &WebGl2RenderingContext, sampler: Option<&WebGlSampler>) -> bool; #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isSync)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isSync" + )] #[doc = "The `isSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isSync)"] @@ -1916,7 +2638,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn is_sync(this: &WebGl2RenderingContext, sync: Option<&WebGlSync>) -> bool; #[cfg(feature = "WebGlTransformFeedback")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isTransformFeedback" + )] #[doc = "The `isTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isTransformFeedback)"] @@ -1927,7 +2654,12 @@ extern "C" { tf: Option<&WebGlTransformFeedback>, ) -> bool; #[cfg(feature = "WebGlVertexArrayObject")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isVertexArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isVertexArray" + )] #[doc = "The `isVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isVertexArray)"] @@ -1937,21 +2669,37 @@ extern "C" { this: &WebGl2RenderingContext, vertex_array: Option<&WebGlVertexArrayObject>, ) -> bool; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = pauseTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "pauseTransformFeedback" + )] #[doc = "The `pauseTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn pause_transform_feedback(this: &WebGl2RenderingContext); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = readBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "readBuffer" + )] #[doc = "The `readBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_buffer(this: &WebGl2RenderingContext, src: u32); - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] @@ -1967,7 +2715,13 @@ extern "C" { type_: u32, dst_data: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] @@ -1983,7 +2737,13 @@ extern "C" { type_: u32, dst_data: Option<&mut [u8]>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] @@ -1999,7 +2759,13 @@ extern "C" { type_: u32, offset: i32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] @@ -2015,7 +2781,13 @@ extern "C" { type_: u32, offset: f64, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] @@ -2032,7 +2804,13 @@ extern "C" { dst_data: &::js_sys::Object, dst_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] @@ -2049,7 +2827,12 @@ extern "C" { dst_data: &mut [u8], dst_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = renderbufferStorageMultisample)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "renderbufferStorageMultisample" + )] #[doc = "The `renderbufferStorageMultisample()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample)"] @@ -2063,7 +2846,12 @@ extern "C" { width: i32, height: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = resumeTransformFeedback)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "resumeTransformFeedback" + )] #[doc = "The `resumeTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback)"] @@ -2071,7 +2859,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn resume_transform_feedback(this: &WebGl2RenderingContext); #[cfg(feature = "WebGlSampler")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = samplerParameterf)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "samplerParameterf" + )] #[doc = "The `samplerParameterf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/samplerParameterf)"] @@ -2084,7 +2877,12 @@ extern "C" { param: f32, ); #[cfg(feature = "WebGlSampler")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = samplerParameteri)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "samplerParameteri" + )] #[doc = "The `samplerParameteri()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/samplerParameteri)"] @@ -2096,7 +2894,13 @@ extern "C" { pname: u32, param: i32, ); - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2114,7 +2918,13 @@ extern "C" { type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2133,7 +2943,13 @@ extern "C" { pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2149,7 +2965,13 @@ extern "C" { source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2165,7 +2987,13 @@ extern "C" { source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2181,7 +3009,13 @@ extern "C" { source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2197,7 +3031,13 @@ extern "C" { source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2212,7 +3052,13 @@ extern "C" { type_: u32, source: &ImageData, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2230,7 +3076,13 @@ extern "C" { type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2249,7 +3101,13 @@ extern "C" { pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2268,7 +3126,13 @@ extern "C" { source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2287,7 +3151,13 @@ extern "C" { source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2306,7 +3176,13 @@ extern "C" { source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2325,7 +3201,13 @@ extern "C" { source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2343,7 +3225,13 @@ extern "C" { type_: u32, source: &ImageData, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2362,7 +3250,13 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] @@ -2381,7 +3275,13 @@ extern "C" { src_data: &[u8], src_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2400,7 +3300,13 @@ extern "C" { type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2420,7 +3326,13 @@ extern "C" { pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2440,7 +3352,13 @@ extern "C" { source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2460,7 +3378,13 @@ extern "C" { source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2480,7 +3404,13 @@ extern "C" { source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2500,7 +3430,13 @@ extern "C" { source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2519,7 +3455,13 @@ extern "C" { type_: u32, source: &ImageData, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2538,7 +3480,13 @@ extern "C" { type_: u32, src_data: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2557,7 +3505,13 @@ extern "C" { type_: u32, src_data: Option<&[u8]>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2577,7 +3531,13 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texImage3D" + )] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] @@ -2597,7 +3557,12 @@ extern "C" { src_data: &[u8], src_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = texStorage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texStorage2D" + )] #[doc = "The `texStorage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texStorage2D)"] @@ -2611,7 +3576,12 @@ extern "C" { width: i32, height: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = texStorage3D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texStorage3D" + )] #[doc = "The `texStorage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texStorage3D)"] @@ -2626,7 +3596,13 @@ extern "C" { height: i32, depth: i32, ); - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2644,7 +3620,13 @@ extern "C" { type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2663,7 +3645,13 @@ extern "C" { pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2680,7 +3668,13 @@ extern "C" { source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2697,7 +3691,13 @@ extern "C" { source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2714,7 +3714,13 @@ extern "C" { source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2731,7 +3737,13 @@ extern "C" { source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2747,7 +3759,13 @@ extern "C" { type_: u32, source: &ImageData, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2765,7 +3783,13 @@ extern "C" { type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2784,7 +3808,13 @@ extern "C" { pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2803,7 +3833,13 @@ extern "C" { source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2822,7 +3858,13 @@ extern "C" { source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2841,7 +3883,13 @@ extern "C" { source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2860,7 +3908,13 @@ extern "C" { source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2878,7 +3932,13 @@ extern "C" { type_: u32, source: &ImageData, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2897,7 +3957,13 @@ extern "C" { src_data: &::js_sys::Object, src_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] @@ -2916,7 +3982,13 @@ extern "C" { src_data: &[u8], src_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -2936,7 +4008,13 @@ extern "C" { type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -2957,7 +4035,13 @@ extern "C" { pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -2978,7 +4062,13 @@ extern "C" { source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -2999,7 +4089,13 @@ extern "C" { source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -3020,7 +4116,13 @@ extern "C" { source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -3041,7 +4143,13 @@ extern "C" { source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -3061,7 +4169,13 @@ extern "C" { type_: u32, source: &ImageData, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -3081,7 +4195,13 @@ extern "C" { type_: u32, src_data: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -3101,7 +4221,13 @@ extern "C" { type_: u32, src_data: Option<&[u8]>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -3122,7 +4248,13 @@ extern "C" { src_data: Option<&::js_sys::Object>, src_offset: u32, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texSubImage3D" + )] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] @@ -3144,7 +4276,12 @@ extern "C" { src_offset: u32, ) -> Result<(), JsValue>; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = transformFeedbackVaryings)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "transformFeedbackVaryings" + )] #[doc = "The `transformFeedbackVaryings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings)"] @@ -3157,7 +4294,12 @@ extern "C" { buffer_mode: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] @@ -3169,7 +4311,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] @@ -3181,7 +4328,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] @@ -3194,7 +4346,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] @@ -3207,7 +4364,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] @@ -3221,7 +4383,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] @@ -3235,7 +4402,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] @@ -3247,7 +4419,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] @@ -3259,7 +4436,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] @@ -3272,7 +4454,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] @@ -3285,7 +4472,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] @@ -3299,7 +4491,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] @@ -3313,7 +4510,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1ui)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1ui" + )] #[doc = "The `uniform1ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1ui)"] @@ -3325,7 +4527,12 @@ extern "C" { v0: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1uiv" + )] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] @@ -3337,7 +4544,12 @@ extern "C" { data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1uiv" + )] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] @@ -3349,7 +4561,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1uiv" + )] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] @@ -3362,7 +4579,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1uiv" + )] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] @@ -3375,7 +4597,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1uiv" + )] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] @@ -3389,7 +4616,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1uiv" + )] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] @@ -3403,7 +4635,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] @@ -3415,7 +4652,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] @@ -3427,7 +4669,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] @@ -3440,7 +4687,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] @@ -3453,7 +4705,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] @@ -3467,7 +4724,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] @@ -3481,7 +4743,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] @@ -3493,7 +4760,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] @@ -3505,7 +4777,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] @@ -3518,7 +4795,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] @@ -3531,7 +4813,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] @@ -3545,7 +4832,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] @@ -3559,7 +4851,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2ui)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2ui" + )] #[doc = "The `uniform2ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2ui)"] @@ -3572,7 +4869,12 @@ extern "C" { v1: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2uiv" + )] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] @@ -3584,7 +4886,12 @@ extern "C" { data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2uiv" + )] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] @@ -3596,7 +4903,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2uiv" + )] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] @@ -3609,7 +4921,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2uiv" + )] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] @@ -3622,7 +4939,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2uiv" + )] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] @@ -3636,7 +4958,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2uiv" + )] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] @@ -3650,7 +4977,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] @@ -3662,7 +4994,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] @@ -3674,7 +5011,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] @@ -3687,7 +5029,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] @@ -3700,7 +5047,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] @@ -3714,7 +5066,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] @@ -3728,7 +5085,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] @@ -3740,7 +5102,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] @@ -3752,7 +5119,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] @@ -3765,7 +5137,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] @@ -3778,7 +5155,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] @@ -3792,7 +5174,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] @@ -3806,7 +5193,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3ui)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3ui" + )] #[doc = "The `uniform3ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3ui)"] @@ -3820,7 +5212,12 @@ extern "C" { v2: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3uiv" + )] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] @@ -3832,7 +5229,12 @@ extern "C" { data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3uiv" + )] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] @@ -3844,7 +5246,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3uiv" + )] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] @@ -3857,7 +5264,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3uiv" + )] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] @@ -3870,7 +5282,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3uiv" + )] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] @@ -3884,7 +5301,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3uiv" + )] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] @@ -3898,7 +5320,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] @@ -3910,7 +5337,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] @@ -3922,7 +5354,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] @@ -3935,7 +5372,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] @@ -3948,7 +5390,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] @@ -3962,7 +5409,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] @@ -3976,7 +5428,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] @@ -3988,7 +5445,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] @@ -4000,7 +5462,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] @@ -4013,7 +5480,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] @@ -4026,7 +5498,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] @@ -4040,7 +5517,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] @@ -4054,7 +5536,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4ui)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4ui" + )] #[doc = "The `uniform4ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4ui)"] @@ -4069,7 +5556,12 @@ extern "C" { v3: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4uiv" + )] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] @@ -4081,7 +5573,12 @@ extern "C" { data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4uiv" + )] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] @@ -4093,7 +5590,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4uiv" + )] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] @@ -4106,7 +5608,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4uiv" + )] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] @@ -4119,7 +5626,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4uiv" + )] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] @@ -4133,7 +5645,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4uiv" + )] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] @@ -4147,7 +5664,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformBlockBinding)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformBlockBinding" + )] #[doc = "The `uniformBlockBinding()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding)"] @@ -4160,7 +5682,12 @@ extern "C" { uniform_block_binding: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] @@ -4173,7 +5700,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] @@ -4186,7 +5718,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] @@ -4200,7 +5737,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] @@ -4214,7 +5756,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] @@ -4229,7 +5776,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] @@ -4244,7 +5796,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x3fv" + )] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] @@ -4257,7 +5814,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x3fv" + )] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] @@ -4270,7 +5832,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x3fv" + )] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] @@ -4284,7 +5851,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x3fv" + )] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] @@ -4298,7 +5870,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x3fv" + )] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] @@ -4313,7 +5890,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x3fv" + )] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] @@ -4328,7 +5910,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x4fv" + )] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] @@ -4341,7 +5928,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x4fv" + )] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] @@ -4354,7 +5946,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x4fv" + )] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] @@ -4368,7 +5965,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x4fv" + )] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] @@ -4382,7 +5984,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x4fv" + )] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] @@ -4397,7 +6004,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix2x4fv" + )] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] @@ -4412,7 +6024,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] @@ -4425,7 +6042,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] @@ -4438,7 +6060,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] @@ -4452,7 +6079,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] @@ -4466,7 +6098,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] @@ -4481,7 +6118,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] @@ -4496,7 +6138,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x2fv" + )] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] @@ -4509,7 +6156,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x2fv" + )] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] @@ -4522,7 +6174,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x2fv" + )] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] @@ -4536,7 +6193,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x2fv" + )] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] @@ -4550,7 +6212,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x2fv" + )] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] @@ -4565,7 +6232,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x2fv" + )] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] @@ -4580,7 +6252,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x4fv" + )] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] @@ -4593,7 +6270,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x4fv" + )] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] @@ -4606,7 +6288,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x4fv" + )] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] @@ -4620,7 +6307,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x4fv" + )] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] @@ -4634,7 +6326,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x4fv" + )] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] @@ -4649,7 +6346,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix3x4fv" + )] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] @@ -4664,7 +6366,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] @@ -4677,7 +6384,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] @@ -4690,7 +6402,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] @@ -4704,7 +6421,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] @@ -4718,7 +6440,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] @@ -4733,7 +6460,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] @@ -4748,7 +6480,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x2fv" + )] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] @@ -4761,7 +6498,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x2fv" + )] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] @@ -4774,7 +6516,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x2fv" + )] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] @@ -4788,7 +6535,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x2fv" + )] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] @@ -4802,7 +6554,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x2fv" + )] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] @@ -4817,7 +6574,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x2fv" + )] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] @@ -4832,7 +6594,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x3fv" + )] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] @@ -4845,7 +6612,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x3fv" + )] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] @@ -4858,7 +6630,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x3fv" + )] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] @@ -4872,7 +6649,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x3fv" + )] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] @@ -4886,7 +6668,12 @@ extern "C" { src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x3fv" + )] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] @@ -4901,7 +6688,12 @@ extern "C" { src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniformMatrix4x3fv" + )] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] @@ -4915,14 +6707,24 @@ extern "C" { src_offset: u32, src_length: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribDivisor)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribDivisor" + )] #[doc = "The `vertexAttribDivisor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_divisor(this: &WebGl2RenderingContext, index: u32, divisor: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribI4i" + )] #[doc = "The `vertexAttribI4i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4i)"] @@ -4936,7 +6738,12 @@ extern "C" { z: i32, w: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribI4iv" + )] #[doc = "The `vertexAttribI4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4iv)"] @@ -4947,7 +6754,12 @@ extern "C" { index: u32, values: &mut [i32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribI4iv" + )] #[doc = "The `vertexAttribI4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4iv)"] @@ -4958,7 +6770,12 @@ extern "C" { index: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4ui)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribI4ui" + )] #[doc = "The `vertexAttribI4ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4ui)"] @@ -4972,7 +6789,12 @@ extern "C" { z: u32, w: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribI4uiv" + )] #[doc = "The `vertexAttribI4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4uiv)"] @@ -4983,7 +6805,12 @@ extern "C" { index: u32, values: &mut [u32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4uiv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribI4uiv" + )] #[doc = "The `vertexAttribI4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4uiv)"] @@ -4994,7 +6821,12 @@ extern "C" { index: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribIPointer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribIPointer" + )] #[doc = "The `vertexAttribIPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer)"] @@ -5008,7 +6840,12 @@ extern "C" { stride: i32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribIPointer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribIPointer" + )] #[doc = "The `vertexAttribIPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer)"] @@ -5023,7 +6860,12 @@ extern "C" { offset: f64, ); #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = waitSync)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "waitSync" + )] #[doc = "The `waitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/waitSync)"] @@ -5036,7 +6878,12 @@ extern "C" { timeout: i32, ); #[cfg(feature = "WebGlSync")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = waitSync)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "waitSync" + )] #[doc = "The `waitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/waitSync)"] @@ -5048,7 +6895,12 @@ extern "C" { flags: u32, timeout: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = activeTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "activeTexture" + )] #[doc = "The `activeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/activeTexture)"] @@ -5056,7 +6908,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn active_texture(this: &WebGl2RenderingContext, texture: u32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = attachShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "attachShader" + )] #[doc = "The `attachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/attachShader)"] @@ -5068,7 +6925,12 @@ extern "C" { shader: &WebGlShader, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindAttribLocation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindAttribLocation" + )] #[doc = "The `bindAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindAttribLocation)"] @@ -5081,7 +6943,12 @@ extern "C" { name: &str, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindBuffer" + )] #[doc = "The `bindBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBuffer)"] @@ -5089,7 +6956,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn bind_buffer(this: &WebGl2RenderingContext, target: u32, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindFramebuffer" + )] #[doc = "The `bindFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindFramebuffer)"] @@ -5101,7 +6973,12 @@ extern "C" { framebuffer: Option<&WebGlFramebuffer>, ); #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindRenderbuffer" + )] #[doc = "The `bindRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindRenderbuffer)"] @@ -5113,42 +6990,72 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "bindTexture" + )] #[doc = "The `bindTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn bind_texture(this: &WebGl2RenderingContext, target: u32, texture: Option<&WebGlTexture>); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendColor)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "blendColor" + )] #[doc = "The `blendColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_color(this: &WebGl2RenderingContext, red: f32, green: f32, blue: f32, alpha: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendEquation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "blendEquation" + )] #[doc = "The `blendEquation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendEquation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_equation(this: &WebGl2RenderingContext, mode: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendEquationSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "blendEquationSeparate" + )] #[doc = "The `blendEquationSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendEquationSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_equation_separate(this: &WebGl2RenderingContext, mode_rgb: u32, mode_alpha: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendFunc)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "blendFunc" + )] #[doc = "The `blendFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_func(this: &WebGl2RenderingContext, sfactor: u32, dfactor: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendFuncSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "blendFuncSeparate" + )] #[doc = "The `blendFuncSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendFuncSeparate)"] @@ -5161,42 +7068,72 @@ extern "C" { src_alpha: u32, dst_alpha: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = checkFramebufferStatus)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "checkFramebufferStatus" + )] #[doc = "The `checkFramebufferStatus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/checkFramebufferStatus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn check_framebuffer_status(this: &WebGl2RenderingContext, target: u32) -> u32; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clear)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear(this: &WebGl2RenderingContext, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearColor)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearColor" + )] #[doc = "The `clearColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_color(this: &WebGl2RenderingContext, red: f32, green: f32, blue: f32, alpha: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearDepth)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearDepth" + )] #[doc = "The `clearDepth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_depth(this: &WebGl2RenderingContext, depth: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearStencil)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "clearStencil" + )] #[doc = "The `clearStencil()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearStencil)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_stencil(this: &WebGl2RenderingContext, s: i32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = colorMask)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "colorMask" + )] #[doc = "The `colorMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/colorMask)"] @@ -5210,14 +7147,24 @@ extern "C" { alpha: bool, ); #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compileShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "compileShader" + )] #[doc = "The `compileShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compileShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn compile_shader(this: &WebGl2RenderingContext, shader: &WebGlShader); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyTexImage2D" + )] #[doc = "The `copyTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexImage2D)"] @@ -5234,7 +7181,12 @@ extern "C" { height: i32, border: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "copyTexSubImage2D" + )] #[doc = "The `copyTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexSubImage2D)"] @@ -5252,7 +7204,12 @@ extern "C" { height: i32, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createBuffer" + )] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createBuffer)"] @@ -5260,7 +7217,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn create_buffer(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createFramebuffer" + )] #[doc = "The `createFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createFramebuffer)"] @@ -5268,7 +7230,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] pub fn create_framebuffer(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createProgram" + )] #[doc = "The `createProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createProgram)"] @@ -5276,7 +7243,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn create_program(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createRenderbuffer" + )] #[doc = "The `createRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createRenderbuffer)"] @@ -5284,7 +7256,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] pub fn create_renderbuffer(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createShader" + )] #[doc = "The `createShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createShader)"] @@ -5292,14 +7269,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn create_shader(this: &WebGl2RenderingContext, type_: u32) -> Option; #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "createTexture" + )] #[doc = "The `createTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn create_texture(this: &WebGl2RenderingContext) -> Option; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = cullFace)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "cullFace" + )] #[doc = "The `cullFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/cullFace)"] @@ -5307,7 +7294,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn cull_face(this: &WebGl2RenderingContext, mode: u32); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteBuffer" + )] #[doc = "The `deleteBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteBuffer)"] @@ -5315,7 +7307,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn delete_buffer(this: &WebGl2RenderingContext, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteFramebuffer" + )] #[doc = "The `deleteFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteFramebuffer)"] @@ -5326,7 +7323,12 @@ extern "C" { framebuffer: Option<&WebGlFramebuffer>, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteProgram" + )] #[doc = "The `deleteProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteProgram)"] @@ -5334,7 +7336,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn delete_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>); #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteRenderbuffer" + )] #[doc = "The `deleteRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteRenderbuffer)"] @@ -5345,7 +7352,12 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteShader" + )] #[doc = "The `deleteShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteShader)"] @@ -5353,28 +7365,48 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn delete_shader(this: &WebGl2RenderingContext, shader: Option<&WebGlShader>); #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "deleteTexture" + )] #[doc = "The `deleteTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn delete_texture(this: &WebGl2RenderingContext, texture: Option<&WebGlTexture>); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = depthFunc)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "depthFunc" + )] #[doc = "The `depthFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn depth_func(this: &WebGl2RenderingContext, func: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = depthMask)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "depthMask" + )] #[doc = "The `depthMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn depth_mask(this: &WebGl2RenderingContext, flag: bool); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = depthRange)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "depthRange" + )] #[doc = "The `depthRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthRange)"] @@ -5382,7 +7414,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn depth_range(this: &WebGl2RenderingContext, z_near: f32, z_far: f32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = detachShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "detachShader" + )] #[doc = "The `detachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/detachShader)"] @@ -5393,28 +7430,48 @@ extern "C" { program: &WebGlProgram, shader: &WebGlShader, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = disable)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "disable" + )] #[doc = "The `disable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/disable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn disable(this: &WebGl2RenderingContext, cap: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = disableVertexAttribArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "disableVertexAttribArray" + )] #[doc = "The `disableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/disableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn disable_vertex_attrib_array(this: &WebGl2RenderingContext, index: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawArrays)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawArrays" + )] #[doc = "The `drawArrays()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawArrays)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_arrays(this: &WebGl2RenderingContext, mode: u32, first: i32, count: i32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElements)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawElements" + )] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElements)"] @@ -5427,7 +7484,12 @@ extern "C" { type_: u32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElements)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "drawElements" + )] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElements)"] @@ -5440,28 +7502,48 @@ extern "C" { type_: u32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = enable)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "enable" + )] #[doc = "The `enable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/enable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn enable(this: &WebGl2RenderingContext, cap: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = enableVertexAttribArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "enableVertexAttribArray" + )] #[doc = "The `enableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/enableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn enable_vertex_attrib_array(this: &WebGl2RenderingContext, index: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = finish)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "finish" + )] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn finish(this: &WebGl2RenderingContext); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = flush)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "flush" + )] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/flush)"] @@ -5469,7 +7551,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn flush(this: &WebGl2RenderingContext); #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "framebufferRenderbuffer" + )] #[doc = "The `framebufferRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferRenderbuffer)"] @@ -5483,7 +7570,12 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferTexture2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "framebufferTexture2D" + )] #[doc = "The `framebufferTexture2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferTexture2D)"] @@ -5497,14 +7589,24 @@ extern "C" { texture: Option<&WebGlTexture>, level: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = frontFace)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "frontFace" + )] #[doc = "The `frontFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/frontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn front_face(this: &WebGl2RenderingContext, mode: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = generateMipmap)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "generateMipmap" + )] #[doc = "The `generateMipmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/generateMipmap)"] @@ -5512,7 +7614,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn generate_mipmap(this: &WebGl2RenderingContext, target: u32); #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveAttrib)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getActiveAttrib" + )] #[doc = "The `getActiveAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveAttrib)"] @@ -5524,7 +7631,12 @@ extern "C" { index: u32, ) -> Option; #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getActiveUniform" + )] #[doc = "The `getActiveUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniform)"] @@ -5536,7 +7648,12 @@ extern "C" { index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getAttachedShaders)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getAttachedShaders" + )] #[doc = "The `getAttachedShaders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getAttachedShaders)"] @@ -5547,7 +7664,12 @@ extern "C" { program: &WebGlProgram, ) -> Option<::js_sys::Array>; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getAttribLocation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getAttribLocation" + )] #[doc = "The `getAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getAttribLocation)"] @@ -5558,7 +7680,12 @@ extern "C" { program: &WebGlProgram, name: &str, ) -> i32; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getBufferParameter" + )] #[doc = "The `getBufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferParameter)"] @@ -5570,21 +7697,37 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlContextAttributes")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getContextAttributes)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getContextAttributes" + )] #[doc = "The `getContextAttributes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getContextAttributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlContextAttributes`*"] pub fn get_context_attributes(this: &WebGl2RenderingContext) -> Option; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getError)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getError" + )] #[doc = "The `getError()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_error(this: &WebGl2RenderingContext) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getExtension)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getExtension" + )] #[doc = "The `getExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getExtension)"] @@ -5594,7 +7737,13 @@ extern "C" { this: &WebGl2RenderingContext, name: &str, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getFramebufferAttachmentParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getFramebufferAttachmentParameter" + )] #[doc = "The `getFramebufferAttachmentParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getFramebufferAttachmentParameter)"] @@ -5606,7 +7755,13 @@ extern "C" { attachment: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getParameter" + )] #[doc = "The `getParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getParameter)"] @@ -5617,7 +7772,12 @@ extern "C" { pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getProgramInfoLog)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getProgramInfoLog" + )] #[doc = "The `getProgramInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getProgramInfoLog)"] @@ -5628,7 +7788,12 @@ extern "C" { program: &WebGlProgram, ) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getProgramParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getProgramParameter" + )] #[doc = "The `getProgramParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getProgramParameter)"] @@ -5639,7 +7804,12 @@ extern "C" { program: &WebGlProgram, pname: u32, ) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getRenderbufferParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getRenderbufferParameter" + )] #[doc = "The `getRenderbufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getRenderbufferParameter)"] @@ -5651,7 +7821,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderInfoLog)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getShaderInfoLog" + )] #[doc = "The `getShaderInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderInfoLog)"] @@ -5662,7 +7837,12 @@ extern "C" { shader: &WebGlShader, ) -> Option; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getShaderParameter" + )] #[doc = "The `getShaderParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderParameter)"] @@ -5674,7 +7854,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShaderPrecisionFormat")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderPrecisionFormat)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getShaderPrecisionFormat" + )] #[doc = "The `getShaderPrecisionFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderPrecisionFormat)"] @@ -5686,7 +7871,12 @@ extern "C" { precisiontype: u32, ) -> Option; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderSource)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getShaderSource" + )] #[doc = "The `getShaderSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderSource)"] @@ -5694,14 +7884,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn get_shader_source(this: &WebGl2RenderingContext, shader: &WebGlShader) -> Option; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getSupportedExtensions)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getSupportedExtensions" + )] #[doc = "The `getSupportedExtensions()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSupportedExtensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_supported_extensions(this: &WebGl2RenderingContext) -> Option<::js_sys::Array>; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getTexParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getTexParameter" + )] #[doc = "The `getTexParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getTexParameter)"] @@ -5713,7 +7913,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getUniform" + )] #[doc = "The `getUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniform)"] @@ -5725,7 +7930,12 @@ extern "C" { location: &WebGlUniformLocation, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformLocation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getUniformLocation" + )] #[doc = "The `getUniformLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformLocation)"] @@ -5736,7 +7946,13 @@ extern "C" { program: &WebGlProgram, name: &str, ) -> Option; - # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getVertexAttrib)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getVertexAttrib" + )] #[doc = "The `getVertexAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getVertexAttrib)"] @@ -5747,14 +7963,24 @@ extern "C" { index: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getVertexAttribOffset)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "getVertexAttribOffset" + )] #[doc = "The `getVertexAttribOffset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getVertexAttribOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_vertex_attrib_offset(this: &WebGl2RenderingContext, index: u32, pname: u32) -> f64; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = hint)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "hint" + )] #[doc = "The `hint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/hint)"] @@ -5762,21 +7988,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn hint(this: &WebGl2RenderingContext, target: u32, mode: u32); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isBuffer" + )] #[doc = "The `isBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn is_buffer(this: &WebGl2RenderingContext, buffer: Option<&WebGlBuffer>) -> bool; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isContextLost)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isContextLost" + )] #[doc = "The `isContextLost()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isContextLost)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn is_context_lost(this: &WebGl2RenderingContext) -> bool; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isEnabled)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isEnabled" + )] #[doc = "The `isEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isEnabled)"] @@ -5784,7 +8025,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn is_enabled(this: &WebGl2RenderingContext, cap: u32) -> bool; #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isFramebuffer" + )] #[doc = "The `isFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isFramebuffer)"] @@ -5795,7 +8041,12 @@ extern "C" { framebuffer: Option<&WebGlFramebuffer>, ) -> bool; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isProgram" + )] #[doc = "The `isProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isProgram)"] @@ -5803,7 +8054,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn is_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>) -> bool; #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isRenderbuffer" + )] #[doc = "The `isRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isRenderbuffer)"] @@ -5814,7 +8070,12 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ) -> bool; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isShader" + )] #[doc = "The `isShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isShader)"] @@ -5822,14 +8083,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn is_shader(this: &WebGl2RenderingContext, shader: Option<&WebGlShader>) -> bool; #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "isTexture" + )] #[doc = "The `isTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn is_texture(this: &WebGl2RenderingContext, texture: Option<&WebGlTexture>) -> bool; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = lineWidth)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "lineWidth" + )] #[doc = "The `lineWidth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/lineWidth)"] @@ -5837,35 +8108,60 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn line_width(this: &WebGl2RenderingContext, width: f32); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = linkProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "linkProgram" + )] #[doc = "The `linkProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/linkProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn link_program(this: &WebGl2RenderingContext, program: &WebGlProgram); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = makeXRCompatible)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "makeXRCompatible" + )] #[doc = "The `makeXRCompatible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/makeXRCompatible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn make_xr_compatible(this: &WebGl2RenderingContext) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = pixelStorei)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "pixelStorei" + )] #[doc = "The `pixelStorei()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/pixelStorei)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn pixel_storei(this: &WebGl2RenderingContext, pname: u32, param: i32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = polygonOffset)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "polygonOffset" + )] #[doc = "The `polygonOffset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/polygonOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn polygon_offset(this: &WebGl2RenderingContext, factor: f32, units: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = renderbufferStorage)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "renderbufferStorage" + )] #[doc = "The `renderbufferStorage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/renderbufferStorage)"] @@ -5878,14 +8174,24 @@ extern "C" { width: i32, height: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = sampleCoverage)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "sampleCoverage" + )] #[doc = "The `sampleCoverage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/sampleCoverage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn sample_coverage(this: &WebGl2RenderingContext, value: f32, invert: bool); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = scissor)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "scissor" + )] #[doc = "The `scissor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/scissor)"] @@ -5893,21 +8199,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn scissor(this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32); #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = shaderSource)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "shaderSource" + )] #[doc = "The `shaderSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/shaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn shader_source(this: &WebGl2RenderingContext, shader: &WebGlShader, source: &str); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilFunc)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "stencilFunc" + )] #[doc = "The `stencilFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn stencil_func(this: &WebGl2RenderingContext, func: u32, ref_: i32, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilFuncSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "stencilFuncSeparate" + )] #[doc = "The `stencilFuncSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilFuncSeparate)"] @@ -5920,28 +8241,48 @@ extern "C" { ref_: i32, mask: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilMask)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "stencilMask" + )] #[doc = "The `stencilMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn stencil_mask(this: &WebGl2RenderingContext, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilMaskSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "stencilMaskSeparate" + )] #[doc = "The `stencilMaskSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilMaskSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn stencil_mask_separate(this: &WebGl2RenderingContext, face: u32, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilOp)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "stencilOp" + )] #[doc = "The `stencilOp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilOp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn stencil_op(this: &WebGl2RenderingContext, fail: u32, zfail: u32, zpass: u32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilOpSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "stencilOpSeparate" + )] #[doc = "The `stencilOpSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilOpSeparate)"] @@ -5954,14 +8295,24 @@ extern "C" { zfail: u32, zpass: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = texParameterf)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texParameterf" + )] #[doc = "The `texParameterf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texParameterf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_parameterf(this: &WebGl2RenderingContext, target: u32, pname: u32, param: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = texParameteri)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "texParameteri" + )] #[doc = "The `texParameteri()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texParameteri)"] @@ -5969,7 +8320,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_parameteri(this: &WebGl2RenderingContext, target: u32, pname: u32, param: i32); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1f" + )] #[doc = "The `uniform1f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1f)"] @@ -5981,7 +8337,12 @@ extern "C" { x: f32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform1i" + )] #[doc = "The `uniform1i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1i)"] @@ -5993,7 +8354,12 @@ extern "C" { x: i32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2f" + )] #[doc = "The `uniform2f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2f)"] @@ -6006,7 +8372,12 @@ extern "C" { y: f32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform2i" + )] #[doc = "The `uniform2i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2i)"] @@ -6019,7 +8390,12 @@ extern "C" { y: i32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3f" + )] #[doc = "The `uniform3f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3f)"] @@ -6033,7 +8409,12 @@ extern "C" { z: f32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform3i" + )] #[doc = "The `uniform3i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3i)"] @@ -6047,7 +8428,12 @@ extern "C" { z: i32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4f" + )] #[doc = "The `uniform4f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4f)"] @@ -6062,7 +8448,12 @@ extern "C" { w: f32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "uniform4i" + )] #[doc = "The `uniform4i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4i)"] @@ -6077,7 +8468,12 @@ extern "C" { w: i32, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = useProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "useProgram" + )] #[doc = "The `useProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/useProgram)"] @@ -6085,21 +8481,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn use_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = validateProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "validateProgram" + )] #[doc = "The `validateProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/validateProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn validate_program(this: &WebGl2RenderingContext, program: &WebGlProgram); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib1f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib1f" + )] #[doc = "The `vertexAttrib1f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib1f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib1f(this: &WebGl2RenderingContext, indx: u32, x: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib1fv" + )] #[doc = "The `vertexAttrib1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib1fv)"] @@ -6110,7 +8521,12 @@ extern "C" { indx: u32, values: &[f32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib1fv" + )] #[doc = "The `vertexAttrib1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib1fv)"] @@ -6121,14 +8537,24 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib2f" + )] #[doc = "The `vertexAttrib2f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib2f(this: &WebGl2RenderingContext, indx: u32, x: f32, y: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib2fv" + )] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2fv)"] @@ -6139,7 +8565,12 @@ extern "C" { indx: u32, values: &[f32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib2fv" + )] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2fv)"] @@ -6150,14 +8581,24 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib3f" + )] #[doc = "The `vertexAttrib3f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib3f(this: &WebGl2RenderingContext, indx: u32, x: f32, y: f32, z: f32); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib3fv" + )] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3fv)"] @@ -6168,7 +8609,12 @@ extern "C" { indx: u32, values: &[f32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib3fv" + )] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3fv)"] @@ -6179,7 +8625,12 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib4f" + )] #[doc = "The `vertexAttrib4f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4f)"] @@ -6193,7 +8644,12 @@ extern "C" { z: f32, w: f32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib4fv" + )] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4fv)"] @@ -6204,7 +8660,12 @@ extern "C" { indx: u32, values: &[f32], ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttrib4fv" + )] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4fv)"] @@ -6215,7 +8676,12 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribPointer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribPointer" + )] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribPointer)"] @@ -6230,7 +8696,12 @@ extern "C" { stride: i32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribPointer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "vertexAttribPointer" + )] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribPointer)"] @@ -6245,7 +8716,12 @@ extern "C" { stride: i32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = viewport)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGL2RenderingContext", + js_name = "viewport" + )] #[doc = "The `viewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/viewport)"] diff --git a/crates/web-sys/src/features/gen_WebGlActiveInfo.rs b/crates/web-sys/src/features/gen_WebGlActiveInfo.rs index 985a83b7d17..77e705c7875 100644 --- a/crates/web-sys/src/features/gen_WebGlActiveInfo.rs +++ b/crates/web-sys/src/features/gen_WebGlActiveInfo.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLActiveInfo , typescript_type = "WebGLActiveInfo")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLActiveInfo", + typescript_type = "WebGLActiveInfo" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlActiveInfo` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] pub type WebGlActiveInfo; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLActiveInfo" , js_name = size)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLActiveInfo", + js_name = "size" + )] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] pub fn size(this: &WebGlActiveInfo) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLActiveInfo" , js_name = type)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLActiveInfo", + 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/WebGLActiveInfo/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] pub fn type_(this: &WebGlActiveInfo) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLActiveInfo" , js_name = name)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLActiveInfo", + 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/WebGLActiveInfo/name)"] diff --git a/crates/web-sys/src/features/gen_WebGlBuffer.rs b/crates/web-sys/src/features/gen_WebGlBuffer.rs index 43f1dfb296c..29d209758f8 100644 --- a/crates/web-sys/src/features/gen_WebGlBuffer.rs +++ b/crates/web-sys/src/features/gen_WebGlBuffer.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLBuffer , typescript_type = "WebGLBuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLBuffer", + typescript_type = "WebGLBuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlBuffer` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlContextAttributes.rs b/crates/web-sys/src/features/gen_WebGlContextAttributes.rs index 4be2298032d..237eb57da5d 100644 --- a/crates/web-sys/src/features/gen_WebGlContextAttributes.rs +++ b/crates/web-sys/src/features/gen_WebGlContextAttributes.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLContextAttributes)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WebGLContextAttributes")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlContextAttributes` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlContextEvent.rs b/crates/web-sys/src/features/gen_WebGlContextEvent.rs index 0c328adbdd3..9ba3b0f2644 100644 --- a/crates/web-sys/src/features/gen_WebGlContextEvent.rs +++ b/crates/web-sys/src/features/gen_WebGlContextEvent.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = WebGLContextEvent , typescript_type = "WebGLContextEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "WebGLContextEvent", + typescript_type = "WebGLContextEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlContextEvent` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] pub type WebGlContextEvent; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLContextEvent" , js_name = statusMessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLContextEvent", + js_name = "statusMessage" + )] #[doc = "Getter for the `statusMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/statusMessage)"] diff --git a/crates/web-sys/src/features/gen_WebGlContextEventInit.rs b/crates/web-sys/src/features/gen_WebGlContextEventInit.rs index 28e1c3fdb88..c3e297442bc 100644 --- a/crates/web-sys/src/features/gen_WebGlContextEventInit.rs +++ b/crates/web-sys/src/features/gen_WebGlContextEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLContextEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WebGLContextEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlContextEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlFramebuffer.rs b/crates/web-sys/src/features/gen_WebGlFramebuffer.rs index 87c9a60f639..d5b750c0fb5 100644 --- a/crates/web-sys/src/features/gen_WebGlFramebuffer.rs +++ b/crates/web-sys/src/features/gen_WebGlFramebuffer.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLFramebuffer , typescript_type = "WebGLFramebuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLFramebuffer", + typescript_type = "WebGLFramebuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlFramebuffer` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlProgram.rs b/crates/web-sys/src/features/gen_WebGlProgram.rs index 8ed0017872c..e15962ddc86 100644 --- a/crates/web-sys/src/features/gen_WebGlProgram.rs +++ b/crates/web-sys/src/features/gen_WebGlProgram.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLProgram , typescript_type = "WebGLProgram")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLProgram", + typescript_type = "WebGLProgram" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlProgram` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlQuery.rs b/crates/web-sys/src/features/gen_WebGlQuery.rs index 1d2fb0aacb3..1831ac5a0bb 100644 --- a/crates/web-sys/src/features/gen_WebGlQuery.rs +++ b/crates/web-sys/src/features/gen_WebGlQuery.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLQuery , typescript_type = "WebGLQuery")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLQuery", + typescript_type = "WebGLQuery" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlQuery` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlRenderbuffer.rs b/crates/web-sys/src/features/gen_WebGlRenderbuffer.rs index 3efdd967d89..b3a459a1333 100644 --- a/crates/web-sys/src/features/gen_WebGlRenderbuffer.rs +++ b/crates/web-sys/src/features/gen_WebGlRenderbuffer.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLRenderbuffer , typescript_type = "WebGLRenderbuffer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLRenderbuffer", + typescript_type = "WebGLRenderbuffer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlRenderbuffer` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlRenderingContext.rs b/crates/web-sys/src/features/gen_WebGlRenderingContext.rs index 5239284b63a..907b86feed6 100644 --- a/crates/web-sys/src/features/gen_WebGlRenderingContext.rs +++ b/crates/web-sys/src/features/gen_WebGlRenderingContext.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLRenderingContext , typescript_type = "WebGLRenderingContext")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLRenderingContext", + typescript_type = "WebGLRenderingContext" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlRenderingContext` class."] #[doc = ""] @@ -11,42 +15,75 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub type WebGlRenderingContext; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = canvas)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLRenderingContext", + js_name = "canvas" + )] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn canvas(this: &WebGlRenderingContext) -> Option<::js_sys::Object>; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLRenderingContext", + js_name = "drawingBufferWidth" + )] #[doc = "Getter for the `drawingBufferWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn drawing_buffer_width(this: &WebGlRenderingContext) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLRenderingContext", + js_name = "drawingBufferHeight" + )] #[doc = "Getter for the `drawingBufferHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn drawing_buffer_height(this: &WebGlRenderingContext) -> i32; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_data_with_i32(this: &WebGlRenderingContext, target: u32, size: i32, usage: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_data_with_f64(this: &WebGlRenderingContext, target: u32, size: f64, usage: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] @@ -58,7 +95,12 @@ extern "C" { data: Option<&::js_sys::ArrayBuffer>, usage: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] @@ -70,7 +112,12 @@ extern "C" { data: &::js_sys::Object, usage: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferData" + )] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] @@ -82,7 +129,12 @@ extern "C" { data: &[u8], usage: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] @@ -94,7 +146,12 @@ extern "C" { offset: i32, data: &::js_sys::ArrayBuffer, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] @@ -106,7 +163,12 @@ extern "C" { offset: f64, data: &::js_sys::ArrayBuffer, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] @@ -118,7 +180,12 @@ extern "C" { offset: i32, data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] @@ -130,7 +197,12 @@ extern "C" { offset: f64, data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] @@ -142,7 +214,12 @@ extern "C" { offset: i32, data: &[u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bufferSubData" + )] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] @@ -154,14 +231,24 @@ extern "C" { offset: f64, data: &[u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = commit)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "commit" + )] #[doc = "The `commit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn commit(this: &WebGlRenderingContext); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] @@ -177,7 +264,12 @@ extern "C" { border: i32, data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "compressedTexImage2D" + )] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] @@ -193,7 +285,12 @@ extern "C" { border: i32, data: &[u8], ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] @@ -210,7 +307,12 @@ extern "C" { format: u32, data: &::js_sys::Object, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "compressedTexSubImage2D" + )] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] @@ -227,7 +329,13 @@ extern "C" { format: u32, data: &mut [u8], ); - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] @@ -243,7 +351,13 @@ extern "C" { type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "readPixels" + )] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] @@ -259,7 +373,13 @@ extern "C" { type_: u32, pixels: Option<&mut [u8]>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] @@ -277,7 +397,13 @@ extern "C" { type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] @@ -296,7 +422,13 @@ extern "C" { pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] @@ -312,7 +444,13 @@ extern "C" { pixels: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] @@ -328,7 +466,13 @@ extern "C" { pixels: &ImageData, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] @@ -344,7 +488,13 @@ extern "C" { image: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] @@ -360,7 +510,13 @@ extern "C" { canvas: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texImage2D" + )] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] @@ -375,7 +531,13 @@ extern "C" { type_: u32, video: &HtmlVideoElement, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] @@ -393,7 +555,13 @@ extern "C" { type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] @@ -412,7 +580,13 @@ extern "C" { pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] @@ -429,7 +603,13 @@ extern "C" { pixels: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] @@ -446,7 +626,13 @@ extern "C" { pixels: &ImageData, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] @@ -463,7 +649,13 @@ extern "C" { image: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] @@ -480,7 +672,13 @@ extern "C" { canvas: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texSubImage2D" + )] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] @@ -497,7 +695,12 @@ extern "C" { video: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] @@ -509,7 +712,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform1fv" + )] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] @@ -521,7 +729,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] @@ -533,7 +746,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform1iv" + )] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] @@ -545,7 +763,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] @@ -557,7 +780,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform2fv" + )] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] @@ -569,7 +797,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] @@ -581,7 +814,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform2iv" + )] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] @@ -593,7 +831,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] @@ -605,7 +848,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform3fv" + )] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] @@ -617,7 +865,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] @@ -629,7 +882,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform3iv" + )] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] @@ -641,7 +899,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] @@ -653,7 +916,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform4fv" + )] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] @@ -665,7 +933,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] @@ -677,7 +950,12 @@ extern "C" { data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform4iv" + )] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] @@ -689,7 +967,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] @@ -702,7 +985,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniformMatrix2fv" + )] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] @@ -715,7 +1003,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] @@ -728,7 +1021,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniformMatrix3fv" + )] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] @@ -741,7 +1039,12 @@ extern "C" { data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] @@ -754,7 +1057,12 @@ extern "C" { data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniformMatrix4fv" + )] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] @@ -766,7 +1074,12 @@ extern "C" { transpose: bool, data: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = activeTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "activeTexture" + )] #[doc = "The `activeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture)"] @@ -774,7 +1087,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn active_texture(this: &WebGlRenderingContext, texture: u32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = attachShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "attachShader" + )] #[doc = "The `attachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/attachShader)"] @@ -786,7 +1104,12 @@ extern "C" { shader: &WebGlShader, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindAttribLocation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bindAttribLocation" + )] #[doc = "The `bindAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindAttribLocation)"] @@ -799,7 +1122,12 @@ extern "C" { name: &str, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bindBuffer" + )] #[doc = "The `bindBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer)"] @@ -807,7 +1135,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn bind_buffer(this: &WebGlRenderingContext, target: u32, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bindFramebuffer" + )] #[doc = "The `bindFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindFramebuffer)"] @@ -819,7 +1152,12 @@ extern "C" { framebuffer: Option<&WebGlFramebuffer>, ); #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bindRenderbuffer" + )] #[doc = "The `bindRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindRenderbuffer)"] @@ -831,42 +1169,72 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "bindTexture" + )] #[doc = "The `bindTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn bind_texture(this: &WebGlRenderingContext, target: u32, texture: Option<&WebGlTexture>); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendColor)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "blendColor" + )] #[doc = "The `blendColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "blendEquation" + )] #[doc = "The `blendEquation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_equation(this: &WebGlRenderingContext, mode: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquationSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "blendEquationSeparate" + )] #[doc = "The `blendEquationSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquationSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_equation_separate(this: &WebGlRenderingContext, mode_rgb: u32, mode_alpha: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendFunc)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "blendFunc" + )] #[doc = "The `blendFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_func(this: &WebGlRenderingContext, sfactor: u32, dfactor: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendFuncSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "blendFuncSeparate" + )] #[doc = "The `blendFuncSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate)"] @@ -879,42 +1247,72 @@ extern "C" { src_alpha: u32, dst_alpha: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = checkFramebufferStatus)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "checkFramebufferStatus" + )] #[doc = "The `checkFramebufferStatus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn check_framebuffer_status(this: &WebGlRenderingContext, target: u32) -> u32; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clear)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "clear" + )] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear(this: &WebGlRenderingContext, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearColor)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "clearColor" + )] #[doc = "The `clearColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearDepth)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "clearDepth" + )] #[doc = "The `clearDepth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear_depth(this: &WebGlRenderingContext, depth: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearStencil)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "clearStencil" + )] #[doc = "The `clearStencil()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearStencil)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear_stencil(this: &WebGlRenderingContext, s: i32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = colorMask)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "colorMask" + )] #[doc = "The `colorMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/colorMask)"] @@ -928,14 +1326,24 @@ extern "C" { alpha: bool, ); #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compileShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "compileShader" + )] #[doc = "The `compileShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compileShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn compile_shader(this: &WebGlRenderingContext, shader: &WebGlShader); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "copyTexImage2D" + )] #[doc = "The `copyTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexImage2D)"] @@ -952,7 +1360,12 @@ extern "C" { height: i32, border: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexSubImage2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "copyTexSubImage2D" + )] #[doc = "The `copyTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D)"] @@ -970,7 +1383,12 @@ extern "C" { height: i32, ); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "createBuffer" + )] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer)"] @@ -978,7 +1396,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn create_buffer(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "createFramebuffer" + )] #[doc = "The `createFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createFramebuffer)"] @@ -986,7 +1409,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] pub fn create_framebuffer(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "createProgram" + )] #[doc = "The `createProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createProgram)"] @@ -994,7 +1422,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn create_program(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "createRenderbuffer" + )] #[doc = "The `createRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createRenderbuffer)"] @@ -1002,7 +1435,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] pub fn create_renderbuffer(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "createShader" + )] #[doc = "The `createShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createShader)"] @@ -1010,14 +1448,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn create_shader(this: &WebGlRenderingContext, type_: u32) -> Option; #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "createTexture" + )] #[doc = "The `createTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn create_texture(this: &WebGlRenderingContext) -> Option; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = cullFace)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "cullFace" + )] #[doc = "The `cullFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace)"] @@ -1025,7 +1473,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn cull_face(this: &WebGlRenderingContext, mode: u32); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "deleteBuffer" + )] #[doc = "The `deleteBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteBuffer)"] @@ -1033,7 +1486,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn delete_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "deleteFramebuffer" + )] #[doc = "The `deleteFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteFramebuffer)"] @@ -1041,7 +1499,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] pub fn delete_framebuffer(this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "deleteProgram" + )] #[doc = "The `deleteProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteProgram)"] @@ -1049,7 +1512,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn delete_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>); #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "deleteRenderbuffer" + )] #[doc = "The `deleteRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer)"] @@ -1060,7 +1528,12 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "deleteShader" + )] #[doc = "The `deleteShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteShader)"] @@ -1068,28 +1541,48 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn delete_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>); #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "deleteTexture" + )] #[doc = "The `deleteTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn delete_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthFunc)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "depthFunc" + )] #[doc = "The `depthFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn depth_func(this: &WebGlRenderingContext, func: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthMask)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "depthMask" + )] #[doc = "The `depthMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn depth_mask(this: &WebGlRenderingContext, flag: bool); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthRange)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "depthRange" + )] #[doc = "The `depthRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthRange)"] @@ -1097,7 +1590,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn depth_range(this: &WebGlRenderingContext, z_near: f32, z_far: f32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = detachShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "detachShader" + )] #[doc = "The `detachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/detachShader)"] @@ -1108,28 +1606,48 @@ extern "C" { program: &WebGlProgram, shader: &WebGlShader, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = disable)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "disable" + )] #[doc = "The `disable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn disable(this: &WebGlRenderingContext, cap: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = disableVertexAttribArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "disableVertexAttribArray" + )] #[doc = "The `disableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn disable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawArrays)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "drawArrays" + )] #[doc = "The `drawArrays()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawArrays)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn draw_arrays(this: &WebGlRenderingContext, mode: u32, first: i32, count: i32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "drawElements" + )] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] @@ -1142,7 +1660,12 @@ extern "C" { type_: u32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "drawElements" + )] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] @@ -1155,28 +1678,48 @@ extern "C" { type_: u32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = enable)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "enable" + )] #[doc = "The `enable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn enable(this: &WebGlRenderingContext, cap: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = enableVertexAttribArray)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "enableVertexAttribArray" + )] #[doc = "The `enableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn enable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = finish)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "finish" + )] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn finish(this: &WebGlRenderingContext); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = flush)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "flush" + )] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/flush)"] @@ -1184,7 +1727,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn flush(this: &WebGlRenderingContext); #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "framebufferRenderbuffer" + )] #[doc = "The `framebufferRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer)"] @@ -1198,7 +1746,12 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferTexture2D)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "framebufferTexture2D" + )] #[doc = "The `framebufferTexture2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferTexture2D)"] @@ -1212,14 +1765,24 @@ extern "C" { texture: Option<&WebGlTexture>, level: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = frontFace)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "frontFace" + )] #[doc = "The `frontFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/frontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn front_face(this: &WebGlRenderingContext, mode: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = generateMipmap)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "generateMipmap" + )] #[doc = "The `generateMipmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/generateMipmap)"] @@ -1227,7 +1790,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn generate_mipmap(this: &WebGlRenderingContext, target: u32); #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveAttrib)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getActiveAttrib" + )] #[doc = "The `getActiveAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveAttrib)"] @@ -1239,7 +1807,12 @@ extern "C" { index: u32, ) -> Option; #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getActiveUniform" + )] #[doc = "The `getActiveUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveUniform)"] @@ -1251,7 +1824,12 @@ extern "C" { index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getAttachedShaders)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getAttachedShaders" + )] #[doc = "The `getAttachedShaders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttachedShaders)"] @@ -1262,7 +1840,12 @@ extern "C" { program: &WebGlProgram, ) -> Option<::js_sys::Array>; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getAttribLocation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getAttribLocation" + )] #[doc = "The `getAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation)"] @@ -1273,7 +1856,12 @@ extern "C" { program: &WebGlProgram, name: &str, ) -> i32; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getBufferParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getBufferParameter" + )] #[doc = "The `getBufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getBufferParameter)"] @@ -1285,21 +1873,37 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlContextAttributes")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getContextAttributes)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getContextAttributes" + )] #[doc = "The `getContextAttributes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlRenderingContext`*"] pub fn get_context_attributes(this: &WebGlRenderingContext) -> Option; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getError)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getError" + )] #[doc = "The `getError()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_error(this: &WebGlRenderingContext) -> u32; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getExtension)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getExtension" + )] #[doc = "The `getExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension)"] @@ -1309,7 +1913,13 @@ extern "C" { this: &WebGlRenderingContext, name: &str, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getFramebufferAttachmentParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getFramebufferAttachmentParameter" + )] #[doc = "The `getFramebufferAttachmentParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter)"] @@ -1321,7 +1931,13 @@ extern "C" { attachment: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getParameter" + )] #[doc = "The `getParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter)"] @@ -1332,7 +1948,12 @@ extern "C" { pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramInfoLog)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getProgramInfoLog" + )] #[doc = "The `getProgramInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramInfoLog)"] @@ -1343,7 +1964,12 @@ extern "C" { program: &WebGlProgram, ) -> Option; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getProgramParameter" + )] #[doc = "The `getProgramParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramParameter)"] @@ -1354,7 +1980,12 @@ extern "C" { program: &WebGlProgram, pname: u32, ) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getRenderbufferParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getRenderbufferParameter" + )] #[doc = "The `getRenderbufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter)"] @@ -1366,7 +1997,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderInfoLog)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getShaderInfoLog" + )] #[doc = "The `getShaderInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderInfoLog)"] @@ -1377,7 +2013,12 @@ extern "C" { shader: &WebGlShader, ) -> Option; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getShaderParameter" + )] #[doc = "The `getShaderParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderParameter)"] @@ -1389,7 +2030,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShaderPrecisionFormat")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderPrecisionFormat)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getShaderPrecisionFormat" + )] #[doc = "The `getShaderPrecisionFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat)"] @@ -1401,21 +2047,36 @@ extern "C" { precisiontype: u32, ) -> Option; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderSource)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getShaderSource" + )] #[doc = "The `getShaderSource()` method."] #[doc = ""] #[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; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getSupportedExtensions)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getSupportedExtensions" + )] #[doc = "The `getSupportedExtensions()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_supported_extensions(this: &WebGlRenderingContext) -> Option<::js_sys::Array>; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getTexParameter)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getTexParameter" + )] #[doc = "The `getTexParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getTexParameter)"] @@ -1427,7 +2088,12 @@ extern "C" { pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getUniform)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getUniform" + )] #[doc = "The `getUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniform)"] @@ -1439,7 +2105,12 @@ extern "C" { location: &WebGlUniformLocation, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getUniformLocation)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getUniformLocation" + )] #[doc = "The `getUniformLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniformLocation)"] @@ -1450,7 +2121,13 @@ extern "C" { program: &WebGlProgram, name: &str, ) -> Option; - # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttrib)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getVertexAttrib" + )] #[doc = "The `getVertexAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttrib)"] @@ -1461,14 +2138,24 @@ extern "C" { index: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttribOffset)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "getVertexAttribOffset" + )] #[doc = "The `getVertexAttribOffset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_vertex_attrib_offset(this: &WebGlRenderingContext, index: u32, pname: u32) -> f64; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = hint)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "hint" + )] #[doc = "The `hint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/hint)"] @@ -1476,21 +2163,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn hint(this: &WebGlRenderingContext, target: u32, mode: u32); #[cfg(feature = "WebGlBuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isBuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isBuffer" + )] #[doc = "The `isBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn is_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>) -> bool; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isContextLost)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isContextLost" + )] #[doc = "The `isContextLost()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isContextLost)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn is_context_lost(this: &WebGlRenderingContext) -> bool; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isEnabled)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isEnabled" + )] #[doc = "The `isEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled)"] @@ -1498,7 +2200,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn is_enabled(this: &WebGlRenderingContext, cap: u32) -> bool; #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isFramebuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isFramebuffer" + )] #[doc = "The `isFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isFramebuffer)"] @@ -1509,7 +2216,12 @@ extern "C" { framebuffer: Option<&WebGlFramebuffer>, ) -> bool; #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isProgram" + )] #[doc = "The `isProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isProgram)"] @@ -1517,7 +2229,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn is_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>) -> bool; #[cfg(feature = "WebGlRenderbuffer")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isRenderbuffer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isRenderbuffer" + )] #[doc = "The `isRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isRenderbuffer)"] @@ -1528,7 +2245,12 @@ extern "C" { renderbuffer: Option<&WebGlRenderbuffer>, ) -> bool; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isShader)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isShader" + )] #[doc = "The `isShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isShader)"] @@ -1536,14 +2258,24 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn is_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>) -> bool; #[cfg(feature = "WebGlTexture")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isTexture)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "isTexture" + )] #[doc = "The `isTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn is_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>) -> bool; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = lineWidth)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "lineWidth" + )] #[doc = "The `lineWidth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth)"] @@ -1551,35 +2283,60 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn line_width(this: &WebGlRenderingContext, width: f32); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = linkProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "linkProgram" + )] #[doc = "The `linkProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/linkProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn link_program(this: &WebGlRenderingContext, program: &WebGlProgram); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = makeXRCompatible)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "makeXRCompatible" + )] #[doc = "The `makeXRCompatible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/makeXRCompatible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn make_xr_compatible(this: &WebGlRenderingContext) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = pixelStorei)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "pixelStorei" + )] #[doc = "The `pixelStorei()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn pixel_storei(this: &WebGlRenderingContext, pname: u32, param: i32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = polygonOffset)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "polygonOffset" + )] #[doc = "The `polygonOffset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/polygonOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn polygon_offset(this: &WebGlRenderingContext, factor: f32, units: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = renderbufferStorage)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "renderbufferStorage" + )] #[doc = "The `renderbufferStorage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage)"] @@ -1592,14 +2349,24 @@ extern "C" { width: i32, height: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = sampleCoverage)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "sampleCoverage" + )] #[doc = "The `sampleCoverage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/sampleCoverage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn sample_coverage(this: &WebGlRenderingContext, value: f32, invert: bool); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = scissor)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "scissor" + )] #[doc = "The `scissor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor)"] @@ -1607,21 +2374,36 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn scissor(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32); #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = shaderSource)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "shaderSource" + )] #[doc = "The `shaderSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/shaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn shader_source(this: &WebGlRenderingContext, shader: &WebGlShader, source: &str); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilFunc)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "stencilFunc" + )] #[doc = "The `stencilFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn stencil_func(this: &WebGlRenderingContext, func: u32, ref_: i32, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilFuncSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "stencilFuncSeparate" + )] #[doc = "The `stencilFuncSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate)"] @@ -1634,28 +2416,48 @@ extern "C" { ref_: i32, mask: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilMask)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "stencilMask" + )] #[doc = "The `stencilMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn stencil_mask(this: &WebGlRenderingContext, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilMaskSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "stencilMaskSeparate" + )] #[doc = "The `stencilMaskSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn stencil_mask_separate(this: &WebGlRenderingContext, face: u32, mask: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilOp)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "stencilOp" + )] #[doc = "The `stencilOp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn stencil_op(this: &WebGlRenderingContext, fail: u32, zfail: u32, zpass: u32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilOpSeparate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "stencilOpSeparate" + )] #[doc = "The `stencilOpSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOpSeparate)"] @@ -1668,14 +2470,24 @@ extern "C" { zfail: u32, zpass: u32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = texParameterf)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texParameterf" + )] #[doc = "The `texParameterf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameterf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn tex_parameterf(this: &WebGlRenderingContext, target: u32, pname: u32, param: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = texParameteri)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "texParameteri" + )] #[doc = "The `texParameteri()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameteri)"] @@ -1683,7 +2495,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn tex_parameteri(this: &WebGlRenderingContext, target: u32, pname: u32, param: i32); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform1f" + )] #[doc = "The `uniform1f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1f)"] @@ -1691,7 +2508,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1f(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform1i" + )] #[doc = "The `uniform1i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1i)"] @@ -1699,7 +2521,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1i(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform2f" + )] #[doc = "The `uniform2f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2f)"] @@ -1712,7 +2539,12 @@ extern "C" { y: f32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform2i" + )] #[doc = "The `uniform2i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2i)"] @@ -1725,7 +2557,12 @@ extern "C" { y: i32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform3f" + )] #[doc = "The `uniform3f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3f)"] @@ -1739,7 +2576,12 @@ extern "C" { z: f32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform3i" + )] #[doc = "The `uniform3i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3i)"] @@ -1753,7 +2595,12 @@ extern "C" { z: i32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform4f" + )] #[doc = "The `uniform4f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4f)"] @@ -1768,7 +2615,12 @@ extern "C" { w: f32, ); #[cfg(feature = "WebGlUniformLocation")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4i)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "uniform4i" + )] #[doc = "The `uniform4i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4i)"] @@ -1783,7 +2635,12 @@ extern "C" { w: i32, ); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = useProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "useProgram" + )] #[doc = "The `useProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/useProgram)"] @@ -1791,28 +2648,48 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn use_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>); #[cfg(feature = "WebGlProgram")] - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = validateProgram)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "validateProgram" + )] #[doc = "The `validateProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/validateProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn validate_program(this: &WebGlRenderingContext, program: &WebGlProgram); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib1f" + )] #[doc = "The `vertexAttrib1f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib1f(this: &WebGlRenderingContext, indx: u32, x: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib1fv" + )] #[doc = "The `vertexAttrib1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib1fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib1fv" + )] #[doc = "The `vertexAttrib1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"] @@ -1823,21 +2700,36 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib2f" + )] #[doc = "The `vertexAttrib2f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib2f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib2fv" + )] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib2fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib2fv" + )] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] @@ -1848,21 +2740,36 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib3f" + )] #[doc = "The `vertexAttrib3f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib3f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib3fv" + )] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib3fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib3fv" + )] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] @@ -1873,21 +2780,36 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4f)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib4f" + )] #[doc = "The `vertexAttrib4f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib4f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32, w: f32); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib4fv" + )] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib4fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttrib4fv" + )] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] @@ -1898,7 +2820,12 @@ extern "C" { indx: u32, values: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttribPointer" + )] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] @@ -1913,7 +2840,12 @@ extern "C" { stride: i32, offset: i32, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "vertexAttribPointer" + )] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] @@ -1928,7 +2860,12 @@ extern "C" { stride: i32, offset: f64, ); - # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = viewport)] + #[wasm_bindgen( + method, + structural, + js_class = "WebGLRenderingContext", + js_name = "viewport" + )] #[doc = "The `viewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport)"] diff --git a/crates/web-sys/src/features/gen_WebGlSampler.rs b/crates/web-sys/src/features/gen_WebGlSampler.rs index 6f28463b179..babedcb5cec 100644 --- a/crates/web-sys/src/features/gen_WebGlSampler.rs +++ b/crates/web-sys/src/features/gen_WebGlSampler.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLSampler , typescript_type = "WebGLSampler")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLSampler", + typescript_type = "WebGLSampler" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlSampler` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlShader.rs b/crates/web-sys/src/features/gen_WebGlShader.rs index 1d4aa826847..46d83d64f6c 100644 --- a/crates/web-sys/src/features/gen_WebGlShader.rs +++ b/crates/web-sys/src/features/gen_WebGlShader.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLShader , typescript_type = "WebGLShader")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLShader", + typescript_type = "WebGLShader" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlShader` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlShaderPrecisionFormat.rs b/crates/web-sys/src/features/gen_WebGlShaderPrecisionFormat.rs index 16e869914ad..ac4fcb817d7 100644 --- a/crates/web-sys/src/features/gen_WebGlShaderPrecisionFormat.rs +++ b/crates/web-sys/src/features/gen_WebGlShaderPrecisionFormat.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLShaderPrecisionFormat , typescript_type = "WebGLShaderPrecisionFormat")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLShaderPrecisionFormat", + typescript_type = "WebGLShaderPrecisionFormat" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlShaderPrecisionFormat` class."] #[doc = ""] @@ -11,21 +15,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] pub type WebGlShaderPrecisionFormat; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = rangeMin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLShaderPrecisionFormat", + js_name = "rangeMin" + )] #[doc = "Getter for the `rangeMin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] pub fn range_min(this: &WebGlShaderPrecisionFormat) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = rangeMax)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLShaderPrecisionFormat", + js_name = "rangeMax" + )] #[doc = "Getter for the `rangeMax` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] pub fn range_max(this: &WebGlShaderPrecisionFormat) -> i32; - # [wasm_bindgen (structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = precision)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebGLShaderPrecisionFormat", + js_name = "precision" + )] #[doc = "Getter for the `precision` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/precision)"] diff --git a/crates/web-sys/src/features/gen_WebGlSync.rs b/crates/web-sys/src/features/gen_WebGlSync.rs index 6c8b2e356b7..612a7ede0c0 100644 --- a/crates/web-sys/src/features/gen_WebGlSync.rs +++ b/crates/web-sys/src/features/gen_WebGlSync.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLSync , typescript_type = "WebGLSync")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLSync", + typescript_type = "WebGLSync" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlSync` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlTexture.rs b/crates/web-sys/src/features/gen_WebGlTexture.rs index 14d7b8e13cf..eab5b70fcf6 100644 --- a/crates/web-sys/src/features/gen_WebGlTexture.rs +++ b/crates/web-sys/src/features/gen_WebGlTexture.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLTexture , typescript_type = "WebGLTexture")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLTexture", + typescript_type = "WebGLTexture" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlTexture` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlTransformFeedback.rs b/crates/web-sys/src/features/gen_WebGlTransformFeedback.rs index edfabfb3ae8..bac72ac9367 100644 --- a/crates/web-sys/src/features/gen_WebGlTransformFeedback.rs +++ b/crates/web-sys/src/features/gen_WebGlTransformFeedback.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLTransformFeedback , typescript_type = "WebGLTransformFeedback")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLTransformFeedback", + typescript_type = "WebGLTransformFeedback" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlTransformFeedback` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlUniformLocation.rs b/crates/web-sys/src/features/gen_WebGlUniformLocation.rs index 545667f6853..6f3cbf3d060 100644 --- a/crates/web-sys/src/features/gen_WebGlUniformLocation.rs +++ b/crates/web-sys/src/features/gen_WebGlUniformLocation.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLUniformLocation , typescript_type = "WebGLUniformLocation")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLUniformLocation", + typescript_type = "WebGLUniformLocation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlUniformLocation` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlVertexArrayObject.rs b/crates/web-sys/src/features/gen_WebGlVertexArrayObject.rs index 1929efa7e48..c08f75ef2e7 100644 --- a/crates/web-sys/src/features/gen_WebGlVertexArrayObject.rs +++ b/crates/web-sys/src/features/gen_WebGlVertexArrayObject.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLVertexArrayObject , typescript_type = "WebGLVertexArrayObject")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WebGLVertexArrayObject", + typescript_type = "WebGLVertexArrayObject" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlVertexArrayObject` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebKitCssMatrix.rs b/crates/web-sys/src/features/gen_WebKitCssMatrix.rs index a8f024ca690..1424b21efb9 100644 --- a/crates/web-sys/src/features/gen_WebKitCssMatrix.rs +++ b/crates/web-sys/src/features/gen_WebKitCssMatrix.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = DomMatrix , extends = DomMatrixReadOnly , extends = :: js_sys :: Object , js_name = WebKitCSSMatrix , typescript_type = "WebKitCSSMatrix")] + #[wasm_bindgen( + extends = "DomMatrix", + extends = "DomMatrixReadOnly", + extends = "::js_sys::Object", + js_name = "WebKitCSSMatrix", + typescript_type = "WebKitCSSMatrix" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebKitCssMatrix` class."] #[doc = ""] @@ -32,35 +38,41 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn new_with_other(other: &WebKitCssMatrix) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WebKitCSSMatrix" , js_name = inverse)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "inverse" + )] #[doc = "The `inverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/inverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn inverse(this: &WebKitCssMatrix) -> Result; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = multiply)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "multiply")] #[doc = "The `multiply()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/multiply)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn multiply(this: &WebKitCssMatrix, other: &WebKitCssMatrix) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate(this: &WebKitCssMatrix) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_with_rot_x(this: &WebKitCssMatrix, rot_x: f64) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] @@ -71,7 +83,7 @@ extern "C" { rot_x: f64, rot_y: f64, ) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "rotate")] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] @@ -83,21 +95,36 @@ extern "C" { rot_y: f64, rot_z: f64, ) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "rotateAxisAngle" + )] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_axis_angle(this: &WebKitCssMatrix) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "rotateAxisAngle" + )] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_axis_angle_with_x(this: &WebKitCssMatrix, x: f64) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "rotateAxisAngle" + )] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] @@ -108,7 +135,12 @@ extern "C" { x: f64, y: f64, ) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "rotateAxisAngle" + )] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] @@ -120,7 +152,12 @@ extern "C" { y: f64, z: f64, ) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "rotateAxisAngle" + )] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] @@ -133,21 +170,21 @@ extern "C" { z: f64, angle: f64, ) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn scale(this: &WebKitCssMatrix) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn scale_with_scale_x(this: &WebKitCssMatrix, scale_x: f64) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] @@ -158,7 +195,7 @@ extern "C" { scale_x: f64, scale_y: f64, ) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "scale")] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] @@ -170,7 +207,13 @@ extern "C" { scale_y: f64, scale_z: f64, ) -> WebKitCssMatrix; - # [wasm_bindgen (catch , method , structural , js_class = "WebKitCSSMatrix" , js_name = setMatrixValue)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "setMatrixValue" + )] #[doc = "The `setMatrixValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/setMatrixValue)"] @@ -180,56 +223,76 @@ extern "C" { this: &WebKitCssMatrix, transform_list: &str, ) -> Result; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewX)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "skewX")] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_x(this: &WebKitCssMatrix) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewX)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "skewX")] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_x_with_sx(this: &WebKitCssMatrix, sx: f64) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewY)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "skewY")] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_y(this: &WebKitCssMatrix) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewY)] + #[wasm_bindgen(method, structural, js_class = "WebKitCSSMatrix", js_name = "skewY")] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_y_with_sy(this: &WebKitCssMatrix, sy: f64) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "translate" + )] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn translate(this: &WebKitCssMatrix) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "translate" + )] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn translate_with_tx(this: &WebKitCssMatrix, tx: f64) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "translate" + )] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn translate_with_tx_and_ty(this: &WebKitCssMatrix, tx: f64, ty: f64) -> WebKitCssMatrix; - # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] + #[wasm_bindgen( + method, + structural, + js_class = "WebKitCSSMatrix", + js_name = "translate" + )] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] diff --git a/crates/web-sys/src/features/gen_WebSocket.rs b/crates/web-sys/src/features/gen_WebSocket.rs index 03143f17f86..96dca90c2bb 100644 --- a/crates/web-sys/src/features/gen_WebSocket.rs +++ b/crates/web-sys/src/features/gen_WebSocket.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WebSocket , typescript_type = "WebSocket")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "WebSocket", + typescript_type = "WebSocket" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebSocket` class."] #[doc = ""] @@ -11,91 +16,151 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub type WebSocket; - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = url)] + #[wasm_bindgen(structural, method, getter, js_class = "WebSocket", 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/WebSocket/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn url(this: &WebSocket) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebSocket", + 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/WebSocket/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn ready_state(this: &WebSocket) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = bufferedAmount)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebSocket", + js_name = "bufferedAmount" + )] #[doc = "Getter for the `bufferedAmount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/bufferedAmount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn buffered_amount(this: &WebSocket) -> u32; - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onopen)] + #[wasm_bindgen(structural, method, getter, js_class = "WebSocket", js_name = "onopen")] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onopen(this: &WebSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onopen)] + #[wasm_bindgen(structural, method, setter, js_class = "WebSocket", js_name = "onopen")] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onopen(this: &WebSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebSocket", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onerror(this: &WebSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WebSocket", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onerror(this: &WebSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebSocket", + js_name = "onclose" + )] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onclose(this: &WebSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onclose)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WebSocket", + js_name = "onclose" + )] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onclose(this: &WebSocket, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = extensions)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebSocket", + js_name = "extensions" + )] #[doc = "Getter for the `extensions` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = protocol)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebSocket", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onmessage(this: &WebSocket) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WebSocket", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onmessage)"] @@ -103,7 +168,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onmessage(this: &WebSocket, value: Option<&::js_sys::Function>); #[cfg(feature = "BinaryType")] - # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = binaryType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WebSocket", + js_name = "binaryType" + )] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/binaryType)"] @@ -111,7 +182,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BinaryType`, `WebSocket`*"] pub fn binary_type(this: &WebSocket) -> BinaryType; #[cfg(feature = "BinaryType")] - # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = binaryType)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WebSocket", + js_name = "binaryType" + )] #[doc = "Setter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/binaryType)"] @@ -142,21 +219,21 @@ extern "C" { url: &str, protocols: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = close)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn close(this: &WebSocket) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = close)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn close_with_code(this: &WebSocket, code: u16) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = close)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] @@ -167,7 +244,7 @@ extern "C" { code: u16, reason: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] @@ -175,14 +252,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn send_with_str(this: &WebSocket, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `WebSocket`*"] pub fn send_with_blob(this: &WebSocket, data: &Blob) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] @@ -192,7 +269,7 @@ extern "C" { this: &WebSocket, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] @@ -202,7 +279,7 @@ extern "C" { this: &WebSocket, data: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] + #[wasm_bindgen(catch, method, structural, js_class = "WebSocket", js_name = "send")] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] diff --git a/crates/web-sys/src/features/gen_WebSocketDict.rs b/crates/web-sys/src/features/gen_WebSocketDict.rs index 05df3bcf918..eb93d53ba8e 100644 --- a/crates/web-sys/src/features/gen_WebSocketDict.rs +++ b/crates/web-sys/src/features/gen_WebSocketDict.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebSocketDict)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WebSocketDict")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebSocketDict` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebSocketElement.rs b/crates/web-sys/src/features/gen_WebSocketElement.rs index 402e05eb432..6ac795007d1 100644 --- a/crates/web-sys/src/features/gen_WebSocketElement.rs +++ b/crates/web-sys/src/features/gen_WebSocketElement.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebSocketElement)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WebSocketElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebSocketElement` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglColorBufferFloat.rs b/crates/web-sys/src/features/gen_WebglColorBufferFloat.rs index d16789ab5de..c15a045e49a 100644 --- a/crates/web-sys/src/features/gen_WebglColorBufferFloat.rs +++ b/crates/web-sys/src/features/gen_WebglColorBufferFloat.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_color_buffer_float , typescript_type = "WEBGL_color_buffer_float")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_color_buffer_float" , typescript_type = "WEBGL_color_buffer_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglColorBufferFloat` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureAstc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureAstc.rs index fb369c2838c..a5375a42f9c 100644 --- a/crates/web-sys/src/features/gen_WebglCompressedTextureAstc.rs +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureAstc.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_astc , typescript_type = "WEBGL_compressed_texture_astc")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_compressed_texture_astc" , typescript_type = "WEBGL_compressed_texture_astc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureAstc` class."] #[doc = ""] @@ -11,7 +11,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub type WebglCompressedTextureAstc; - # [wasm_bindgen (method , structural , js_class = "WEBGL_compressed_texture_astc" , js_name = getSupportedProfiles)] + #[wasm_bindgen( + method, + structural, + js_class = "WEBGL_compressed_texture_astc", + js_name = "getSupportedProfiles" + )] #[doc = "The `getSupportedProfiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)"] diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureAtc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureAtc.rs index 403a2329f57..a1fdf6edee3 100644 --- a/crates/web-sys/src/features/gen_WebglCompressedTextureAtc.rs +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureAtc.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_atc , typescript_type = "WEBGL_compressed_texture_atc")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_compressed_texture_atc" , typescript_type = "WEBGL_compressed_texture_atc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureAtc` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureEtc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc.rs index 37d7323a834..b886d531587 100644 --- a/crates/web-sys/src/features/gen_WebglCompressedTextureEtc.rs +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_etc , typescript_type = "WEBGL_compressed_texture_etc")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_compressed_texture_etc" , typescript_type = "WEBGL_compressed_texture_etc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureEtc` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureEtc1.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc1.rs index 52dc55734d8..6fb0dd47072 100644 --- a/crates/web-sys/src/features/gen_WebglCompressedTextureEtc1.rs +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc1.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_etc1 , typescript_type = "WEBGL_compressed_texture_etc1")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_compressed_texture_etc1" , typescript_type = "WEBGL_compressed_texture_etc1")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureEtc1` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglCompressedTexturePvrtc.rs b/crates/web-sys/src/features/gen_WebglCompressedTexturePvrtc.rs index ec34d191464..4d50253bbfa 100644 --- a/crates/web-sys/src/features/gen_WebglCompressedTexturePvrtc.rs +++ b/crates/web-sys/src/features/gen_WebglCompressedTexturePvrtc.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_pvrtc , typescript_type = "WEBGL_compressed_texture_pvrtc")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_compressed_texture_pvrtc" , typescript_type = "WEBGL_compressed_texture_pvrtc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTexturePvrtc` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureS3tc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tc.rs index 450b1a73050..8d14880ee96 100644 --- a/crates/web-sys/src/features/gen_WebglCompressedTextureS3tc.rs +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tc.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_s3tc , typescript_type = "WEBGL_compressed_texture_s3tc")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_compressed_texture_s3tc" , typescript_type = "WEBGL_compressed_texture_s3tc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureS3tc` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureS3tcSrgb.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tcSrgb.rs index 94141e7720a..ddf8b69236a 100644 --- a/crates/web-sys/src/features/gen_WebglCompressedTextureS3tcSrgb.rs +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tcSrgb.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_s3tc_srgb , typescript_type = "WEBGL_compressed_texture_s3tc_srgb")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_compressed_texture_s3tc_srgb" , typescript_type = "WEBGL_compressed_texture_s3tc_srgb")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureS3tcSrgb` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglDebugRendererInfo.rs b/crates/web-sys/src/features/gen_WebglDebugRendererInfo.rs index 2ef3172d3e5..59c47c1017d 100644 --- a/crates/web-sys/src/features/gen_WebglDebugRendererInfo.rs +++ b/crates/web-sys/src/features/gen_WebglDebugRendererInfo.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_debug_renderer_info , typescript_type = "WEBGL_debug_renderer_info")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_debug_renderer_info" , typescript_type = "WEBGL_debug_renderer_info")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDebugRendererInfo` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglDebugShaders.rs b/crates/web-sys/src/features/gen_WebglDebugShaders.rs index 01f5403a497..ba8368b52e1 100644 --- a/crates/web-sys/src/features/gen_WebglDebugShaders.rs +++ b/crates/web-sys/src/features/gen_WebglDebugShaders.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_debug_shaders , typescript_type = "WEBGL_debug_shaders")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_debug_shaders" , typescript_type = "WEBGL_debug_shaders")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDebugShaders` class."] #[doc = ""] @@ -12,7 +12,12 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WebglDebugShaders`*"] pub type WebglDebugShaders; #[cfg(feature = "WebGlShader")] - # [wasm_bindgen (method , structural , js_class = "WEBGL_debug_shaders" , js_name = getTranslatedShaderSource)] + #[wasm_bindgen( + method, + structural, + js_class = "WEBGL_debug_shaders", + js_name = "getTranslatedShaderSource" + )] #[doc = "The `getTranslatedShaderSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)"] diff --git a/crates/web-sys/src/features/gen_WebglDepthTexture.rs b/crates/web-sys/src/features/gen_WebglDepthTexture.rs index 301f58bb6f4..d4cf2b126d3 100644 --- a/crates/web-sys/src/features/gen_WebglDepthTexture.rs +++ b/crates/web-sys/src/features/gen_WebglDepthTexture.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_depth_texture , typescript_type = "WEBGL_depth_texture")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_depth_texture" , typescript_type = "WEBGL_depth_texture")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDepthTexture` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglDrawBuffers.rs b/crates/web-sys/src/features/gen_WebglDrawBuffers.rs index a12d67b52ff..5898fe625cb 100644 --- a/crates/web-sys/src/features/gen_WebglDrawBuffers.rs +++ b/crates/web-sys/src/features/gen_WebglDrawBuffers.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_draw_buffers , typescript_type = "WEBGL_draw_buffers")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_draw_buffers" , typescript_type = "WEBGL_draw_buffers")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDrawBuffers` class."] #[doc = ""] @@ -11,7 +11,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub type WebglDrawBuffers; - # [wasm_bindgen (method , structural , js_class = "WEBGL_draw_buffers" , js_name = drawBuffersWEBGL)] + #[wasm_bindgen( + method, + structural, + js_class = "WEBGL_draw_buffers", + js_name = "drawBuffersWEBGL" + )] #[doc = "The `drawBuffersWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)"] diff --git a/crates/web-sys/src/features/gen_WebglLoseContext.rs b/crates/web-sys/src/features/gen_WebglLoseContext.rs index 5bf059b555b..f1a2f6d992c 100644 --- a/crates/web-sys/src/features/gen_WebglLoseContext.rs +++ b/crates/web-sys/src/features/gen_WebglLoseContext.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_lose_context , typescript_type = "WEBGL_lose_context")] + # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "WEBGL_lose_context" , typescript_type = "WEBGL_lose_context")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglLoseContext` class."] #[doc = ""] @@ -11,14 +11,24 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] pub type WebglLoseContext; - # [wasm_bindgen (method , structural , js_class = "WEBGL_lose_context" , js_name = loseContext)] + #[wasm_bindgen( + method, + structural, + js_class = "WEBGL_lose_context", + js_name = "loseContext" + )] #[doc = "The `loseContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/loseContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] pub fn lose_context(this: &WebglLoseContext); - # [wasm_bindgen (method , structural , js_class = "WEBGL_lose_context" , js_name = restoreContext)] + #[wasm_bindgen( + method, + structural, + js_class = "WEBGL_lose_context", + js_name = "restoreContext" + )] #[doc = "The `restoreContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/restoreContext)"] diff --git a/crates/web-sys/src/features/gen_WebrtcGlobalStatisticsReport.rs b/crates/web-sys/src/features/gen_WebrtcGlobalStatisticsReport.rs index 9a2e1991ff7..8c6210982a2 100644 --- a/crates/web-sys/src/features/gen_WebrtcGlobalStatisticsReport.rs +++ b/crates/web-sys/src/features/gen_WebrtcGlobalStatisticsReport.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebrtcGlobalStatisticsReport)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WebrtcGlobalStatisticsReport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebrtcGlobalStatisticsReport` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WheelEvent.rs b/crates/web-sys/src/features/gen_WheelEvent.rs index cbf9365d280..acefbb9abc9 100644 --- a/crates/web-sys/src/features/gen_WheelEvent.rs +++ b/crates/web-sys/src/features/gen_WheelEvent.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = WheelEvent , typescript_type = "WheelEvent")] + #[wasm_bindgen( + extends = "MouseEvent", + extends = "UiEvent", + extends = "Event", + extends = "::js_sys::Object", + js_name = "WheelEvent", + typescript_type = "WheelEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WheelEvent` class."] #[doc = ""] @@ -11,28 +18,52 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub type WheelEvent; - # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaX)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WheelEvent", + js_name = "deltaX" + )] #[doc = "Getter for the `deltaX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn delta_x(this: &WheelEvent) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaY)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WheelEvent", + js_name = "deltaY" + )] #[doc = "Getter for the `deltaY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn delta_y(this: &WheelEvent) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaZ)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WheelEvent", + js_name = "deltaZ" + )] #[doc = "Getter for the `deltaZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn delta_z(this: &WheelEvent) -> f64; - # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaMode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WheelEvent", + js_name = "deltaMode" + )] #[doc = "Getter for the `deltaMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode)"] diff --git a/crates/web-sys/src/features/gen_WheelEventInit.rs b/crates/web-sys/src/features/gen_WheelEventInit.rs index 2d65bee2852..3817491b027 100644 --- a/crates/web-sys/src/features/gen_WheelEventInit.rs +++ b/crates/web-sys/src/features/gen_WheelEventInit.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WheelEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WheelEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WheelEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WidevineCdmManifest.rs b/crates/web-sys/src/features/gen_WidevineCdmManifest.rs index cd5e0cdafa8..c3d30b2f130 100644 --- a/crates/web-sys/src/features/gen_WidevineCdmManifest.rs +++ b/crates/web-sys/src/features/gen_WidevineCdmManifest.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WidevineCDMManifest)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WidevineCDMManifest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WidevineCdmManifest` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Window.rs b/crates/web-sys/src/features/gen_Window.rs index 5b9a7512f2d..4e9b5f27d54 100644 --- a/crates/web-sys/src/features/gen_Window.rs +++ b/crates/web-sys/src/features/gen_Window.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Window , typescript_type = "Window")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Window", + typescript_type = "Window" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Window` class."] #[doc = ""] @@ -11,14 +16,14 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub type Window; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = window)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "window")] #[doc = "Getter for the `window` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/window)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn window(this: &Window) -> Window; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = self)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "self")] #[doc = "Getter for the `self` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/self)"] @@ -26,21 +31,35 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn self_(this: &Window) -> Window; #[cfg(feature = "Document")] - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = document)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "document")] #[doc = "Getter for the `document` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/document)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Window`*"] pub fn document(this: &Window) -> Option; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = name)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + 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/Window/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn name(this: &Window) -> Result; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = name)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "name" + )] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/name)"] @@ -48,7 +67,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_name(this: &Window, value: &str) -> Result<(), JsValue>; #[cfg(feature = "Location")] - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = location)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "location")] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/location)"] @@ -56,7 +75,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Location`, `Window`*"] pub fn location(this: &Window) -> Location; #[cfg(feature = "History")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = history)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "history" + )] #[doc = "Getter for the `history` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/history)"] @@ -64,7 +90,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `History`, `Window`*"] pub fn history(this: &Window) -> Result; #[cfg(feature = "CustomElementRegistry")] - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = customElements)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "customElements" + )] #[doc = "Getter for the `customElements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements)"] @@ -72,7 +104,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `Window`*"] pub fn custom_elements(this: &Window) -> CustomElementRegistry; #[cfg(feature = "BarProp")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = locationbar)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "locationbar" + )] #[doc = "Getter for the `locationbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/locationbar)"] @@ -80,7 +119,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn locationbar(this: &Window) -> Result; #[cfg(feature = "BarProp")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = menubar)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "menubar" + )] #[doc = "Getter for the `menubar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/menubar)"] @@ -88,7 +134,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn menubar(this: &Window) -> Result; #[cfg(feature = "BarProp")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = personalbar)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "personalbar" + )] #[doc = "Getter for the `personalbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/personalbar)"] @@ -96,7 +149,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn personalbar(this: &Window) -> Result; #[cfg(feature = "BarProp")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = scrollbars)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "scrollbars" + )] #[doc = "Getter for the `scrollbars` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollbars)"] @@ -104,7 +164,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn scrollbars(this: &Window) -> Result; #[cfg(feature = "BarProp")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = statusbar)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "statusbar" + )] #[doc = "Getter for the `statusbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/statusbar)"] @@ -112,77 +179,140 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn statusbar(this: &Window) -> Result; #[cfg(feature = "BarProp")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = toolbar)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "toolbar" + )] #[doc = "Getter for the `toolbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/toolbar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn toolbar(this: &Window) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = status)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = status)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "status" + )] #[doc = "Setter for the `status` field of this object."] #[doc = ""] #[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 set_status(this: &Window, value: &str) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = closed)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "closed" + )] #[doc = "Getter for the `closed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/closed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn closed(this: &Window) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = event)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "event")] #[doc = "Getter for the `event` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn event(this: &Window) -> ::wasm_bindgen::JsValue; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = frames)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "frames" + )] #[doc = "Getter for the `frames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/frames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn frames(this: &Window) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = length)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "length")] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn length(this: &Window) -> u32; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = top)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "top" + )] #[doc = "Getter for the `top` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/top)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn top(this: &Window) -> Result, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = opener)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "opener" + )] #[doc = "Getter for the `opener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/opener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn opener(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = opener)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "opener" + )] #[doc = "Setter for the `opener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/opener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_opener(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = parent)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "parent" + )] #[doc = "Getter for the `parent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/parent)"] @@ -190,7 +320,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn parent(this: &Window) -> Result, JsValue>; #[cfg(feature = "Element")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = frameElement)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "frameElement" + )] #[doc = "Getter for the `frameElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/frameElement)"] @@ -198,7 +335,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Element`, `Window`*"] pub fn frame_element(this: &Window) -> Result, JsValue>; #[cfg(feature = "Navigator")] - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = navigator)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "navigator")] #[doc = "Getter for the `navigator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator)"] @@ -206,21 +343,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Window`*"] pub fn navigator(this: &Window) -> Navigator; #[cfg(feature = "External")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = external)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "external" + )] #[doc = "Getter for the `external` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/external)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `External`, `Window`*"] pub fn external(this: &Window) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onappinstalled)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onappinstalled" + )] #[doc = "Getter for the `onappinstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onappinstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onappinstalled(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onappinstalled)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onappinstalled" + )] #[doc = "Setter for the `onappinstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onappinstalled)"] @@ -228,126 +384,251 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onappinstalled(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "Screen")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = screen)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "screen" + )] #[doc = "Getter for the `screen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`, `Window`*"] pub fn screen(this: &Window) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = innerWidth)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "innerWidth" + )] #[doc = "Getter for the `innerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn inner_width(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = innerWidth)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "innerWidth" + )] #[doc = "Setter for the `innerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_inner_width(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = innerHeight)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "innerHeight" + )] #[doc = "Getter for the `innerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn inner_height(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = innerHeight)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "innerHeight" + )] #[doc = "Setter for the `innerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_inner_height(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = scrollX)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "scrollX" + )] #[doc = "Getter for the `scrollX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_x(this: &Window) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = pageXOffset)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "pageXOffset" + )] #[doc = "Getter for the `pageXOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageXOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn page_x_offset(this: &Window) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = scrollY)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "scrollY" + )] #[doc = "Getter for the `scrollY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_y(this: &Window) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = pageYOffset)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "pageYOffset" + )] #[doc = "Getter for the `pageYOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageYOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn page_y_offset(this: &Window) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = screenX)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "screenX" + )] #[doc = "Getter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn screen_x(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = screenX)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "screenX" + )] #[doc = "Setter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_screen_x(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = screenY)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "screenY" + )] #[doc = "Getter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn screen_y(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = screenY)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "screenY" + )] #[doc = "Setter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_screen_y(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = outerWidth)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "outerWidth" + )] #[doc = "Getter for the `outerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn outer_width(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = outerWidth)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "outerWidth" + )] #[doc = "Setter for the `outerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_outer_width(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = outerHeight)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "outerHeight" + )] #[doc = "Getter for the `outerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn outer_height(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = outerHeight)] + #[wasm_bindgen( + structural, + catch, + method, + setter, + js_class = "Window", + js_name = "outerHeight" + )] #[doc = "Setter for the `outerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_outer_height(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = devicePixelRatio)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "devicePixelRatio" + )] #[doc = "Getter for the `devicePixelRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio)"] @@ -355,98 +636,182 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn device_pixel_ratio(this: &Window) -> f64; #[cfg(feature = "Performance")] - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = performance)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "performance" + )] #[doc = "Getter for the `performance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/performance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`, `Window`*"] pub fn performance(this: &Window) -> Option; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = orientation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "orientation" + )] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn orientation(this: &Window) -> i16; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onorientationchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onorientationchange" + )] #[doc = "Getter for the `onorientationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onorientationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onorientationchange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onorientationchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onorientationchange" + )] #[doc = "Setter for the `onorientationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onorientationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onorientationchange(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplayconnect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onvrdisplayconnect" + )] #[doc = "Getter for the `onvrdisplayconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplayconnect(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplayconnect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onvrdisplayconnect" + )] #[doc = "Setter for the `onvrdisplayconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplayconnect(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplaydisconnect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onvrdisplaydisconnect" + )] #[doc = "Getter for the `onvrdisplaydisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplaydisconnect(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplaydisconnect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onvrdisplaydisconnect" + )] #[doc = "Setter for the `onvrdisplaydisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplaydisconnect(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplayactivate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onvrdisplayactivate" + )] #[doc = "Getter for the `onvrdisplayactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplayactivate(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplayactivate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onvrdisplayactivate" + )] #[doc = "Setter for the `onvrdisplayactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplayactivate(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplaydeactivate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onvrdisplaydeactivate" + )] #[doc = "Getter for the `onvrdisplaydeactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydeactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplaydeactivate(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplaydeactivate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onvrdisplaydeactivate" + )] #[doc = "Setter for the `onvrdisplaydeactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydeactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplaydeactivate(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplaypresentchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onvrdisplaypresentchange" + )] #[doc = "Getter for the `onvrdisplaypresentchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaypresentchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplaypresentchange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplaypresentchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onvrdisplaypresentchange" + )] #[doc = "Setter for the `onvrdisplaypresentchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaypresentchange)"] @@ -454,7 +819,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplaypresentchange(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "Worklet")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = paintWorklet)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "paintWorklet" + )] #[doc = "Getter for the `paintWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/paintWorklet)"] @@ -462,1155 +834,1726 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`, `Worklet`*"] pub fn paint_worklet(this: &Window) -> Result; #[cfg(feature = "Crypto")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = crypto)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "crypto" + )] #[doc = "Getter for the `crypto` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`, `Window`*"] pub fn crypto(this: &Window) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onabort)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onabort")] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onabort(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onabort)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onabort")] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onabort(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onblur)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onblur")] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onblur(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onblur)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onblur")] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onblur(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onfocus)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onfocus")] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onfocus(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onfocus)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onfocus")] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onfocus(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onauxclick" + )] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onauxclick(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onauxclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onauxclick" + )] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onauxclick(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oncanplay)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "oncanplay")] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oncanplay(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oncanplay)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "oncanplay")] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oncanplay(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "oncanplaythrough" + )] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oncanplaythrough(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oncanplaythrough)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "oncanplaythrough" + )] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oncanplaythrough(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onchange)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onchange")] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onchange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onchange)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onchange")] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onchange(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onclick)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onclick")] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onclick(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onclick)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onclick")] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onclick(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onclose)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onclose")] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onclose(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onclose)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onclose")] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onclose(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "oncontextmenu" + )] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oncontextmenu(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oncontextmenu)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "oncontextmenu" + )] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oncontextmenu(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ondblclick" + )] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondblclick(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondblclick)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ondblclick" + )] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondblclick(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondrag)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "ondrag")] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondrag(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondrag)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "ondrag")] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondrag(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragend)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "ondragend")] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragend)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "ondragend")] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragend(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ondragenter" + )] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragenter(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ondragenter" + )] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragenter(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ondragexit" + )] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragexit(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragexit)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ondragexit" + )] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragexit(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ondragleave" + )] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragleave(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ondragleave" + )] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragleave(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ondragover" + )] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragover(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ondragover" + )] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragover(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ondragstart" + )] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragstart(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ondragstart" + )] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragstart(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondrop)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "ondrop")] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondrop(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondrop)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "ondrop")] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondrop(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ondurationchange" + )] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondurationchange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondurationchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ondurationchange" + )] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondurationchange(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onemptied)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onemptied")] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onemptied(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onemptied)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onemptied")] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onemptied(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onended)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onended")] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onended(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onended)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onended")] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onended(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oninput)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "oninput")] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oninput(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oninput)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "oninput")] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oninput(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oninvalid)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "oninvalid")] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oninvalid(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oninvalid)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "oninvalid")] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oninvalid(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onkeydown)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onkeydown")] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onkeydown(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onkeydown)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onkeydown")] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onkeydown(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onkeypress" + )] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onkeypress(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onkeypress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onkeypress" + )] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onkeypress(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onkeyup)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onkeyup")] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onkeyup(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onkeyup)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onkeyup")] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onkeyup(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onload)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onload")] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onload(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onload)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onload")] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onload(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onloadeddata" + )] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadeddata(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadeddata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onloadeddata" + )] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadeddata(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onloadedmetadata" + )] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadedmetadata(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadedmetadata)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onloadedmetadata" + )] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadedmetadata(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadend)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onloadend")] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadend)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onloadend")] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadend(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onloadstart" + )] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadstart(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onloadstart" + )] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadstart(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onmousedown" + )] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmousedown(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmousedown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onmousedown" + )] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmousedown(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onmouseenter" + )] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseenter(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onmouseenter" + )] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseenter(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onmouseleave" + )] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseleave(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onmouseleave" + )] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseleave(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onmousemove" + )] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmousemove(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmousemove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onmousemove" + )] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmousemove(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onmouseout" + )] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseout(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onmouseout" + )] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseout(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onmouseover" + )] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseover(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onmouseover" + )] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseover(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseup)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onmouseup")] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseup(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseup)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onmouseup")] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseup(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwheel)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onwheel")] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwheel(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwheel)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onwheel")] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwheel(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpause)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onpause")] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpause(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpause)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onpause")] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpause(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onplay)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onplay")] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onplay(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onplay)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onplay")] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onplay(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onplaying)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onplaying")] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onplaying(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onplaying)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onplaying")] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onplaying(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onprogress(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onprogress(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onratechange" + )] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onratechange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onratechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onratechange" + )] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onratechange(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onreset)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onreset")] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onreset(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onreset)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onreset")] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onreset(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onresize)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onresize")] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onresize(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onresize)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onresize")] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onresize(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onscroll)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onscroll")] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onscroll(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onscroll)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onscroll")] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onscroll(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onseeked)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onseeked")] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onseeked(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onseeked)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onseeked")] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onseeked(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onseeking)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onseeking")] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onseeking(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onseeking)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onseeking")] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onseeking(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onselect)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onselect")] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onselect(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onselect)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onselect")] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onselect(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onshow)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onshow")] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onshow(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onshow)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onshow")] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onshow(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onstalled)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onstalled")] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onstalled(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onstalled)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onstalled")] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onstalled(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onsubmit)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onsubmit")] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onsubmit(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onsubmit)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onsubmit")] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onsubmit(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onsuspend)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onsuspend")] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onsuspend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onsuspend)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onsuspend")] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onsuspend(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontimeupdate" + )] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontimeupdate(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontimeupdate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontimeupdate" + )] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontimeupdate(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onvolumechange" + )] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvolumechange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvolumechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onvolumechange" + )] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvolumechange(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwaiting)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onwaiting")] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwaiting(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwaiting)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onwaiting")] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwaiting(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onselectstart" + )] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onselectstart(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onselectstart" + )] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onselectstart(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontoggle)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "ontoggle")] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontoggle(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontoggle)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "ontoggle")] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontoggle(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointercancel" + )] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointercancel(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointercancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointercancel" + )] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointercancel(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointerdown" + )] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerdown(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerdown)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointerdown" + )] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerdown(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointerup" + )] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerup(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerup)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointerup" + )] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerup(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointermove" + )] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointermove(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointermove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointermove" + )] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointermove(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointerout" + )] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerout(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointerout" + )] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerout(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointerover" + )] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerover(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerover)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointerover" + )] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerover(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointerenter" + )] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerenter(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerenter)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointerenter" + )] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerenter(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpointerleave" + )] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerleave(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerleave)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpointerleave" + )] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerleave(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ongotpointercapture" + )] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ongotpointercapture(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ongotpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ongotpointercapture" + )] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ongotpointercapture(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onlostpointercapture" + )] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onlostpointercapture(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onlostpointercapture)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onlostpointercapture" + )] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onlostpointercapture(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onanimationcancel" + )] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationcancel(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onanimationcancel" + )] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationcancel(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onanimationend" + )] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onanimationend" + )] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationend(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onanimationiteration" + )] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationiteration(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onanimationiteration" + )] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationiteration(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onanimationstart" + )] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationstart(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onanimationstart" + )] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationstart(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontransitioncancel" + )] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitioncancel(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitioncancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontransitioncancel" + )] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitioncancel(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontransitionend" + )] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitionend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontransitionend" + )] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitionend(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontransitionrun" + )] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitionrun(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitionrun)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontransitionrun" + )] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitionrun(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontransitionstart" + )] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitionstart(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitionstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontransitionstart" + )] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitionstart(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onwebkitanimationend" + )] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkitanimationend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkitanimationend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onwebkitanimationend" + )] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkitanimationend(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onwebkitanimationiteration" + )] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkitanimationiteration(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkitanimationiteration)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onwebkitanimationiteration" + )] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkitanimationiteration(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onwebkitanimationstart" + )] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkitanimationstart(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkitanimationstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onwebkitanimationstart" + )] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkitanimationstart(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onwebkittransitionend" + )] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkittransitionend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkittransitionend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onwebkittransitionend" + )] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkittransitionend)"] @@ -1618,21 +2561,28 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkittransitionend(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "U2f")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = u2f)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "u2f" + )] #[doc = "Getter for the `u2f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/u2f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`, `Window`*"] pub fn u2f(this: &Window) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onerror)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onerror")] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onerror(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onerror)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onerror")] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onerror)"] @@ -1640,259 +2590,422 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onerror(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "SpeechSynthesis")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = speechSynthesis)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "speechSynthesis" + )] #[doc = "Getter for the `speechSynthesis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/speechSynthesis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`, `Window`*"] pub fn speech_synthesis(this: &Window) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontouchstart" + )] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchstart(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontouchstart" + )] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchstart(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontouchend" + )] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchend(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontouchend" + )] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchend(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontouchmove" + )] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchmove(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchmove)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontouchmove" + )] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchmove(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "ontouchcancel" + )] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchcancel(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchcancel)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "ontouchcancel" + )] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchcancel(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onafterprint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onafterprint" + )] #[doc = "Getter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onafterprint(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onafterprint)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onafterprint" + )] #[doc = "Setter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onafterprint(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onbeforeprint)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onbeforeprint" + )] #[doc = "Getter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onbeforeprint(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onbeforeprint)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onbeforeprint" + )] #[doc = "Setter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onbeforeprint(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onbeforeunload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onbeforeunload" + )] #[doc = "Getter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onbeforeunload(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onbeforeunload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onbeforeunload" + )] #[doc = "Setter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onbeforeunload(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onhashchange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onhashchange" + )] #[doc = "Getter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onhashchange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onhashchange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onhashchange" + )] #[doc = "Setter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onhashchange(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onlanguagechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onlanguagechange" + )] #[doc = "Getter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onlanguagechange(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onlanguagechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onlanguagechange" + )] #[doc = "Setter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onlanguagechange(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmessage)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onmessage")] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmessage(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmessage)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onmessage")] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmessage(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onmessageerror" + )] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmessageerror(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onmessageerror" + )] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmessageerror(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onoffline)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onoffline")] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onoffline(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onoffline)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onoffline")] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onoffline(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ononline)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "ononline")] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ononline(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ononline)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "ononline")] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ononline(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpagehide)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpagehide" + )] #[doc = "Getter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpagehide(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpagehide)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpagehide" + )] #[doc = "Setter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpagehide(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpageshow)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpageshow" + )] #[doc = "Getter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpageshow(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpageshow)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpageshow" + )] #[doc = "Setter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpageshow(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpopstate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "onpopstate" + )] #[doc = "Getter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpopstate(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpopstate)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Window", + js_name = "onpopstate" + )] #[doc = "Setter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpopstate(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onstorage)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onstorage")] #[doc = "Getter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onstorage(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onstorage)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onstorage")] #[doc = "Setter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onstorage(this: &Window, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onunload)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", js_name = "onunload")] #[doc = "Getter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onunload(this: &Window) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onunload)] + #[wasm_bindgen(structural, method, setter, js_class = "Window", js_name = "onunload")] #[doc = "Setter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onunload)"] @@ -1900,21 +3013,34 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onunload(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "Storage")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = localStorage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "localStorage" + )] #[doc = "Getter for the `localStorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `Window`*"] pub fn local_storage(this: &Window) -> Result, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = origin)] + #[wasm_bindgen(structural, method, getter, js_class = "Window", 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/Window/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn origin(this: &Window) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = isSecureContext)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Window", + js_name = "isSecureContext" + )] #[doc = "Getter for the `isSecureContext` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/isSecureContext)"] @@ -1922,7 +3048,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn is_secure_context(this: &Window) -> bool; #[cfg(feature = "IdbFactory")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = indexedDB)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "indexedDB" + )] #[doc = "Getter for the `indexedDB` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/indexedDB)"] @@ -1930,7 +3063,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `Window`*"] pub fn indexed_db(this: &Window) -> Result, JsValue>; #[cfg(feature = "CacheStorage")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = caches)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "caches" + )] #[doc = "Getter for the `caches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/caches)"] @@ -1938,77 +3078,95 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Window`*"] pub fn caches(this: &Window) -> Result; #[cfg(feature = "Storage")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = sessionStorage)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "Window", + js_name = "sessionStorage" + )] #[doc = "Getter for the `sessionStorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `Window`*"] pub fn session_storage(this: &Window) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = alert)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "alert")] #[doc = "The `alert()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn alert(this: &Window) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = alert)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "alert")] #[doc = "The `alert()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn alert_with_message(this: &Window, message: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = blur)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "blur")] #[doc = "The `blur()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/blur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn blur(this: &Window) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = cancelAnimationFrame)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "cancelAnimationFrame" + )] #[doc = "The `cancelAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn cancel_animation_frame(this: &Window, handle: i32) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = cancelIdleCallback)] + #[wasm_bindgen( + method, + structural, + js_class = "Window", + js_name = "cancelIdleCallback" + )] #[doc = "The `cancelIdleCallback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelIdleCallback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn cancel_idle_callback(this: &Window, handle: u32); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = captureEvents)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "captureEvents")] #[doc = "The `captureEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/captureEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn capture_events(this: &Window); - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = close)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn close(this: &Window) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = confirm)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "confirm")] #[doc = "The `confirm()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn confirm(this: &Window) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = confirm)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "confirm")] #[doc = "The `confirm()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn confirm_with_message(this: &Window, message: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = focus)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "focus")] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/focus)"] @@ -2016,7 +3174,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn focus(this: &Window) -> Result<(), JsValue>; #[cfg(all(feature = "CssStyleDeclaration", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = getComputedStyle)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "getComputedStyle" + )] #[doc = "The `getComputedStyle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)"] @@ -2027,7 +3191,13 @@ extern "C" { elt: &Element, ) -> Result, JsValue>; #[cfg(all(feature = "CssStyleDeclaration", feature = "Element",))] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = getComputedStyle)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "getComputedStyle" + )] #[doc = "The `getComputedStyle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)"] @@ -2039,7 +3209,13 @@ extern "C" { pseudo_elt: &str, ) -> Result, JsValue>; #[cfg(feature = "Selection")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = getSelection)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "getSelection" + )] #[doc = "The `getSelection()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection)"] @@ -2047,42 +3223,42 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Selection`, `Window`*"] pub fn get_selection(this: &Window) -> Result, JsValue>; #[cfg(feature = "MediaQueryList")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = matchMedia)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "matchMedia")] #[doc = "The `matchMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`, `Window`*"] pub fn match_media(this: &Window, query: &str) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = moveBy)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "moveBy")] #[doc = "The `moveBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/moveBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn move_by(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = moveTo)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "moveTo")] #[doc = "The `moveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/moveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn move_to(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn open(this: &Window) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn open_with_url(this: &Window, url: &str) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] @@ -2093,7 +3269,7 @@ extern "C" { url: &str, target: &str, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "open")] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] @@ -2105,7 +3281,13 @@ extern "C" { target: &str, features: &str, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)"] @@ -2116,7 +3298,13 @@ extern "C" { message: &::wasm_bindgen::JsValue, target_origin: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)"] @@ -2128,28 +3316,28 @@ extern "C" { target_origin: &str, transfer: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = print)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "print")] #[doc = "The `print()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/print)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn print(this: &Window) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] + #[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(this: &Window) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] + #[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>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] + #[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)"] @@ -2160,14 +3348,20 @@ extern "C" { message: &str, default: &str, ) -> Result, JsValue>; - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = releaseEvents)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "releaseEvents")] #[doc = "The `releaseEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/releaseEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn release_events(this: &Window); - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestAnimationFrame)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "requestAnimationFrame" + )] #[doc = "The `requestAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame)"] @@ -2177,7 +3371,13 @@ extern "C" { this: &Window, callback: &::js_sys::Function, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestIdleCallback)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "requestIdleCallback" + )] #[doc = "The `requestIdleCallback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)"] @@ -2188,7 +3388,13 @@ extern "C" { callback: &::js_sys::Function, ) -> Result; #[cfg(feature = "IdleRequestOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestIdleCallback)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "requestIdleCallback" + )] #[doc = "The `requestIdleCallback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)"] @@ -2199,28 +3405,28 @@ extern "C" { callback: &::js_sys::Function, options: &IdleRequestOptions, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = resizeBy)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "resizeBy")] #[doc = "The `resizeBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn resize_by(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = resizeTo)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "resizeTo")] #[doc = "The `resizeTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn resize_to(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scroll)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scroll")] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_with_x_and_y(this: &Window, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scroll)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scroll")] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] @@ -2228,21 +3434,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll(this: &Window); #[cfg(feature = "ScrollToOptions")] - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scroll)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scroll")] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] pub fn scroll_with_scroll_to_options(this: &Window, options: &ScrollToOptions); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollBy)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scrollBy")] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_by_with_x_and_y(this: &Window, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollBy)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scrollBy")] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] @@ -2250,21 +3456,21 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_by(this: &Window); #[cfg(feature = "ScrollToOptions")] - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollBy)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scrollBy")] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] pub fn scroll_by_with_scroll_to_options(this: &Window, options: &ScrollToOptions); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollTo)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scrollTo")] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_to_with_x_and_y(this: &Window, x: f64, y: f64); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollTo)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scrollTo")] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] @@ -2272,14 +3478,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_to(this: &Window); #[cfg(feature = "ScrollToOptions")] - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollTo)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "scrollTo")] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] pub fn scroll_to_with_scroll_to_options(this: &Window, options: &ScrollToOptions); - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = stop)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "stop")] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/stop)"] @@ -2293,42 +3499,42 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn get(this: &Window, name: &str) -> Option<::js_sys::Object>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = atob)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "atob")] #[doc = "The `atob()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = btoa)] + #[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; - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearInterval)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "clearInterval")] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_interval(this: &Window); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearInterval)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "clearInterval")] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_interval_with_handle(this: &Window, handle: i32); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearTimeout)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "clearTimeout")] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_timeout(this: &Window); - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearTimeout)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "clearTimeout")] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearTimeout)"] @@ -2336,7 +3542,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_timeout_with_handle(this: &Window, handle: i32); #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2347,7 +3559,13 @@ extern "C" { a_image: &HtmlImageElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2358,7 +3576,13 @@ extern "C" { a_image: &HtmlVideoElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2369,7 +3593,13 @@ extern "C" { a_image: &HtmlCanvasElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2380,7 +3610,13 @@ extern "C" { a_image: &Blob, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2391,7 +3627,13 @@ extern "C" { a_image: &ImageData, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2402,7 +3644,13 @@ extern "C" { a_image: &CanvasRenderingContext2d, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2412,7 +3660,13 @@ extern "C" { this: &Window, a_image: &ImageBitmap, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2422,7 +3676,13 @@ extern "C" { this: &Window, a_image: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2433,7 +3693,13 @@ extern "C" { a_image: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2448,7 +3714,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2463,7 +3735,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2478,7 +3756,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2493,7 +3777,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2508,7 +3798,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2523,7 +3819,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2537,7 +3839,13 @@ extern "C" { a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2551,7 +3859,13 @@ extern "C" { a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] @@ -2566,14 +3880,14 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `Window`*"] pub fn fetch_with_request(this: &Window, input: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] @@ -2581,7 +3895,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn fetch_with_str(this: &Window, input: &str) -> ::js_sys::Promise; #[cfg(all(feature = "Request", feature = "RequestInit",))] - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] @@ -2593,7 +3907,7 @@ extern "C" { init: &RequestInit, ) -> ::js_sys::Promise; #[cfg(feature = "RequestInit")] - # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "Window", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] @@ -2604,7 +3918,13 @@ extern "C" { input: &str, init: &RequestInit, ) -> ::js_sys::Promise; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2614,7 +3934,14 @@ extern "C" { this: &Window, handler: &::js_sys::Function, ) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2626,7 +3953,13 @@ extern "C" { timeout: i32, arguments: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2637,7 +3970,13 @@ extern "C" { handler: &::js_sys::Function, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2649,7 +3988,13 @@ extern "C" { timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2662,7 +4007,13 @@ extern "C" { arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2676,7 +4027,13 @@ extern "C" { arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2691,7 +4048,13 @@ extern "C" { arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2707,7 +4070,13 @@ extern "C" { arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2724,7 +4093,13 @@ extern "C" { arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2742,14 +4117,27 @@ extern "C" { arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str(this: &Window, handler: &str) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2761,7 +4149,13 @@ extern "C" { timeout: i32, unused: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2772,7 +4166,13 @@ extern "C" { handler: &str, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2784,7 +4184,13 @@ extern "C" { timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2797,7 +4203,13 @@ extern "C" { unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2811,7 +4223,13 @@ extern "C" { unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2826,7 +4244,13 @@ extern "C" { unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2842,7 +4266,13 @@ extern "C" { unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2859,7 +4289,13 @@ extern "C" { unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Window", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] @@ -2877,7 +4313,7 @@ extern "C" { unused_6: &::wasm_bindgen::JsValue, unused_7: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2887,7 +4323,14 @@ extern "C" { this: &Window, handler: &::js_sys::Function, ) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Window", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2899,7 +4342,7 @@ extern "C" { timeout: i32, arguments: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2910,7 +4353,7 @@ extern "C" { handler: &::js_sys::Function, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2922,7 +4365,7 @@ extern "C" { timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2935,7 +4378,7 @@ extern "C" { arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2949,7 +4392,7 @@ extern "C" { arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2964,7 +4407,7 @@ extern "C" { arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2980,7 +4423,7 @@ extern "C" { arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -2997,7 +4440,7 @@ extern "C" { arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3015,14 +4458,21 @@ extern "C" { arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str(this: &Window, handler: &str) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "Window", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3034,7 +4484,7 @@ extern "C" { timeout: i32, unused: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3045,7 +4495,7 @@ extern "C" { handler: &str, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3057,7 +4507,7 @@ extern "C" { timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3070,7 +4520,7 @@ extern "C" { unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3084,7 +4534,7 @@ extern "C" { unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3099,7 +4549,7 @@ extern "C" { unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3115,7 +4565,7 @@ extern "C" { unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] @@ -3132,7 +4582,7 @@ extern "C" { unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] + #[wasm_bindgen(catch, method, structural, js_class = "Window", js_name = "setTimeout")] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] diff --git a/crates/web-sys/src/features/gen_WindowClient.rs b/crates/web-sys/src/features/gen_WindowClient.rs index 883de35ed5a..b1bad6bfaf2 100644 --- a/crates/web-sys/src/features/gen_WindowClient.rs +++ b/crates/web-sys/src/features/gen_WindowClient.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Client , extends = :: js_sys :: Object , js_name = WindowClient , typescript_type = "WindowClient")] + #[wasm_bindgen( + extends = "Client", + extends = "::js_sys::Object", + js_name = "WindowClient", + typescript_type = "WindowClient" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WindowClient` class."] #[doc = ""] @@ -12,28 +17,52 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] pub type WindowClient; #[cfg(feature = "VisibilityState")] - # [wasm_bindgen (structural , method , getter , js_class = "WindowClient" , js_name = visibilityState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WindowClient", + js_name = "visibilityState" + )] #[doc = "Getter for the `visibilityState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/visibilityState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisibilityState`, `WindowClient`*"] pub fn visibility_state(this: &WindowClient) -> VisibilityState; - # [wasm_bindgen (structural , method , getter , js_class = "WindowClient" , js_name = focused)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WindowClient", + js_name = "focused" + )] #[doc = "Getter for the `focused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] pub fn focused(this: &WindowClient) -> bool; - # [wasm_bindgen (catch , method , structural , js_class = "WindowClient" , js_name = focus)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WindowClient", + js_name = "focus" + )] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] pub fn focus(this: &WindowClient) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WindowClient" , js_name = navigate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WindowClient", + js_name = "navigate" + )] #[doc = "The `navigate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/navigate)"] diff --git a/crates/web-sys/src/features/gen_Worker.rs b/crates/web-sys/src/features/gen_Worker.rs index ba9139f7023..dbccea90414 100644 --- a/crates/web-sys/src/features/gen_Worker.rs +++ b/crates/web-sys/src/features/gen_Worker.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Worker , typescript_type = "Worker")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "Worker", + typescript_type = "Worker" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Worker` class."] #[doc = ""] @@ -11,42 +16,54 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub type Worker; - # [wasm_bindgen (structural , method , getter , js_class = "Worker" , js_name = onmessage)] + #[wasm_bindgen(structural, method, getter, js_class = "Worker", js_name = "onmessage")] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn onmessage(this: &Worker) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Worker" , js_name = onmessage)] + #[wasm_bindgen(structural, method, setter, js_class = "Worker", js_name = "onmessage")] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn set_onmessage(this: &Worker, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Worker" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "Worker", + js_name = "onmessageerror" + )] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn onmessageerror(this: &Worker) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Worker" , js_name = onmessageerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "Worker", + js_name = "onmessageerror" + )] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn set_onmessageerror(this: &Worker, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "Worker" , js_name = onerror)] + #[wasm_bindgen(structural, method, getter, js_class = "Worker", js_name = "onerror")] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn onerror(this: &Worker) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "Worker" , js_name = onerror)] + #[wasm_bindgen(structural, method, setter, js_class = "Worker", js_name = "onerror")] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onerror)"] @@ -68,14 +85,26 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`, `WorkerOptions`*"] pub fn new_with_options(script_url: &str, options: &WorkerOptions) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "Worker" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Worker", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn post_message(this: &Worker, message: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Worker" , js_name = postMessage)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "Worker", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage)"] @@ -86,7 +115,7 @@ extern "C" { message: &::wasm_bindgen::JsValue, transfer: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "Worker" , js_name = terminate)] + #[wasm_bindgen(method, structural, js_class = "Worker", js_name = "terminate")] #[doc = "The `terminate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate)"] diff --git a/crates/web-sys/src/features/gen_WorkerDebuggerGlobalScope.rs b/crates/web-sys/src/features/gen_WorkerDebuggerGlobalScope.rs index e2bd8ee54dc..c9461b0676d 100644 --- a/crates/web-sys/src/features/gen_WorkerDebuggerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_WorkerDebuggerGlobalScope.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WorkerDebuggerGlobalScope , typescript_type = "WorkerDebuggerGlobalScope")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "WorkerDebuggerGlobalScope", + typescript_type = "WorkerDebuggerGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerDebuggerGlobalScope` class."] #[doc = ""] @@ -11,28 +16,53 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub type WorkerDebuggerGlobalScope; - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = global)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "WorkerDebuggerGlobalScope", + js_name = "global" + )] #[doc = "Getter for the `global` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/global)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn global(this: &WorkerDebuggerGlobalScope) -> Result<::js_sys::Object, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerDebuggerGlobalScope", + js_name = "onmessage" + )] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn onmessage(this: &WorkerDebuggerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WorkerDebuggerGlobalScope", + js_name = "onmessage" + )] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn set_onmessage(this: &WorkerDebuggerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = createSandbox)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "createSandbox" + )] #[doc = "The `createSandbox()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/createSandbox)"] @@ -43,42 +73,74 @@ extern "C" { name: &str, prototype: &::js_sys::Object, ) -> Result<::js_sys::Object, JsValue>; - # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "dump" + )] #[doc = "The `dump()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn dump(this: &WorkerDebuggerGlobalScope); - # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "dump" + )] #[doc = "The `dump()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn dump_with_string(this: &WorkerDebuggerGlobalScope, string: &str); - # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = enterEventLoop)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "enterEventLoop" + )] #[doc = "The `enterEventLoop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/enterEventLoop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn enter_event_loop(this: &WorkerDebuggerGlobalScope); - # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = leaveEventLoop)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "leaveEventLoop" + )] #[doc = "The `leaveEventLoop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/leaveEventLoop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn leave_event_loop(this: &WorkerDebuggerGlobalScope); - # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "loadSubScript" + )] #[doc = "The `loadSubScript()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn load_sub_script(this: &WorkerDebuggerGlobalScope, url: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "loadSubScript" + )] #[doc = "The `loadSubScript()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"] @@ -89,21 +151,37 @@ extern "C" { url: &str, sandbox: &::js_sys::Object, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = postMessage)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "postMessage" + )] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn post_message(this: &WorkerDebuggerGlobalScope, message: &str); - # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = reportError)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "reportError" + )] #[doc = "The `reportError()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/reportError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn report_error(this: &WorkerDebuggerGlobalScope, message: &str); - # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = retrieveConsoleEvents)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "retrieveConsoleEvents" + )] #[doc = "The `retrieveConsoleEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/retrieveConsoleEvents)"] @@ -112,7 +190,13 @@ extern "C" { pub fn retrieve_console_events( this: &WorkerDebuggerGlobalScope, ) -> Result<::js_sys::Array, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setConsoleEventHandler)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "setConsoleEventHandler" + )] #[doc = "The `setConsoleEventHandler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setConsoleEventHandler)"] @@ -122,7 +206,13 @@ extern "C" { this: &WorkerDebuggerGlobalScope, handler: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setImmediate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerDebuggerGlobalScope", + js_name = "setImmediate" + )] #[doc = "The `setImmediate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setImmediate)"] diff --git a/crates/web-sys/src/features/gen_WorkerGlobalScope.rs b/crates/web-sys/src/features/gen_WorkerGlobalScope.rs index 3f51a6d0cf9..56ee2294733 100644 --- a/crates/web-sys/src/features/gen_WorkerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_WorkerGlobalScope.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WorkerGlobalScope , typescript_type = "WorkerGlobalScope")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "WorkerGlobalScope", + typescript_type = "WorkerGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerGlobalScope` class."] #[doc = ""] @@ -11,7 +16,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub type WorkerGlobalScope; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = self)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "self" + )] #[doc = "Getter for the `self` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self)"] @@ -19,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn self_(this: &WorkerGlobalScope) -> WorkerGlobalScope; #[cfg(feature = "WorkerLocation")] - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = location)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "location" + )] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location)"] @@ -27,49 +44,91 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerLocation`*"] pub fn location(this: &WorkerGlobalScope) -> WorkerLocation; #[cfg(feature = "WorkerNavigator")] - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = navigator)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "navigator" + )] #[doc = "Getter for the `navigator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerNavigator`*"] pub fn navigator(this: &WorkerGlobalScope) -> WorkerNavigator; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn onerror(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WorkerGlobalScope", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_onerror(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onoffline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "onoffline" + )] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn onoffline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onoffline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WorkerGlobalScope", + js_name = "onoffline" + )] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_onoffline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = ononline)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "ononline" + )] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn ononline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = ononline)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "WorkerGlobalScope", + js_name = "ononline" + )] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"] @@ -77,21 +136,40 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_ononline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); #[cfg(feature = "Crypto")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = crypto)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "crypto" + )] #[doc = "Getter for the `crypto` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/crypto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`, `WorkerGlobalScope`*"] pub fn crypto(this: &WorkerGlobalScope) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = origin)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + 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/WorkerGlobalScope/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn origin(this: &WorkerGlobalScope) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = isSecureContext)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "isSecureContext" + )] #[doc = "Getter for the `isSecureContext` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/isSecureContext)"] @@ -99,7 +177,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn is_secure_context(this: &WorkerGlobalScope) -> bool; #[cfg(feature = "IdbFactory")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = indexedDB)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "indexedDB" + )] #[doc = "Getter for the `indexedDB` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/indexedDB)"] @@ -107,35 +192,67 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `WorkerGlobalScope`*"] pub fn indexed_db(this: &WorkerGlobalScope) -> Result, JsValue>; #[cfg(feature = "CacheStorage")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = caches)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "WorkerGlobalScope", + js_name = "caches" + )] #[doc = "Getter for the `caches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/caches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `WorkerGlobalScope`*"] pub fn caches(this: &WorkerGlobalScope) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts(this: &WorkerGlobalScope, urls: &::js_sys::Array) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_0(this: &WorkerGlobalScope) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_1(this: &WorkerGlobalScope, urls_1: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] @@ -146,7 +263,13 @@ extern "C" { urls_1: &str, urls_2: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] @@ -158,7 +281,13 @@ extern "C" { urls_2: &str, urls_3: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] @@ -171,7 +300,13 @@ extern "C" { urls_3: &str, urls_4: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] @@ -185,7 +320,13 @@ extern "C" { urls_4: &str, urls_5: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] @@ -200,7 +341,13 @@ extern "C" { urls_5: &str, urls_6: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "importScripts" + )] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] @@ -216,42 +363,74 @@ extern "C" { urls_6: &str, urls_7: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = atob)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "atob" + )] #[doc = "The `atob()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = btoa)] + #[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; - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "clearInterval" + )] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_interval(this: &WorkerGlobalScope); - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "clearInterval" + )] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_interval_with_handle(this: &WorkerGlobalScope, handle: i32); - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "clearTimeout" + )] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_timeout(this: &WorkerGlobalScope); - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "clearTimeout" + )] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"] @@ -259,7 +438,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_timeout_with_handle(this: &WorkerGlobalScope, handle: i32); #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -270,7 +455,13 @@ extern "C" { a_image: &HtmlImageElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -281,7 +472,13 @@ extern "C" { a_image: &HtmlVideoElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -292,7 +489,13 @@ extern "C" { a_image: &HtmlCanvasElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -303,7 +506,13 @@ extern "C" { a_image: &Blob, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -314,7 +523,13 @@ extern "C" { a_image: &ImageData, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -325,7 +540,13 @@ extern "C" { a_image: &CanvasRenderingContext2d, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -335,7 +556,13 @@ extern "C" { this: &WorkerGlobalScope, a_image: &ImageBitmap, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -345,7 +572,13 @@ extern "C" { this: &WorkerGlobalScope, a_image: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -356,7 +589,13 @@ extern "C" { a_image: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlImageElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -371,7 +610,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -386,7 +631,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -401,7 +652,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -416,7 +673,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -431,7 +694,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -446,7 +715,13 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -460,7 +735,13 @@ extern "C" { a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -474,7 +755,13 @@ extern "C" { a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "createImageBitmap" + )] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] @@ -489,14 +776,14 @@ extern "C" { a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Request")] - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "WorkerGlobalScope", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `WorkerGlobalScope`*"] pub fn fetch_with_request(this: &WorkerGlobalScope, input: &Request) -> ::js_sys::Promise; - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "WorkerGlobalScope", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] @@ -504,7 +791,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn fetch_with_str(this: &WorkerGlobalScope, input: &str) -> ::js_sys::Promise; #[cfg(all(feature = "Request", feature = "RequestInit",))] - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "WorkerGlobalScope", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] @@ -516,7 +803,7 @@ extern "C" { init: &RequestInit, ) -> ::js_sys::Promise; #[cfg(feature = "RequestInit")] - # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] + #[wasm_bindgen(method, structural, js_class = "WorkerGlobalScope", js_name = "fetch")] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] @@ -527,7 +814,13 @@ extern "C" { input: &str, init: &RequestInit, ) -> ::js_sys::Promise; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -537,7 +830,14 @@ extern "C" { this: &WorkerGlobalScope, handler: &::js_sys::Function, ) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -549,7 +849,13 @@ extern "C" { timeout: i32, arguments: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -560,7 +866,13 @@ extern "C" { handler: &::js_sys::Function, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -572,7 +884,13 @@ extern "C" { timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -585,7 +903,13 @@ extern "C" { arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -599,7 +923,13 @@ extern "C" { arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -614,7 +944,13 @@ extern "C" { arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -630,7 +966,13 @@ extern "C" { arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -647,7 +989,13 @@ extern "C" { arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -665,14 +1013,27 @@ extern "C" { arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str(this: &WorkerGlobalScope, handler: &str) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -684,7 +1045,13 @@ extern "C" { timeout: i32, unused: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -695,7 +1062,13 @@ extern "C" { handler: &str, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -707,7 +1080,13 @@ extern "C" { timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -720,7 +1099,13 @@ extern "C" { unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -734,7 +1119,13 @@ extern "C" { unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -749,7 +1140,13 @@ extern "C" { unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -765,7 +1162,13 @@ extern "C" { unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -782,7 +1185,13 @@ extern "C" { unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setInterval" + )] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] @@ -800,7 +1209,13 @@ extern "C" { unused_6: &::wasm_bindgen::JsValue, unused_7: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -810,7 +1225,14 @@ extern "C" { this: &WorkerGlobalScope, handler: &::js_sys::Function, ) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -822,7 +1244,13 @@ extern "C" { timeout: i32, arguments: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -833,7 +1261,13 @@ extern "C" { handler: &::js_sys::Function, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -845,7 +1279,13 @@ extern "C" { timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -858,7 +1298,13 @@ extern "C" { arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -872,7 +1318,13 @@ extern "C" { arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -887,7 +1339,13 @@ extern "C" { arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -903,7 +1361,13 @@ extern "C" { arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -920,7 +1384,13 @@ extern "C" { arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -938,14 +1408,27 @@ extern "C" { arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str(this: &WorkerGlobalScope, handler: &str) -> Result; - # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + variadic, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -957,7 +1440,13 @@ extern "C" { timeout: i32, unused: &::js_sys::Array, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -968,7 +1457,13 @@ extern "C" { handler: &str, timeout: i32, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -980,7 +1475,13 @@ extern "C" { timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -993,7 +1494,13 @@ extern "C" { unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -1007,7 +1514,13 @@ extern "C" { unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -1022,7 +1535,13 @@ extern "C" { unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -1038,7 +1557,13 @@ extern "C" { unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] @@ -1055,7 +1580,13 @@ extern "C" { unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "WorkerGlobalScope", + js_name = "setTimeout" + )] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] diff --git a/crates/web-sys/src/features/gen_WorkerLocation.rs b/crates/web-sys/src/features/gen_WorkerLocation.rs index 643fd1d3671..22d350e0872 100644 --- a/crates/web-sys/src/features/gen_WorkerLocation.rs +++ b/crates/web-sys/src/features/gen_WorkerLocation.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkerLocation , typescript_type = "WorkerLocation")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WorkerLocation", + typescript_type = "WorkerLocation" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerLocation` class."] #[doc = ""] @@ -11,63 +15,117 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub type WorkerLocation; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = href)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerLocation", + 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/WorkerLocation/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn href(this: &WorkerLocation) -> String; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = origin)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = protocol)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = host)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hostname)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = port)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = pathname)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = search)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hash)] + #[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)"] diff --git a/crates/web-sys/src/features/gen_WorkerNavigator.rs b/crates/web-sys/src/features/gen_WorkerNavigator.rs index 09e987ea016..3b9e8f90d51 100644 --- a/crates/web-sys/src/features/gen_WorkerNavigator.rs +++ b/crates/web-sys/src/features/gen_WorkerNavigator.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkerNavigator , typescript_type = "WorkerNavigator")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WorkerNavigator", + typescript_type = "WorkerNavigator" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerNavigator` class."] #[doc = ""] @@ -12,7 +16,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub type WorkerNavigator; #[cfg(feature = "NetworkInformation")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = connection)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "WorkerNavigator", + js_name = "connection" + )] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/connection)"] @@ -20,7 +31,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`, `WorkerNavigator`*"] pub fn connection(this: &WorkerNavigator) -> Result; #[cfg(feature = "MediaCapabilities")] - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = mediaCapabilities)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerNavigator", + js_name = "mediaCapabilities" + )] #[doc = "Getter for the `mediaCapabilities` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/mediaCapabilities)"] @@ -29,7 +46,13 @@ extern "C" { pub fn media_capabilities(this: &WorkerNavigator) -> MediaCapabilities; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Usb")] - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = usb)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerNavigator", + js_name = "usb" + )] #[doc = "Getter for the `usb` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/usb)"] @@ -39,7 +62,13 @@ 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)*"] pub fn usb(this: &WorkerNavigator) -> Usb; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = hardwareConcurrency)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerNavigator", + js_name = "hardwareConcurrency" + )] #[doc = "Getter for the `hardwareConcurrency` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/hardwareConcurrency)"] @@ -48,7 +77,13 @@ extern "C" { pub fn hardware_concurrency(this: &WorkerNavigator) -> f64; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Gpu")] - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = gpu)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerNavigator", + js_name = "gpu" + )] #[doc = "Getter for the `gpu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/gpu)"] @@ -58,63 +93,121 @@ 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)*"] pub fn gpu(this: &WorkerNavigator) -> Gpu; - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = appCodeName)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "WorkerNavigator", + js_name = "appCodeName" + )] #[doc = "Getter for the `appCodeName` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = appName)] + #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = appVersion)] + #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = platform)] + #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = userAgent)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = product)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = language)] + #[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; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = languages)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerNavigator", + js_name = "languages" + )] #[doc = "Getter for the `languages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/languages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn languages(this: &WorkerNavigator) -> ::js_sys::Array; - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = onLine)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerNavigator", + js_name = "onLine" + )] #[doc = "Getter for the `onLine` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/onLine)"] @@ -122,14 +215,25 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn on_line(this: &WorkerNavigator) -> bool; #[cfg(feature = "StorageManager")] - # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = storage)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WorkerNavigator", + js_name = "storage" + )] #[doc = "Getter for the `storage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/storage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`, `WorkerNavigator`*"] pub fn storage(this: &WorkerNavigator) -> StorageManager; - # [wasm_bindgen (method , structural , js_class = "WorkerNavigator" , js_name = taintEnabled)] + #[wasm_bindgen( + method, + structural, + js_class = "WorkerNavigator", + js_name = "taintEnabled" + )] #[doc = "The `taintEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/taintEnabled)"] diff --git a/crates/web-sys/src/features/gen_WorkerOptions.rs b/crates/web-sys/src/features/gen_WorkerOptions.rs index b4e6791454f..aef513e1c63 100644 --- a/crates/web-sys/src/features/gen_WorkerOptions.rs +++ b/crates/web-sys/src/features/gen_WorkerOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkerOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WorkerOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Worklet.rs b/crates/web-sys/src/features/gen_Worklet.rs index fec6b6dcc05..b284a9ebbb3 100644 --- a/crates/web-sys/src/features/gen_Worklet.rs +++ b/crates/web-sys/src/features/gen_Worklet.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Worklet , typescript_type = "Worklet")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "Worklet", + typescript_type = "Worklet" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Worklet` class."] #[doc = ""] @@ -11,7 +15,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worklet`*"] pub type Worklet; - # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)] + #[wasm_bindgen(catch, method, structural, js_class = "Worklet", js_name = "addModule")] #[doc = "The `addModule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"] @@ -19,7 +23,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Worklet`*"] pub fn add_module(this: &Worklet, module_url: &str) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "WorkletOptions")] - # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)] + #[wasm_bindgen(catch, method, structural, js_class = "Worklet", js_name = "addModule")] #[doc = "The `addModule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"] diff --git a/crates/web-sys/src/features/gen_WorkletGlobalScope.rs b/crates/web-sys/src/features/gen_WorkletGlobalScope.rs index 26931699c8e..e8fa03e175c 100644 --- a/crates/web-sys/src/features/gen_WorkletGlobalScope.rs +++ b/crates/web-sys/src/features/gen_WorkletGlobalScope.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkletGlobalScope , typescript_type = "WorkletGlobalScope")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WorkletGlobalScope", + typescript_type = "WorkletGlobalScope" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkletGlobalScope` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WorkletOptions.rs b/crates/web-sys/src/features/gen_WorkletOptions.rs index d14e13b7acf..2b01aabe56c 100644 --- a/crates/web-sys/src/features/gen_WorkletOptions.rs +++ b/crates/web-sys/src/features/gen_WorkletOptions.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkletOptions)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "WorkletOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkletOptions` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WritableStream.rs b/crates/web-sys/src/features/gen_WritableStream.rs index 7f9ed141e58..0c3903b4c85 100644 --- a/crates/web-sys/src/features/gen_WritableStream.rs +++ b/crates/web-sys/src/features/gen_WritableStream.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WritableStream , typescript_type = "WritableStream")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WritableStream", + typescript_type = "WritableStream" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WritableStream` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WritableStream; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WritableStream" , js_name = locked)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WritableStream", + js_name = "locked" + )] #[doc = "Getter for the `locked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/locked)"] @@ -66,7 +76,7 @@ extern "C" { strategy: &QueuingStrategy, ) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStream" , js_name = abort)] + #[wasm_bindgen(method, structural, js_class = "WritableStream", js_name = "abort")] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/abort)"] @@ -77,7 +87,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn abort(this: &WritableStream) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStream" , js_name = abort)] + #[wasm_bindgen(method, structural, js_class = "WritableStream", js_name = "abort")] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/abort)"] @@ -91,7 +101,7 @@ extern "C" { reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStream" , js_name = close)] + #[wasm_bindgen(method, structural, js_class = "WritableStream", js_name = "close")] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/close)"] @@ -103,7 +113,7 @@ extern "C" { pub fn close(this: &WritableStream) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStreamDefaultWriter")] - # [wasm_bindgen (method , structural , js_class = "WritableStream" , js_name = getWriter)] + #[wasm_bindgen(method, structural, js_class = "WritableStream", js_name = "getWriter")] #[doc = "The `getWriter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/getWriter)"] diff --git a/crates/web-sys/src/features/gen_WritableStreamDefaultWriter.rs b/crates/web-sys/src/features/gen_WritableStreamDefaultWriter.rs index 1ba5bd8b6ce..e13d3668164 100644 --- a/crates/web-sys/src/features/gen_WritableStreamDefaultWriter.rs +++ b/crates/web-sys/src/features/gen_WritableStreamDefaultWriter.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WritableStreamDefaultWriter , typescript_type = "WritableStreamDefaultWriter")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "WritableStreamDefaultWriter", + typescript_type = "WritableStreamDefaultWriter" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WritableStreamDefaultWriter` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WritableStreamDefaultWriter; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , js_name = closed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WritableStreamDefaultWriter", + js_name = "closed" + )] #[doc = "Getter for the `closed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/closed)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn closed(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , js_name = desiredSize)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WritableStreamDefaultWriter", + js_name = "desiredSize" + )] #[doc = "Getter for the `desiredSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/desiredSize)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn desired_size(this: &WritableStreamDefaultWriter) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , js_name = ready)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "WritableStreamDefaultWriter", + js_name = "ready" + )] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/ready)"] @@ -61,7 +83,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(stream: &WritableStream) -> Result; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = abort)] + #[wasm_bindgen( + method, + structural, + js_class = "WritableStreamDefaultWriter", + js_name = "abort" + )] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/abort)"] @@ -72,7 +99,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn abort(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = abort)] + #[wasm_bindgen( + method, + structural, + js_class = "WritableStreamDefaultWriter", + js_name = "abort" + )] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/abort)"] @@ -86,7 +118,12 @@ extern "C" { reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = close)] + #[wasm_bindgen( + method, + structural, + js_class = "WritableStreamDefaultWriter", + js_name = "close" + )] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/close)"] @@ -97,7 +134,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = releaseLock)] + #[wasm_bindgen( + method, + structural, + js_class = "WritableStreamDefaultWriter", + js_name = "releaseLock" + )] #[doc = "The `releaseLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/releaseLock)"] @@ -108,7 +150,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_lock(this: &WritableStreamDefaultWriter); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = write)] + #[wasm_bindgen( + method, + structural, + js_class = "WritableStreamDefaultWriter", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/write)"] @@ -119,7 +166,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = write)] + #[wasm_bindgen( + method, + structural, + js_class = "WritableStreamDefaultWriter", + js_name = "write" + )] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/write)"] diff --git a/crates/web-sys/src/features/gen_XPathExpression.rs b/crates/web-sys/src/features/gen_XPathExpression.rs index 6a09c700a7c..ddd67d85031 100644 --- a/crates/web-sys/src/features/gen_XPathExpression.rs +++ b/crates/web-sys/src/features/gen_XPathExpression.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathExpression , typescript_type = "XPathExpression")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XPathExpression", + typescript_type = "XPathExpression" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XPathExpression` class."] #[doc = ""] @@ -12,7 +16,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XPathExpression`*"] pub type XPathExpression; #[cfg(all(feature = "Node", feature = "XPathResult",))] - # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XPathExpression", + js_name = "evaluate" + )] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] @@ -20,7 +30,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"] pub fn evaluate(this: &XPathExpression, context_node: &Node) -> Result; #[cfg(all(feature = "Node", feature = "XPathResult",))] - # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XPathExpression", + js_name = "evaluate" + )] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] @@ -32,7 +48,13 @@ extern "C" { type_: u16, ) -> Result; #[cfg(all(feature = "Node", feature = "XPathResult",))] - # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XPathExpression", + js_name = "evaluate" + )] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] diff --git a/crates/web-sys/src/features/gen_XPathNsResolver.rs b/crates/web-sys/src/features/gen_XPathNsResolver.rs index 7420828774a..615ae851ed7 100644 --- a/crates/web-sys/src/features/gen_XPathNsResolver.rs +++ b/crates/web-sys/src/features/gen_XPathNsResolver.rs @@ -3,7 +3,7 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathNSResolver)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XPathNSResolver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XPathNsResolver` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XPathResult.rs b/crates/web-sys/src/features/gen_XPathResult.rs index a006a893d73..7e70f5b8bed 100644 --- a/crates/web-sys/src/features/gen_XPathResult.rs +++ b/crates/web-sys/src/features/gen_XPathResult.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathResult , typescript_type = "XPathResult")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XPathResult", + typescript_type = "XPathResult" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XPathResult` class."] #[doc = ""] @@ -11,28 +15,55 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub type XPathResult; - # [wasm_bindgen (structural , method , getter , js_class = "XPathResult" , js_name = resultType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XPathResult", + js_name = "resultType" + )] #[doc = "Getter for the `resultType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/resultType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn result_type(this: &XPathResult) -> u16; - # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = numberValue)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XPathResult", + js_name = "numberValue" + )] #[doc = "Getter for the `numberValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/numberValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn number_value(this: &XPathResult) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = stringValue)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XPathResult", + js_name = "stringValue" + )] #[doc = "Getter for the `stringValue` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = booleanValue)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XPathResult", + js_name = "booleanValue" + )] #[doc = "Getter for the `booleanValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/booleanValue)"] @@ -40,21 +71,41 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn boolean_value(this: &XPathResult) -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = singleNodeValue)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XPathResult", + js_name = "singleNodeValue" + )] #[doc = "Getter for the `singleNodeValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/singleNodeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] pub fn single_node_value(this: &XPathResult) -> Result, JsValue>; - # [wasm_bindgen (structural , method , getter , js_class = "XPathResult" , js_name = invalidIteratorState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XPathResult", + js_name = "invalidIteratorState" + )] #[doc = "Getter for the `invalidIteratorState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/invalidIteratorState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn invalid_iterator_state(this: &XPathResult) -> bool; - # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = snapshotLength)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XPathResult", + js_name = "snapshotLength" + )] #[doc = "Getter for the `snapshotLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotLength)"] @@ -62,7 +113,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn snapshot_length(this: &XPathResult) -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "XPathResult" , js_name = iterateNext)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XPathResult", + js_name = "iterateNext" + )] #[doc = "The `iterateNext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/iterateNext)"] @@ -70,7 +127,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] pub fn iterate_next(this: &XPathResult) -> Result, JsValue>; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "XPathResult" , js_name = snapshotItem)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XPathResult", + js_name = "snapshotItem" + )] #[doc = "The `snapshotItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotItem)"] diff --git a/crates/web-sys/src/features/gen_XmlDocument.rs b/crates/web-sys/src/features/gen_XmlDocument.rs index d1f2c85859c..bf28a796161 100644 --- a/crates/web-sys/src/features/gen_XmlDocument.rs +++ b/crates/web-sys/src/features/gen_XmlDocument.rs @@ -3,7 +3,14 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Document , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLDocument , typescript_type = "XMLDocument")] + #[wasm_bindgen( + extends = "Document", + extends = "Node", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XMLDocument", + typescript_type = "XMLDocument" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlDocument` class."] #[doc = ""] @@ -11,21 +18,33 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] pub type XmlDocument; - # [wasm_bindgen (structural , method , getter , js_class = "XMLDocument" , js_name = async)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLDocument", + js_name = "async" + )] #[doc = "Getter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] pub fn r#async(this: &XmlDocument) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "XMLDocument" , js_name = async)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLDocument", + js_name = "async" + )] #[doc = "Setter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] pub fn set_async(this: &XmlDocument, value: bool); - # [wasm_bindgen (catch , method , structural , js_class = "XMLDocument" , js_name = load)] + #[wasm_bindgen(catch, method, structural, js_class = "XMLDocument", js_name = "load")] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/load)"] diff --git a/crates/web-sys/src/features/gen_XmlHttpRequest.rs b/crates/web-sys/src/features/gen_XmlHttpRequest.rs index 06522f888cd..afa0334bb92 100644 --- a/crates/web-sys/src/features/gen_XmlHttpRequest.rs +++ b/crates/web-sys/src/features/gen_XmlHttpRequest.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = XmlHttpRequestEventTarget , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequest , typescript_type = "XMLHttpRequest")] + #[wasm_bindgen( + extends = "XmlHttpRequestEventTarget", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XMLHttpRequest", + typescript_type = "XMLHttpRequest" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlHttpRequest` class."] #[doc = ""] @@ -11,49 +17,91 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub type XmlHttpRequest; - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = onreadystatechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "onreadystatechange" + )] #[doc = "Getter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn onreadystatechange(this: &XmlHttpRequest) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = onreadystatechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequest", + js_name = "onreadystatechange" + )] #[doc = "Setter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn set_onreadystatechange(this: &XmlHttpRequest, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = readyState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequest", + 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/XMLHttpRequest/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn ready_state(this: &XmlHttpRequest) -> u16; - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = timeout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "timeout" + )] #[doc = "Getter for the `timeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn timeout(this: &XmlHttpRequest) -> u32; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = timeout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequest", + js_name = "timeout" + )] #[doc = "Setter for the `timeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn set_timeout(this: &XmlHttpRequest, value: u32); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = withCredentials)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "withCredentials" + )] #[doc = "Getter for the `withCredentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn with_credentials(this: &XmlHttpRequest) -> bool; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = withCredentials)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequest", + js_name = "withCredentials" + )] #[doc = "Setter for the `withCredentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials)"] @@ -61,28 +109,55 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn set_with_credentials(this: &XmlHttpRequest, value: bool); #[cfg(feature = "XmlHttpRequestUpload")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = upload)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "upload" + )] #[doc = "Getter for the `upload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/upload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestUpload`*"] pub fn upload(this: &XmlHttpRequest) -> Result; - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = responseURL)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "responseURL" + )] #[doc = "Getter for the `responseURL` field of this object."] #[doc = ""] #[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; - # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = status)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "status" + )] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn status(this: &XmlHttpRequest) -> Result; - # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = statusText)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "statusText" + )] #[doc = "Getter for the `statusText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/statusText)"] @@ -90,7 +165,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn status_text(this: &XmlHttpRequest) -> Result; #[cfg(feature = "XmlHttpRequestResponseType")] - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = responseType)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "responseType" + )] #[doc = "Getter for the `responseType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)"] @@ -98,21 +179,41 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestResponseType`*"] pub fn response_type(this: &XmlHttpRequest) -> XmlHttpRequestResponseType; #[cfg(feature = "XmlHttpRequestResponseType")] - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = responseType)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequest", + js_name = "responseType" + )] #[doc = "Setter for the `responseType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestResponseType`*"] pub fn set_response_type(this: &XmlHttpRequest, value: XmlHttpRequestResponseType); - # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = response)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "response" + )] #[doc = "Getter for the `response` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn response(this: &XmlHttpRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; - # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = responseText)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "responseText" + )] #[doc = "Getter for the `responseText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText)"] @@ -120,7 +221,14 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn response_text(this: &XmlHttpRequest) -> Result, JsValue>; #[cfg(feature = "Document")] - # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = responseXML)] + #[wasm_bindgen( + structural, + catch, + method, + getter, + js_class = "XMLHttpRequest", + js_name = "responseXML" + )] #[doc = "Getter for the `responseXML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseXML)"] @@ -141,21 +249,39 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn new_with_ignored(ignored: &str) -> Result; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = abort)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "abort" + )] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn abort(this: &XmlHttpRequest) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = getAllResponseHeaders)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "getAllResponseHeaders" + )] #[doc = "The `getAllResponseHeaders()` method."] #[doc = ""] #[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; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = getResponseHeader)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "getResponseHeader" + )] #[doc = "The `getResponseHeader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getResponseHeader)"] @@ -165,14 +291,26 @@ extern "C" { this: &XmlHttpRequest, header: &str, ) -> Result, JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "open" + )] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn open(this: &XmlHttpRequest, method: &str, url: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "open" + )] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] @@ -184,7 +322,13 @@ extern "C" { url: &str, r#async: bool, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "open" + )] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] @@ -197,7 +341,13 @@ extern "C" { r#async: bool, user: Option<&str>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "open" + )] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] @@ -211,14 +361,26 @@ extern "C" { user: Option<&str>, password: Option<&str>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = overrideMimeType)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "overrideMimeType" + )] #[doc = "The `overrideMimeType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/overrideMimeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn override_mime_type(this: &XmlHttpRequest, mime: &str) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -226,7 +388,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn send(this: &XmlHttpRequest) -> Result<(), JsValue>; #[cfg(feature = "Document")] - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -237,14 +405,26 @@ extern "C" { body: Option<&Document>, ) -> Result<(), JsValue>; #[cfg(feature = "Blob")] - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `XmlHttpRequest`*"] pub fn send_with_opt_blob(this: &XmlHttpRequest, body: Option<&Blob>) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -254,7 +434,13 @@ extern "C" { this: &XmlHttpRequest, body: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -265,7 +451,13 @@ extern "C" { body: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "FormData")] - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -276,7 +468,13 @@ extern "C" { body: Option<&FormData>, ) -> Result<(), JsValue>; #[cfg(feature = "UrlSearchParams")] - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -286,7 +484,13 @@ extern "C" { this: &XmlHttpRequest, body: Option<&UrlSearchParams>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -294,7 +498,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn send_with_opt_str(this: &XmlHttpRequest, body: Option<&str>) -> Result<(), JsValue>; #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "send" + )] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] @@ -304,7 +514,13 @@ extern "C" { this: &XmlHttpRequest, body: Option<&ReadableStream>, ) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = setRequestHeader)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLHttpRequest", + js_name = "setRequestHeader" + )] #[doc = "The `setRequestHeader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader)"] diff --git a/crates/web-sys/src/features/gen_XmlHttpRequestEventTarget.rs b/crates/web-sys/src/features/gen_XmlHttpRequestEventTarget.rs index f4e90fd6ce8..4d63cf5ea92 100644 --- a/crates/web-sys/src/features/gen_XmlHttpRequestEventTarget.rs +++ b/crates/web-sys/src/features/gen_XmlHttpRequestEventTarget.rs @@ -3,7 +3,12 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequestEventTarget , typescript_type = "XMLHttpRequestEventTarget")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XMLHttpRequestEventTarget", + typescript_type = "XMLHttpRequestEventTarget" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlHttpRequestEventTarget` class."] #[doc = ""] @@ -11,98 +16,182 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub type XmlHttpRequestEventTarget; - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onloadstart" + )] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onloadstart(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onloadstart" + )] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onloadstart(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onprogress" + )] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onprogress(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onprogress" + )] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onprogress(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onabort" + )] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onabort(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onabort" + )] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onabort(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onerror" + )] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onerror(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onerror" + )] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onerror(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onload" + )] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onload(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onload)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onload" + )] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onload(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequestEventTarget", + js_name = "ontimeout" + )] #[doc = "Getter for the `ontimeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn ontimeout(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequestEventTarget", + js_name = "ontimeout" + )] #[doc = "Setter for the `ontimeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_ontimeout(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); - # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onloadend" + )] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onloadend(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; - # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XMLHttpRequestEventTarget", + js_name = "onloadend" + )] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"] diff --git a/crates/web-sys/src/features/gen_XmlHttpRequestUpload.rs b/crates/web-sys/src/features/gen_XmlHttpRequestUpload.rs index d21af9af460..182de7f4358 100644 --- a/crates/web-sys/src/features/gen_XmlHttpRequestUpload.rs +++ b/crates/web-sys/src/features/gen_XmlHttpRequestUpload.rs @@ -3,7 +3,13 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = XmlHttpRequestEventTarget , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequestUpload , typescript_type = "XMLHttpRequestUpload")] + #[wasm_bindgen( + extends = "XmlHttpRequestEventTarget", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XMLHttpRequestUpload", + typescript_type = "XMLHttpRequestUpload" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlHttpRequestUpload` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XmlSerializer.rs b/crates/web-sys/src/features/gen_XmlSerializer.rs index 8243e969624..58328b43b9e 100644 --- a/crates/web-sys/src/features/gen_XmlSerializer.rs +++ b/crates/web-sys/src/features/gen_XmlSerializer.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XMLSerializer , typescript_type = "XMLSerializer")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XMLSerializer", + typescript_type = "XMLSerializer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlSerializer` class."] #[doc = ""] @@ -19,7 +23,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XmlSerializer`*"] pub fn new() -> Result; #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "XMLSerializer" , js_name = serializeToString)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XMLSerializer", + js_name = "serializeToString" + )] #[doc = "The `serializeToString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/serializeToString)"] diff --git a/crates/web-sys/src/features/gen_XrBoundedReferenceSpace.rs b/crates/web-sys/src/features/gen_XrBoundedReferenceSpace.rs index 79b217a08d8..c593eeca4a2 100644 --- a/crates/web-sys/src/features/gen_XrBoundedReferenceSpace.rs +++ b/crates/web-sys/src/features/gen_XrBoundedReferenceSpace.rs @@ -4,7 +4,14 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = XrReferenceSpace , extends = XrSpace , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRBoundedReferenceSpace , typescript_type = "XRBoundedReferenceSpace")] + #[wasm_bindgen( + extends = "XrReferenceSpace", + extends = "XrSpace", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRBoundedReferenceSpace", + typescript_type = "XRBoundedReferenceSpace" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrBoundedReferenceSpace` class."] #[doc = ""] @@ -16,7 +23,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrBoundedReferenceSpace; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRBoundedReferenceSpace" , js_name = boundsGeometry)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRBoundedReferenceSpace", + js_name = "boundsGeometry" + )] #[doc = "Getter for the `boundsGeometry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRBoundedReferenceSpace/boundsGeometry)"] diff --git a/crates/web-sys/src/features/gen_XrFrame.rs b/crates/web-sys/src/features/gen_XrFrame.rs index bdab432e924..de76e67d21b 100644 --- a/crates/web-sys/src/features/gen_XrFrame.rs +++ b/crates/web-sys/src/features/gen_XrFrame.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRFrame , typescript_type = "XRFrame")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRFrame", + typescript_type = "XRFrame" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrFrame` class."] #[doc = ""] @@ -17,7 +21,7 @@ extern "C" { pub type XrFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] - # [wasm_bindgen (structural , method , getter , js_class = "XRFrame" , js_name = session)] + #[wasm_bindgen(structural, method, getter, js_class = "XRFrame", js_name = "session")] #[doc = "Getter for the `session` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/session)"] @@ -28,7 +32,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(this: &XrFrame) -> XrSession; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRFrame" , js_name = predictedDisplayTime)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRFrame", + js_name = "predictedDisplayTime" + )] #[doc = "Getter for the `predictedDisplayTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/predictedDisplayTime)"] @@ -40,7 +50,7 @@ extern "C" { pub fn predicted_display_time(this: &XrFrame) -> f64; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrPose", feature = "XrSpace",))] - # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getPose)] + #[wasm_bindgen(method, structural, js_class = "XRFrame", js_name = "getPose")] #[doc = "The `getPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getPose)"] @@ -52,7 +62,7 @@ extern "C" { pub fn get_pose(this: &XrFrame, space: &XrSpace, base_space: &XrSpace) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrReferenceSpace", feature = "XrViewerPose",))] - # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getViewerPose)] + #[wasm_bindgen(method, structural, js_class = "XRFrame", js_name = "getViewerPose")] #[doc = "The `getViewerPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getViewerPose)"] diff --git a/crates/web-sys/src/features/gen_XrInputSource.rs b/crates/web-sys/src/features/gen_XrInputSource.rs index 739ea37a492..d642d2d2299 100644 --- a/crates/web-sys/src/features/gen_XrInputSource.rs +++ b/crates/web-sys/src/features/gen_XrInputSource.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSource , typescript_type = "XRInputSource")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRInputSource", + typescript_type = "XRInputSource" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSource` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type XrInputSource; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrHandedness")] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = handedness)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSource", + js_name = "handedness" + )] #[doc = "Getter for the `handedness` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/handedness)"] @@ -29,7 +39,13 @@ extern "C" { pub fn handedness(this: &XrInputSource) -> XrHandedness; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrTargetRayMode")] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = targetRayMode)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSource", + js_name = "targetRayMode" + )] #[doc = "Getter for the `targetRayMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRayMode)"] @@ -41,7 +57,13 @@ extern "C" { pub fn target_ray_mode(this: &XrInputSource) -> XrTargetRayMode; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSpace")] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = targetRaySpace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSource", + js_name = "targetRaySpace" + )] #[doc = "Getter for the `targetRaySpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRaySpace)"] @@ -53,7 +75,13 @@ extern "C" { pub fn target_ray_space(this: &XrInputSource) -> XrSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSpace")] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = gripSpace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSource", + js_name = "gripSpace" + )] #[doc = "Getter for the `gripSpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/gripSpace)"] @@ -64,7 +92,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn grip_space(this: &XrInputSource) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = profiles)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSource", + js_name = "profiles" + )] #[doc = "Getter for the `profiles` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/profiles)"] diff --git a/crates/web-sys/src/features/gen_XrInputSourceArray.rs b/crates/web-sys/src/features/gen_XrInputSourceArray.rs index 72c723b2884..b51376e5c2b 100644 --- a/crates/web-sys/src/features/gen_XrInputSourceArray.rs +++ b/crates/web-sys/src/features/gen_XrInputSourceArray.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSourceArray , typescript_type = "XRInputSourceArray")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRInputSourceArray", + typescript_type = "XRInputSourceArray" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourceArray` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourceArray; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourceArray" , js_name = length)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSourceArray", + js_name = "length" + )] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/length)"] diff --git a/crates/web-sys/src/features/gen_XrInputSourceEvent.rs b/crates/web-sys/src/features/gen_XrInputSourceEvent.rs index 3efc22ae46f..e5e8ab1f54d 100644 --- a/crates/web-sys/src/features/gen_XrInputSourceEvent.rs +++ b/crates/web-sys/src/features/gen_XrInputSourceEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = XRInputSourceEvent , typescript_type = "XRInputSourceEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "XRInputSourceEvent", + typescript_type = "XRInputSourceEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourceEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type XrInputSourceEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrFrame")] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourceEvent" , js_name = frame)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSourceEvent", + js_name = "frame" + )] #[doc = "Getter for the `frame` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceEvent/frame)"] @@ -29,7 +40,13 @@ extern "C" { pub fn frame(this: &XrInputSourceEvent) -> XrFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSource")] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourceEvent" , js_name = inputSource)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSourceEvent", + js_name = "inputSource" + )] #[doc = "Getter for the `inputSource` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceEvent/inputSource)"] diff --git a/crates/web-sys/src/features/gen_XrInputSourceEventInit.rs b/crates/web-sys/src/features/gen_XrInputSourceEventInit.rs index 64f9daf9407..e215f3518c5 100644 --- a/crates/web-sys/src/features/gen_XrInputSourceEventInit.rs +++ b/crates/web-sys/src/features/gen_XrInputSourceEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSourceEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XRInputSourceEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourceEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrInputSourcesChangeEvent.rs b/crates/web-sys/src/features/gen_XrInputSourcesChangeEvent.rs index e20a89cb89b..c075ec20adf 100644 --- a/crates/web-sys/src/features/gen_XrInputSourcesChangeEvent.rs +++ b/crates/web-sys/src/features/gen_XrInputSourcesChangeEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = XRInputSourcesChangeEvent , typescript_type = "XRInputSourcesChangeEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "XRInputSourcesChangeEvent", + typescript_type = "XRInputSourcesChangeEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourcesChangeEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type XrInputSourcesChangeEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourcesChangeEvent" , js_name = session)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSourcesChangeEvent", + js_name = "session" + )] #[doc = "Getter for the `session` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/session)"] @@ -28,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(this: &XrInputSourcesChangeEvent) -> XrSession; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourcesChangeEvent" , js_name = added)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSourcesChangeEvent", + js_name = "added" + )] #[doc = "Getter for the `added` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/added)"] @@ -39,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn added(this: &XrInputSourcesChangeEvent) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourcesChangeEvent" , js_name = removed)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRInputSourcesChangeEvent", + js_name = "removed" + )] #[doc = "Getter for the `removed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/removed)"] diff --git a/crates/web-sys/src/features/gen_XrInputSourcesChangeEventInit.rs b/crates/web-sys/src/features/gen_XrInputSourcesChangeEventInit.rs index e23c3df36bb..5af4a2350dd 100644 --- a/crates/web-sys/src/features/gen_XrInputSourcesChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_XrInputSourcesChangeEventInit.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSourcesChangeEventInit)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRInputSourcesChangeEventInit" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourcesChangeEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrLayer.rs b/crates/web-sys/src/features/gen_XrLayer.rs index a68ea54d34e..ef77898f00a 100644 --- a/crates/web-sys/src/features/gen_XrLayer.rs +++ b/crates/web-sys/src/features/gen_XrLayer.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = XRLayer , typescript_type = "XRLayer")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRLayer", + typescript_type = "XRLayer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrLayer` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrPermissionDescriptor.rs b/crates/web-sys/src/features/gen_XrPermissionDescriptor.rs index ce11f7579ac..894fe94db88 100644 --- a/crates/web-sys/src/features/gen_XrPermissionDescriptor.rs +++ b/crates/web-sys/src/features/gen_XrPermissionDescriptor.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRPermissionDescriptor)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XRPermissionDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrPermissionDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrPermissionStatus.rs b/crates/web-sys/src/features/gen_XrPermissionStatus.rs index ec403387b4b..01ae130f304 100644 --- a/crates/web-sys/src/features/gen_XrPermissionStatus.rs +++ b/crates/web-sys/src/features/gen_XrPermissionStatus.rs @@ -4,7 +4,13 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = PermissionStatus , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRPermissionStatus , typescript_type = "XRPermissionStatus")] + #[wasm_bindgen( + extends = "PermissionStatus", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRPermissionStatus", + typescript_type = "XRPermissionStatus" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrPermissionStatus` class."] #[doc = ""] @@ -16,7 +22,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrPermissionStatus; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRPermissionStatus" , js_name = granted)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRPermissionStatus", + js_name = "granted" + )] #[doc = "Getter for the `granted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus/granted)"] @@ -27,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn granted(this: &XrPermissionStatus) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRPermissionStatus" , js_name = granted)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRPermissionStatus", + js_name = "granted" + )] #[doc = "Setter for the `granted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus/granted)"] diff --git a/crates/web-sys/src/features/gen_XrPose.rs b/crates/web-sys/src/features/gen_XrPose.rs index bbdb63b33a4..d4c8fed6669 100644 --- a/crates/web-sys/src/features/gen_XrPose.rs +++ b/crates/web-sys/src/features/gen_XrPose.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRPose , typescript_type = "XRPose")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRPose", + typescript_type = "XRPose" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrPose` class."] #[doc = ""] @@ -17,7 +21,7 @@ extern "C" { pub type XrPose; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] - # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , js_name = transform)] + #[wasm_bindgen(structural, method, getter, js_class = "XRPose", js_name = "transform")] #[doc = "Getter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPose/transform)"] @@ -29,7 +33,13 @@ extern "C" { pub fn transform(this: &XrPose) -> XrRigidTransform; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , js_name = linearVelocity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRPose", + js_name = "linearVelocity" + )] #[doc = "Getter for the `linearVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPose/linearVelocity)"] @@ -41,7 +51,13 @@ extern "C" { pub fn linear_velocity(this: &XrPose) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , js_name = angularVelocity)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRPose", + js_name = "angularVelocity" + )] #[doc = "Getter for the `angularVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPose/angularVelocity)"] @@ -52,7 +68,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn angular_velocity(this: &XrPose) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , js_name = emulatedPosition)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRPose", + js_name = "emulatedPosition" + )] #[doc = "Getter for the `emulatedPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPose/emulatedPosition)"] diff --git a/crates/web-sys/src/features/gen_XrReferenceSpace.rs b/crates/web-sys/src/features/gen_XrReferenceSpace.rs index 3ca6d5a125f..4aed278da04 100644 --- a/crates/web-sys/src/features/gen_XrReferenceSpace.rs +++ b/crates/web-sys/src/features/gen_XrReferenceSpace.rs @@ -4,7 +4,13 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = XrSpace , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRReferenceSpace , typescript_type = "XRReferenceSpace")] + #[wasm_bindgen( + extends = "XrSpace", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRReferenceSpace", + typescript_type = "XRReferenceSpace" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrReferenceSpace` class."] #[doc = ""] @@ -16,7 +22,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrReferenceSpace; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRReferenceSpace" , js_name = onreset)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRReferenceSpace", + js_name = "onreset" + )] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/onreset)"] @@ -27,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onreset(this: &XrReferenceSpace) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRReferenceSpace" , js_name = onreset)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRReferenceSpace", + js_name = "onreset" + )] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/onreset)"] @@ -39,7 +57,12 @@ extern "C" { pub fn set_onreset(this: &XrReferenceSpace, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] - # [wasm_bindgen (method , structural , js_class = "XRReferenceSpace" , js_name = getOffsetReferenceSpace)] + #[wasm_bindgen( + method, + structural, + js_class = "XRReferenceSpace", + js_name = "getOffsetReferenceSpace" + )] #[doc = "The `getOffsetReferenceSpace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/getOffsetReferenceSpace)"] diff --git a/crates/web-sys/src/features/gen_XrReferenceSpaceEvent.rs b/crates/web-sys/src/features/gen_XrReferenceSpaceEvent.rs index b677127131d..2164046621d 100644 --- a/crates/web-sys/src/features/gen_XrReferenceSpaceEvent.rs +++ b/crates/web-sys/src/features/gen_XrReferenceSpaceEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = XRReferenceSpaceEvent , typescript_type = "XRReferenceSpaceEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "XRReferenceSpaceEvent", + typescript_type = "XRReferenceSpaceEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrReferenceSpaceEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type XrReferenceSpaceEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpace")] - # [wasm_bindgen (structural , method , getter , js_class = "XRReferenceSpaceEvent" , js_name = referenceSpace)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRReferenceSpaceEvent", + js_name = "referenceSpace" + )] #[doc = "Getter for the `referenceSpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent/referenceSpace)"] @@ -29,7 +40,13 @@ extern "C" { pub fn reference_space(this: &XrReferenceSpaceEvent) -> XrReferenceSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] - # [wasm_bindgen (structural , method , getter , js_class = "XRReferenceSpaceEvent" , js_name = transform)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRReferenceSpaceEvent", + js_name = "transform" + )] #[doc = "Getter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent/transform)"] diff --git a/crates/web-sys/src/features/gen_XrReferenceSpaceEventInit.rs b/crates/web-sys/src/features/gen_XrReferenceSpaceEventInit.rs index 45b6efb64da..52697a449a7 100644 --- a/crates/web-sys/src/features/gen_XrReferenceSpaceEventInit.rs +++ b/crates/web-sys/src/features/gen_XrReferenceSpaceEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRReferenceSpaceEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XRReferenceSpaceEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrReferenceSpaceEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrRenderState.rs b/crates/web-sys/src/features/gen_XrRenderState.rs index 98781adb73b..8cb923123cd 100644 --- a/crates/web-sys/src/features/gen_XrRenderState.rs +++ b/crates/web-sys/src/features/gen_XrRenderState.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRRenderState , typescript_type = "XRRenderState")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRRenderState", + typescript_type = "XRRenderState" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrRenderState` class."] #[doc = ""] @@ -16,7 +20,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrRenderState; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , js_name = depthNear)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRenderState", + js_name = "depthNear" + )] #[doc = "Getter for the `depthNear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/depthNear)"] @@ -27,7 +37,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_near(this: &XrRenderState) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , js_name = depthFar)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRenderState", + js_name = "depthFar" + )] #[doc = "Getter for the `depthFar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/depthFar)"] @@ -38,7 +54,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_far(this: &XrRenderState) -> f64; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , js_name = inlineVerticalFieldOfView)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRenderState", + js_name = "inlineVerticalFieldOfView" + )] #[doc = "Getter for the `inlineVerticalFieldOfView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/inlineVerticalFieldOfView)"] @@ -50,7 +72,13 @@ extern "C" { pub fn inline_vertical_field_of_view(this: &XrRenderState) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrWebGlLayer")] - # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , js_name = baseLayer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRenderState", + js_name = "baseLayer" + )] #[doc = "Getter for the `baseLayer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/baseLayer)"] diff --git a/crates/web-sys/src/features/gen_XrRenderStateInit.rs b/crates/web-sys/src/features/gen_XrRenderStateInit.rs index b3d5821aa33..68fb3274efe 100644 --- a/crates/web-sys/src/features/gen_XrRenderStateInit.rs +++ b/crates/web-sys/src/features/gen_XrRenderStateInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRRenderStateInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XRRenderStateInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrRenderStateInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrRigidTransform.rs b/crates/web-sys/src/features/gen_XrRigidTransform.rs index a171e4e5118..df5050d4739 100644 --- a/crates/web-sys/src/features/gen_XrRigidTransform.rs +++ b/crates/web-sys/src/features/gen_XrRigidTransform.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRRigidTransform , typescript_type = "XRRigidTransform")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRRigidTransform", + typescript_type = "XRRigidTransform" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrRigidTransform` class."] #[doc = ""] @@ -17,7 +21,13 @@ extern "C" { pub type XrRigidTransform; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = position)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRigidTransform", + js_name = "position" + )] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/position)"] @@ -29,7 +39,13 @@ extern "C" { pub fn position(this: &XrRigidTransform) -> DomPointReadOnly; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] - # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = orientation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRigidTransform", + js_name = "orientation" + )] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/orientation)"] @@ -40,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn orientation(this: &XrRigidTransform) -> DomPointReadOnly; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = matrix)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRigidTransform", + js_name = "matrix" + )] #[doc = "Getter for the `matrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/matrix)"] @@ -51,7 +73,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn matrix(this: &XrRigidTransform) -> Vec; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = inverse)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRRigidTransform", + js_name = "inverse" + )] #[doc = "Getter for the `inverse` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/inverse)"] diff --git a/crates/web-sys/src/features/gen_XrSession.rs b/crates/web-sys/src/features/gen_XrSession.rs index 48e4bc34c1d..6facf5556d3 100644 --- a/crates/web-sys/src/features/gen_XrSession.rs +++ b/crates/web-sys/src/features/gen_XrSession.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = XRSession , typescript_type = "XRSession")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRSession", + typescript_type = "XRSession" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSession` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type XrSession; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrVisibilityState")] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = visibilityState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "visibilityState" + )] #[doc = "Getter for the `visibilityState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/visibilityState)"] @@ -28,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn visibility_state(this: &XrSession) -> XrVisibilityState; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = frameRate)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "frameRate" + )] #[doc = "Getter for the `frameRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/frameRate)"] @@ -39,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn frame_rate(this: &XrSession) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = supportedFrameRates)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "supportedFrameRates" + )] #[doc = "Getter for the `supportedFrameRates` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/supportedFrameRates)"] @@ -51,7 +74,13 @@ extern "C" { pub fn supported_frame_rates(this: &XrSession) -> Option>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRenderState")] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = renderState)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "renderState" + )] #[doc = "Getter for the `renderState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/renderState)"] @@ -63,7 +92,13 @@ extern "C" { pub fn render_state(this: &XrSession) -> XrRenderState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSourceArray")] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = inputSources)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "inputSources" + )] #[doc = "Getter for the `inputSources` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputSources)"] @@ -74,7 +109,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn input_sources(this: &XrSession) -> XrInputSourceArray; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onend)] + #[wasm_bindgen(structural, method, getter, js_class = "XRSession", js_name = "onend")] #[doc = "Getter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onend)"] @@ -85,7 +120,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onend(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onend)] + #[wasm_bindgen(structural, method, setter, js_class = "XRSession", js_name = "onend")] #[doc = "Setter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onend)"] @@ -96,7 +131,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onend(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = oninputsourceschange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "oninputsourceschange" + )] #[doc = "Getter for the `oninputsourceschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/oninputsourceschange)"] @@ -107,7 +148,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oninputsourceschange(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = oninputsourceschange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "oninputsourceschange" + )] #[doc = "Setter for the `oninputsourceschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/oninputsourceschange)"] @@ -118,7 +165,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oninputsourceschange(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onselect" + )] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselect)"] @@ -129,7 +182,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onselect(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onselect)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onselect" + )] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselect)"] @@ -140,7 +199,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onselect(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onselectstart" + )] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectstart)"] @@ -151,7 +216,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onselectstart(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onselectstart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onselectstart" + )] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectstart)"] @@ -162,7 +233,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onselectstart(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onselectend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onselectend" + )] #[doc = "Getter for the `onselectend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectend)"] @@ -173,7 +250,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onselectend(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onselectend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onselectend" + )] #[doc = "Setter for the `onselectend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectend)"] @@ -184,7 +267,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onselectend(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueeze)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onsqueeze" + )] #[doc = "Getter for the `onsqueeze` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueeze)"] @@ -195,7 +284,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onsqueeze(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueeze)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onsqueeze" + )] #[doc = "Setter for the `onsqueeze` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueeze)"] @@ -206,7 +301,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onsqueeze(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueezestart)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onsqueezestart" + )] #[doc = "Getter for the `onsqueezestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezestart)"] @@ -217,7 +318,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onsqueezestart(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueezestart)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onsqueezestart" + )] #[doc = "Setter for the `onsqueezestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezestart)"] @@ -228,7 +335,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onsqueezestart(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueezeend)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onsqueezeend" + )] #[doc = "Getter for the `onsqueezeend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezeend)"] @@ -239,7 +352,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onsqueezeend(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueezeend)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onsqueezeend" + )] #[doc = "Setter for the `onsqueezeend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezeend)"] @@ -250,7 +369,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onsqueezeend(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onvisibilitychange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onvisibilitychange" + )] #[doc = "Getter for the `onvisibilitychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onvisibilitychange)"] @@ -261,7 +386,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onvisibilitychange(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onvisibilitychange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onvisibilitychange" + )] #[doc = "Setter for the `onvisibilitychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onvisibilitychange)"] @@ -272,7 +403,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onvisibilitychange(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onframeratechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSession", + js_name = "onframeratechange" + )] #[doc = "Getter for the `onframeratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onframeratechange)"] @@ -283,7 +420,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onframeratechange(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onframeratechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSession", + js_name = "onframeratechange" + )] #[doc = "Setter for the `onframeratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onframeratechange)"] @@ -294,7 +437,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onframeratechange(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = cancelAnimationFrame)] + #[wasm_bindgen( + method, + structural, + js_class = "XRSession", + js_name = "cancelAnimationFrame" + )] #[doc = "The `cancelAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/cancelAnimationFrame)"] @@ -305,7 +453,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel_animation_frame(this: &XrSession, handle: u32); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = end)] + #[wasm_bindgen(method, structural, js_class = "XRSession", js_name = "end")] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/end)"] @@ -316,7 +464,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end(this: &XrSession) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = requestAnimationFrame)] + #[wasm_bindgen( + method, + structural, + js_class = "XRSession", + js_name = "requestAnimationFrame" + )] #[doc = "The `requestAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestAnimationFrame)"] @@ -328,7 +481,12 @@ extern "C" { pub fn request_animation_frame(this: &XrSession, callback: &::js_sys::Function) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpaceType")] - # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = requestReferenceSpace)] + #[wasm_bindgen( + method, + structural, + js_class = "XRSession", + js_name = "requestReferenceSpace" + )] #[doc = "The `requestReferenceSpace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestReferenceSpace)"] @@ -342,7 +500,12 @@ extern "C" { type_: XrReferenceSpaceType, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateRenderState)] + #[wasm_bindgen( + method, + structural, + js_class = "XRSession", + js_name = "updateRenderState" + )] #[doc = "The `updateRenderState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState)"] @@ -354,7 +517,12 @@ extern "C" { pub fn update_render_state(this: &XrSession); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRenderStateInit")] - # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateRenderState)] + #[wasm_bindgen( + method, + structural, + js_class = "XRSession", + js_name = "updateRenderState" + )] #[doc = "The `updateRenderState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState)"] @@ -365,7 +533,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn update_render_state_with_state(this: &XrSession, state: &XrRenderStateInit); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateTargetFrameRate)] + #[wasm_bindgen( + method, + structural, + js_class = "XRSession", + js_name = "updateTargetFrameRate" + )] #[doc = "The `updateTargetFrameRate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateTargetFrameRate)"] diff --git a/crates/web-sys/src/features/gen_XrSessionEvent.rs b/crates/web-sys/src/features/gen_XrSessionEvent.rs index 748df3513eb..45ab84bdc02 100644 --- a/crates/web-sys/src/features/gen_XrSessionEvent.rs +++ b/crates/web-sys/src/features/gen_XrSessionEvent.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = XRSessionEvent , typescript_type = "XRSessionEvent")] + #[wasm_bindgen( + extends = "Event", + extends = "::js_sys::Object", + js_name = "XRSessionEvent", + typescript_type = "XRSessionEvent" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionEvent` class."] #[doc = ""] @@ -17,7 +22,13 @@ extern "C" { pub type XrSessionEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] - # [wasm_bindgen (structural , method , getter , js_class = "XRSessionEvent" , js_name = session)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSessionEvent", + js_name = "session" + )] #[doc = "Getter for the `session` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSessionEvent/session)"] diff --git a/crates/web-sys/src/features/gen_XrSessionEventInit.rs b/crates/web-sys/src/features/gen_XrSessionEventInit.rs index fbe6cf2831c..85e6581f59d 100644 --- a/crates/web-sys/src/features/gen_XrSessionEventInit.rs +++ b/crates/web-sys/src/features/gen_XrSessionEventInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRSessionEventInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XRSessionEventInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionEventInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrSessionInit.rs b/crates/web-sys/src/features/gen_XrSessionInit.rs index 999791d1fa7..b3783c0a51f 100644 --- a/crates/web-sys/src/features/gen_XrSessionInit.rs +++ b/crates/web-sys/src/features/gen_XrSessionInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRSessionInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XRSessionInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrSessionSupportedPermissionDescriptor.rs b/crates/web-sys/src/features/gen_XrSessionSupportedPermissionDescriptor.rs index 26a771f63d9..a4080a5ab09 100644 --- a/crates/web-sys/src/features/gen_XrSessionSupportedPermissionDescriptor.rs +++ b/crates/web-sys/src/features/gen_XrSessionSupportedPermissionDescriptor.rs @@ -4,7 +4,10 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRSessionSupportedPermissionDescriptor)] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRSessionSupportedPermissionDescriptor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionSupportedPermissionDescriptor` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrSpace.rs b/crates/web-sys/src/features/gen_XrSpace.rs index e04941c050d..91cd98b6c7d 100644 --- a/crates/web-sys/src/features/gen_XrSpace.rs +++ b/crates/web-sys/src/features/gen_XrSpace.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = XRSpace , typescript_type = "XRSpace")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRSpace", + typescript_type = "XRSpace" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSpace` class."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XrSystem.rs b/crates/web-sys/src/features/gen_XrSystem.rs index a035b3ef625..e304f9fc63a 100644 --- a/crates/web-sys/src/features/gen_XrSystem.rs +++ b/crates/web-sys/src/features/gen_XrSystem.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = XRSystem , typescript_type = "XRSystem")] + #[wasm_bindgen( + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRSystem", + typescript_type = "XRSystem" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSystem` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSystem; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRSystem" , js_name = ondevicechange)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRSystem", + js_name = "ondevicechange" + )] #[doc = "Getter for the `ondevicechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/ondevicechange)"] @@ -27,7 +38,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondevicechange(this: &XrSystem) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRSystem" , js_name = ondevicechange)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRSystem", + js_name = "ondevicechange" + )] #[doc = "Setter for the `ondevicechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/ondevicechange)"] @@ -39,7 +56,12 @@ extern "C" { pub fn set_ondevicechange(this: &XrSystem, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] - # [wasm_bindgen (method , structural , js_class = "XRSystem" , js_name = isSessionSupported)] + #[wasm_bindgen( + method, + structural, + js_class = "XRSystem", + js_name = "isSessionSupported" + )] #[doc = "The `isSessionSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/isSessionSupported)"] @@ -51,7 +73,7 @@ extern "C" { pub fn is_session_supported(this: &XrSystem, mode: XrSessionMode) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] - # [wasm_bindgen (method , structural , js_class = "XRSystem" , js_name = requestSession)] + #[wasm_bindgen(method, structural, js_class = "XRSystem", js_name = "requestSession")] #[doc = "The `requestSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/requestSession)"] @@ -63,7 +85,7 @@ extern "C" { pub fn request_session(this: &XrSystem, mode: XrSessionMode) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrSessionInit", feature = "XrSessionMode",))] - # [wasm_bindgen (method , structural , js_class = "XRSystem" , js_name = requestSession)] + #[wasm_bindgen(method, structural, js_class = "XRSystem", js_name = "requestSession")] #[doc = "The `requestSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/requestSession)"] diff --git a/crates/web-sys/src/features/gen_XrView.rs b/crates/web-sys/src/features/gen_XrView.rs index 9f5781265a1..15661dfbd93 100644 --- a/crates/web-sys/src/features/gen_XrView.rs +++ b/crates/web-sys/src/features/gen_XrView.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRView , typescript_type = "XRView")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRView", + typescript_type = "XRView" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrView` class."] #[doc = ""] @@ -17,7 +21,7 @@ extern "C" { pub type XrView; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrEye")] - # [wasm_bindgen (structural , method , getter , js_class = "XRView" , js_name = eye)] + #[wasm_bindgen(structural, method, getter, js_class = "XRView", js_name = "eye")] #[doc = "Getter for the `eye` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/eye)"] @@ -28,7 +32,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn eye(this: &XrView) -> XrEye; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRView" , js_name = projectionMatrix)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRView", + js_name = "projectionMatrix" + )] #[doc = "Getter for the `projectionMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/projectionMatrix)"] @@ -40,7 +50,7 @@ extern "C" { pub fn projection_matrix(this: &XrView) -> Vec; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] - # [wasm_bindgen (structural , method , getter , js_class = "XRView" , js_name = transform)] + #[wasm_bindgen(structural, method, getter, js_class = "XRView", js_name = "transform")] #[doc = "Getter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/transform)"] @@ -51,7 +61,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &XrView) -> XrRigidTransform; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRView" , js_name = recommendedViewportScale)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRView", + js_name = "recommendedViewportScale" + )] #[doc = "Getter for the `recommendedViewportScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/recommendedViewportScale)"] @@ -62,7 +78,12 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn recommended_viewport_scale(this: &XrView) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "XRView" , js_name = requestViewportScale)] + #[wasm_bindgen( + method, + structural, + js_class = "XRView", + js_name = "requestViewportScale" + )] #[doc = "The `requestViewportScale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/requestViewportScale)"] diff --git a/crates/web-sys/src/features/gen_XrViewerPose.rs b/crates/web-sys/src/features/gen_XrViewerPose.rs index 2e53ea6a40d..6912e2cc8c9 100644 --- a/crates/web-sys/src/features/gen_XrViewerPose.rs +++ b/crates/web-sys/src/features/gen_XrViewerPose.rs @@ -4,7 +4,12 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = XrPose , extends = :: js_sys :: Object , js_name = XRViewerPose , typescript_type = "XRViewerPose")] + #[wasm_bindgen( + extends = "XrPose", + extends = "::js_sys::Object", + js_name = "XRViewerPose", + typescript_type = "XRViewerPose" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrViewerPose` class."] #[doc = ""] @@ -16,7 +21,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrViewerPose; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRViewerPose" , js_name = views)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRViewerPose", + js_name = "views" + )] #[doc = "Getter for the `views` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewerPose/views)"] diff --git a/crates/web-sys/src/features/gen_XrViewport.rs b/crates/web-sys/src/features/gen_XrViewport.rs index 7ffdabd83d0..41b7f297a84 100644 --- a/crates/web-sys/src/features/gen_XrViewport.rs +++ b/crates/web-sys/src/features/gen_XrViewport.rs @@ -4,7 +4,11 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRViewport , typescript_type = "XRViewport")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XRViewport", + typescript_type = "XRViewport" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrViewport` class."] #[doc = ""] @@ -16,7 +20,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrViewport; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , js_name = x)] + #[wasm_bindgen(structural, method, getter, js_class = "XRViewport", js_name = "x")] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewport/x)"] @@ -27,7 +31,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn x(this: &XrViewport) -> i32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , js_name = y)] + #[wasm_bindgen(structural, method, getter, js_class = "XRViewport", js_name = "y")] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewport/y)"] @@ -38,7 +42,7 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn y(this: &XrViewport) -> i32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , js_name = width)] + #[wasm_bindgen(structural, method, getter, js_class = "XRViewport", js_name = "width")] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewport/width)"] @@ -49,7 +53,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn width(this: &XrViewport) -> i32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , js_name = height)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRViewport", + js_name = "height" + )] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewport/height)"] diff --git a/crates/web-sys/src/features/gen_XrWebGlLayer.rs b/crates/web-sys/src/features/gen_XrWebGlLayer.rs index 96ef16db760..83b039d5b70 100644 --- a/crates/web-sys/src/features/gen_XrWebGlLayer.rs +++ b/crates/web-sys/src/features/gen_XrWebGlLayer.rs @@ -4,7 +4,13 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = XrLayer , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRWebGLLayer , typescript_type = "XRWebGLLayer")] + #[wasm_bindgen( + extends = "XrLayer", + extends = "EventTarget", + extends = "::js_sys::Object", + js_name = "XRWebGLLayer", + typescript_type = "XRWebGLLayer" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrWebGlLayer` class."] #[doc = ""] @@ -16,7 +22,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrWebGlLayer; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = antialias)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRWebGLLayer", + js_name = "antialias" + )] #[doc = "Getter for the `antialias` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/antialias)"] @@ -27,7 +39,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn antialias(this: &XrWebGlLayer) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = ignoreDepthValues)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRWebGLLayer", + js_name = "ignoreDepthValues" + )] #[doc = "Getter for the `ignoreDepthValues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/ignoreDepthValues)"] @@ -38,7 +56,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ignore_depth_values(this: &XrWebGlLayer) -> bool; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = fixedFoveation)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRWebGLLayer", + js_name = "fixedFoveation" + )] #[doc = "Getter for the `fixedFoveation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/fixedFoveation)"] @@ -49,7 +73,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fixed_foveation(this: &XrWebGlLayer) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "XRWebGLLayer" , js_name = fixedFoveation)] + #[wasm_bindgen( + structural, + method, + setter, + js_class = "XRWebGLLayer", + js_name = "fixedFoveation" + )] #[doc = "Setter for the `fixedFoveation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/fixedFoveation)"] @@ -61,7 +91,13 @@ extern "C" { pub fn set_fixed_foveation(this: &XrWebGlLayer, value: Option); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebGlFramebuffer")] - # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebuffer)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRWebGLLayer", + js_name = "framebuffer" + )] #[doc = "Getter for the `framebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebuffer)"] @@ -72,7 +108,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn framebuffer(this: &XrWebGlLayer) -> Option; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferWidth)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRWebGLLayer", + js_name = "framebufferWidth" + )] #[doc = "Getter for the `framebufferWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferWidth)"] @@ -83,7 +125,13 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn framebuffer_width(this: &XrWebGlLayer) -> u32; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferHeight)] + #[wasm_bindgen( + structural, + method, + getter, + js_class = "XRWebGLLayer", + js_name = "framebufferHeight" + )] #[doc = "Getter for the `framebufferHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferHeight)"] @@ -165,7 +213,11 @@ extern "C" { ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] - # [wasm_bindgen (static_method_of = XrWebGlLayer , js_class = "XRWebGLLayer" , js_name = getNativeFramebufferScaleFactor)] + #[wasm_bindgen( + static_method_of = "XrWebGlLayer", + js_class = "XRWebGLLayer", + js_name = "getNativeFramebufferScaleFactor" + )] #[doc = "The `getNativeFramebufferScaleFactor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getNativeFramebufferScaleFactor)"] @@ -177,7 +229,7 @@ extern "C" { pub fn get_native_framebuffer_scale_factor(session: &XrSession) -> f64; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrView", feature = "XrViewport",))] - # [wasm_bindgen (method , structural , js_class = "XRWebGLLayer" , js_name = getViewport)] + #[wasm_bindgen(method, structural, js_class = "XRWebGLLayer", js_name = "getViewport")] #[doc = "The `getViewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getViewport)"] diff --git a/crates/web-sys/src/features/gen_XrWebGlLayerInit.rs b/crates/web-sys/src/features/gen_XrWebGlLayerInit.rs index f5233d6b1a1..81b31910ce2 100644 --- a/crates/web-sys/src/features/gen_XrWebGlLayerInit.rs +++ b/crates/web-sys/src/features/gen_XrWebGlLayerInit.rs @@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRWebGLLayerInit)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = "XRWebGLLayerInit")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrWebGlLayerInit` dictionary."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XsltProcessor.rs b/crates/web-sys/src/features/gen_XsltProcessor.rs index c730032d445..f974813f937 100644 --- a/crates/web-sys/src/features/gen_XsltProcessor.rs +++ b/crates/web-sys/src/features/gen_XsltProcessor.rs @@ -3,7 +3,11 @@ use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XSLTProcessor , typescript_type = "XSLTProcessor")] + #[wasm_bindgen( + extends = "::js_sys::Object", + js_name = "XSLTProcessor", + typescript_type = "XSLTProcessor" + )] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XsltProcessor` class."] #[doc = ""] @@ -18,7 +22,12 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn new() -> Result; - # [wasm_bindgen (method , structural , js_class = "XSLTProcessor" , js_name = clearParameters)] + #[wasm_bindgen( + method, + structural, + js_class = "XSLTProcessor", + js_name = "clearParameters" + )] #[doc = "The `clearParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/clearParameters)"] @@ -26,14 +35,26 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn clear_parameters(this: &XsltProcessor); #[cfg(feature = "Node")] - # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = importStylesheet)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XSLTProcessor", + js_name = "importStylesheet" + )] #[doc = "The `importStylesheet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/importStylesheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XsltProcessor`*"] pub fn import_stylesheet(this: &XsltProcessor, style: &Node) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = removeParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XSLTProcessor", + js_name = "removeParameter" + )] #[doc = "The `removeParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/removeParameter)"] @@ -44,14 +65,20 @@ extern "C" { namespace_uri: &str, local_name: &str, ) -> Result<(), JsValue>; - # [wasm_bindgen (method , structural , js_class = "XSLTProcessor" , js_name = reset)] + #[wasm_bindgen(method, structural, js_class = "XSLTProcessor", js_name = "reset")] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn reset(this: &XsltProcessor); - # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = setParameter)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XSLTProcessor", + js_name = "setParameter" + )] #[doc = "The `setParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/setParameter)"] @@ -64,7 +91,13 @@ extern "C" { value: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(all(feature = "Document", feature = "Node",))] - # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToDocument)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XSLTProcessor", + js_name = "transformToDocument" + )] #[doc = "The `transformToDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToDocument)"] @@ -72,7 +105,13 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `Document`, `Node`, `XsltProcessor`*"] pub fn transform_to_document(this: &XsltProcessor, source: &Node) -> Result; #[cfg(all(feature = "Document", feature = "DocumentFragment", feature = "Node",))] - # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToFragment)] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "XSLTProcessor", + js_name = "transformToFragment" + )] #[doc = "The `transformToFragment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToFragment)"] diff --git a/crates/web-sys/src/features/gen_console.rs b/crates/web-sys/src/features/gen_console.rs index a84ed2b4a5a..6c61c8617b4 100644 --- a/crates/web-sys/src/features/gen_console.rs +++ b/crates/web-sys/src/features/gen_console.rs @@ -4,35 +4,35 @@ pub mod console { use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert(); - # [wasm_bindgen (variadic , js_namespace = console , js_name = assert)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data(condition: bool, data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_0(condition: bool); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_1(condition: bool, data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] @@ -43,7 +43,7 @@ pub mod console { data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] @@ -55,7 +55,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] @@ -68,7 +68,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] @@ -82,7 +82,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] @@ -97,7 +97,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = assert)] + #[wasm_bindgen(js_namespace = "console", js_name = "assert")] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] @@ -113,70 +113,70 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = clear)] + #[wasm_bindgen(js_namespace = "console", js_name = "clear")] #[doc = "The `console.clear()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn clear(); - # [wasm_bindgen (js_namespace = console , js_name = count)] + #[wasm_bindgen(js_namespace = "console", js_name = "count")] #[doc = "The `console.count()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count(); - # [wasm_bindgen (js_namespace = console , js_name = count)] + #[wasm_bindgen(js_namespace = "console", js_name = "count")] #[doc = "The `console.count()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count_with_label(label: &str); - # [wasm_bindgen (js_namespace = console , js_name = countReset)] + #[wasm_bindgen(js_namespace = "console", js_name = "countReset")] #[doc = "The `console.countReset()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/countReset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count_reset(); - # [wasm_bindgen (js_namespace = console , js_name = countReset)] + #[wasm_bindgen(js_namespace = "console", js_name = "countReset")] #[doc = "The `console.countReset()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/countReset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count_reset_with_label(label: &str); - # [wasm_bindgen (variadic , js_namespace = console , js_name = debug)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_0(); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] @@ -187,7 +187,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] @@ -199,7 +199,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] @@ -212,7 +212,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] @@ -226,7 +226,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = debug)] + #[wasm_bindgen(js_namespace = "console", js_name = "debug")] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] @@ -241,35 +241,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = dir)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_0(); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] @@ -280,7 +280,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] @@ -292,7 +292,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] @@ -305,7 +305,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] @@ -319,7 +319,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dir)] + #[wasm_bindgen(js_namespace = "console", js_name = "dir")] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] @@ -334,35 +334,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_0(); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] @@ -373,7 +373,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] @@ -385,7 +385,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] @@ -398,7 +398,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] @@ -412,7 +412,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = dirxml)] + #[wasm_bindgen(js_namespace = "console", js_name = "dirxml")] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] @@ -427,35 +427,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = error)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_0(); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] @@ -466,7 +466,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] @@ -478,7 +478,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] @@ -491,7 +491,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] @@ -505,7 +505,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = error)] + #[wasm_bindgen(js_namespace = "console", js_name = "error")] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] @@ -520,35 +520,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = exception)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_0(); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] @@ -559,7 +559,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] @@ -571,7 +571,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] @@ -584,7 +584,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] @@ -598,7 +598,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = exception)] + #[wasm_bindgen(js_namespace = "console", js_name = "exception")] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] @@ -613,35 +613,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = group)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_0(); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] @@ -652,7 +652,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] @@ -664,7 +664,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] @@ -677,7 +677,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] @@ -691,7 +691,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = group)] + #[wasm_bindgen(js_namespace = "console", js_name = "group")] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] @@ -706,28 +706,28 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_0(); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] @@ -737,7 +737,7 @@ pub mod console { data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] @@ -748,7 +748,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] @@ -760,7 +760,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] @@ -773,7 +773,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] @@ -787,7 +787,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupCollapsed")] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] @@ -802,42 +802,42 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = groupEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "groupEnd")] #[doc = "The `console.groupEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_end(); - # [wasm_bindgen (variadic , js_namespace = console , js_name = info)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_0(); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] @@ -848,7 +848,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] @@ -860,7 +860,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] @@ -873,7 +873,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] @@ -887,7 +887,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = info)] + #[wasm_bindgen(js_namespace = "console", js_name = "info")] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] @@ -902,35 +902,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = log)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_0(); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] @@ -941,7 +941,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] @@ -953,7 +953,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] @@ -966,7 +966,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] @@ -980,7 +980,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] @@ -995,35 +995,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = profile)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_0(); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] @@ -1034,7 +1034,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] @@ -1046,7 +1046,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] @@ -1059,7 +1059,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] @@ -1073,7 +1073,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profile)] + #[wasm_bindgen(js_namespace = "console", js_name = "profile")] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] @@ -1088,35 +1088,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_0(); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] @@ -1127,7 +1127,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] @@ -1139,7 +1139,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] @@ -1152,7 +1152,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] @@ -1166,7 +1166,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "profileEnd")] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] @@ -1181,35 +1181,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = table)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_0(); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] @@ -1220,7 +1220,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] @@ -1232,7 +1232,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] @@ -1245,7 +1245,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] @@ -1259,7 +1259,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = table)] + #[wasm_bindgen(js_namespace = "console", js_name = "table")] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] @@ -1274,63 +1274,63 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = time)] + #[wasm_bindgen(js_namespace = "console", js_name = "time")] #[doc = "The `console.time()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/time)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time(); - # [wasm_bindgen (js_namespace = console , js_name = time)] + #[wasm_bindgen(js_namespace = "console", js_name = "time")] #[doc = "The `console.time()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/time)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_with_label(label: &str); - # [wasm_bindgen (js_namespace = console , js_name = timeEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeEnd")] #[doc = "The `console.timeEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_end(); - # [wasm_bindgen (js_namespace = console , js_name = timeEnd)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeEnd")] #[doc = "The `console.timeEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_end_with_label(label: &str); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log(); - # [wasm_bindgen (variadic , js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data(label: &str, data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_0(label: &str); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_1(label: &str, data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] @@ -1341,7 +1341,7 @@ pub mod console { data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] @@ -1353,7 +1353,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] @@ -1366,7 +1366,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] @@ -1380,7 +1380,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] @@ -1395,7 +1395,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = timeLog)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeLog")] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] @@ -1411,49 +1411,49 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = timeStamp)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeStamp")] #[doc = "The `console.timeStamp()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_stamp(); - # [wasm_bindgen (js_namespace = console , js_name = timeStamp)] + #[wasm_bindgen(js_namespace = "console", js_name = "timeStamp")] #[doc = "The `console.timeStamp()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_stamp_with_data(data: &::wasm_bindgen::JsValue); - # [wasm_bindgen (variadic , js_namespace = console , js_name = trace)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_0(); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] @@ -1464,7 +1464,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] @@ -1476,7 +1476,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] @@ -1489,7 +1489,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] @@ -1503,7 +1503,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = trace)] + #[wasm_bindgen(js_namespace = "console", js_name = "trace")] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] @@ -1518,35 +1518,35 @@ pub mod console { data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (variadic , js_namespace = console , js_name = warn)] + #[wasm_bindgen(variadic, js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn(data: &::js_sys::Array); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_0(); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_1(data_1: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] @@ -1557,7 +1557,7 @@ pub mod console { data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] @@ -1569,7 +1569,7 @@ pub mod console { data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] @@ -1582,7 +1582,7 @@ pub mod console { data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] @@ -1596,7 +1596,7 @@ pub mod console { data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); - # [wasm_bindgen (js_namespace = console , js_name = warn)] + #[wasm_bindgen(js_namespace = "console", js_name = "warn")] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] diff --git a/crates/web-sys/src/features/gen_css.rs b/crates/web-sys/src/features/gen_css.rs index f18a5dad20f..682971990a6 100644 --- a/crates/web-sys/src/features/gen_css.rs +++ b/crates/web-sys/src/features/gen_css.rs @@ -4,21 +4,21 @@ pub mod css { use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - # [wasm_bindgen (js_namespace = CSS , js_name = escape)] + #[wasm_bindgen(js_namespace = "CSS", js_name = "escape")] #[doc = "The `CSS.escape()` function."] #[doc = ""] #[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; - # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)] + #[wasm_bindgen(catch, js_namespace = "CSS", js_name = "supports")] #[doc = "The `CSS.supports()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `css`*"] pub fn supports_with_value(property: &str, value: &str) -> Result; - # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)] + #[wasm_bindgen(catch, js_namespace = "CSS", js_name = "supports")] #[doc = "The `CSS.supports()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"] diff --git a/crates/web-sys/tests/wasm/history.rs b/crates/web-sys/tests/wasm/history.rs index f3ecdc42eb0..8c36f73fc41 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(js_name = history, js_namespace = window)] + #[wasm_bindgen(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 84931a627cd..cc6f5a4f241 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(js_name = performance)] + #[wasm_bindgen(js_name = "performance")] static PERFORMANCE: Performance; } diff --git a/crates/webidl-tests/dictionary.rs b/crates/webidl-tests/dictionary.rs index 99e8e69d9ae..01b7a9df471 100644 --- a/crates/webidl-tests/dictionary.rs +++ b/crates/webidl-tests/dictionary.rs @@ -5,14 +5,14 @@ use wasm_bindgen_test::*; #[wasm_bindgen] extern "C" { fn assert_dict_c(c: &C); - #[wasm_bindgen(js_name = assert_dict_c)] + #[wasm_bindgen(js_name = "assert_dict_c")] fn assert_dict_c2(c: C); - #[wasm_bindgen(js_name = assert_dict_c)] + #[wasm_bindgen(js_name = "assert_dict_c")] fn assert_dict_c3(c: Option<&C>); - #[wasm_bindgen(js_name = assert_dict_c)] + #[wasm_bindgen(js_name = "assert_dict_c")] fn assert_dict_c4(c: Option); fn mk_dict_a() -> A; - #[wasm_bindgen(js_name = mk_dict_a)] + #[wasm_bindgen(js_name = "mk_dict_a")] fn mk_dict_a2() -> Option; fn assert_dict_required(r: &Required); fn assert_camel_case(dict: &PreserveNames); diff --git a/crates/webidl/src/generator.rs b/crates/webidl/src/generator.rs index c172bb5cfaf..e86a4d458e3 100644 --- a/crates/webidl/src/generator.rs +++ b/crates/webidl/src/generator.rs @@ -3,7 +3,7 @@ use proc_macro2::TokenStream; use quote::quote; use std::collections::BTreeSet; use syn::{Ident, Type}; -use wasm_bindgen_backend::util::{raw_ident, rust_ident}; +use wasm_bindgen_backend::util::rust_ident; use crate::constants::{BUILTIN_IDENTS, POLYFILL_INTERFACES}; use crate::traverse::TraverseType; @@ -199,6 +199,7 @@ impl InterfaceAttribute { }; let (method, this) = if *is_static { + let parent_name = parent_name.to_string(); (quote!( static_method_of = #parent_name, ), None) } else { (quote!(method,), Some(quote!( this: &#parent_name, ))) @@ -248,8 +249,6 @@ impl InterfaceAttribute { &doc_comment, ); - let js_name = raw_ident(js_name); - quote! { #unstable_attr #cfg_features @@ -333,7 +332,6 @@ impl InterfaceMethod { } InterfaceMethodKind::Regular => { { - let js_name = raw_ident(js_name); extra_args.push(quote!( js_name = #js_name )); } format!( @@ -396,6 +394,7 @@ impl InterfaceMethod { (quote!(constructor,), None) } else if *is_static { + let parent_name = parent_name.to_string(); (quote!( static_method_of = #parent_name, ), None) } else { let structural = if *structural { @@ -546,17 +545,18 @@ impl Interface { let is_type_of = if *has_interface { None } else { - Some(quote!(is_type_of = |_| false,)) + Some(quote!(is_type_of = "|_| false",)) }; let prefixes = if POLYFILL_INTERFACES.contains(js_name.as_str()) { - Some(quote!(vendor_prefix = webkit,)) + Some(quote!(vendor_prefix = "webkit",)) } else { None }; let extends = parents .into_iter() + .map(|x| x.to_string()) .map(|x| quote!( extends = #x, )) .collect::>(); @@ -586,7 +586,7 @@ impl Interface { .map(|x| x.generate(options, &name, js_name.to_string(), &parents)) .collect::>(); - let js_ident = raw_ident(js_name); + let js_ident = js_name; quote! { #![allow(unused_imports)] @@ -600,7 +600,7 @@ impl Interface { #is_type_of #prefixes #(#extends)* - extends = ::js_sys::Object, + extends = "::js_sys::Object", js_name = #js_ident, typescript_type = #js_name )] @@ -694,8 +694,6 @@ impl Dictionary { let unstable_attr = maybe_unstable_attr(*unstable); let unstable_docs = maybe_unstable_docs(*unstable); - let js_name = raw_ident(js_name); - let mut required_features = BTreeSet::new(); let mut required_args = vec![]; let mut required_calls = vec![]; @@ -747,7 +745,7 @@ impl Dictionary { #unstable_attr #[wasm_bindgen] extern "C" { - #[wasm_bindgen(extends = ::js_sys::Object, js_name = #js_name)] + #[wasm_bindgen(extends = "::js_sys::Object", js_name = #js_name)] #[derive(Debug, Clone, PartialEq, Eq)] #doc_comment #unstable_docs @@ -819,7 +817,7 @@ impl Function { let unstable_attr = maybe_unstable_attr(*unstable); let unstable_docs = maybe_unstable_docs(*unstable); - let js_namespace = raw_ident(&parent_js_name); + let js_namespace = &parent_js_name; let doc_comment = format!( "The `{}.{}()` function.\n\n{}", @@ -862,8 +860,6 @@ impl Function { let arguments = generate_arguments(arguments, *variadic); let variadic = generate_variadic(*variadic); - let js_name = raw_ident(js_name); - quote! { #unstable_attr #cfg_features diff --git a/examples/char/src/lib.rs b/examples/char/src/lib.rs index 41b5edc070f..52be370e121 100644 --- a/examples/char/src/lib.rs +++ b/examples/char/src/lib.rs @@ -3,7 +3,7 @@ use wasm_bindgen::prelude::*; // lifted from the `console_log` example #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); } diff --git a/examples/console_log/src/lib.rs b/examples/console_log/src/lib.rs index 49e9c1db854..cbc52b3c76e 100644 --- a/examples/console_log/src/lib.rs +++ b/examples/console_log/src/lib.rs @@ -16,17 +16,17 @@ pub fn run() { extern "C" { // Use `js_namespace` here to bind `console.log(..)` instead of just // `log(..)` - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); // The `console.log` is quite polymorphic, so we can bind it with multiple // signatures. Note that we need to use `js_name` to ensure we always call // `log` in JS. - #[wasm_bindgen(js_namespace = console, js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] fn log_u32(a: u32); // Multiple arguments too! - #[wasm_bindgen(js_namespace = console, js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] fn log_many(a: &str, b: &str); } diff --git a/examples/deno/src/lib.rs b/examples/deno/src/lib.rs index 31a035de5c3..1739aba0797 100644 --- a/examples/deno/src/lib.rs +++ b/examples/deno/src/lib.rs @@ -18,7 +18,7 @@ extern "C" { // lifted from the `console_log` example #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); } diff --git a/examples/import_js/crate/src/lib.rs b/examples/import_js/crate/src/lib.rs index e6fdad89978..2cdba917656 100644 --- a/examples/import_js/crate/src/lib.rs +++ b/examples/import_js/crate/src/lib.rs @@ -20,7 +20,7 @@ extern "C" { // lifted from the `console_log` example #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); } diff --git a/examples/performance/src/lib.rs b/examples/performance/src/lib.rs index f2b863a6883..39336293fdf 100644 --- a/examples/performance/src/lib.rs +++ b/examples/performance/src/lib.rs @@ -5,7 +5,7 @@ use wasm_bindgen::prelude::*; // lifted from the `console_log` example #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(a: &str); } diff --git a/examples/raytrace-parallel/src/lib.rs b/examples/raytrace-parallel/src/lib.rs index 696c565e5b9..d3c8ab4c0f0 100644 --- a/examples/raytrace-parallel/src/lib.rs +++ b/examples/raytrace-parallel/src/lib.rs @@ -12,9 +12,9 @@ mod pool; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); - #[wasm_bindgen(js_namespace = console, js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] fn logv(x: &JsValue); } @@ -134,7 +134,7 @@ impl RenderingScene { } /// Return a progressive rendering of the image so far - #[wasm_bindgen(js_name = imageSoFar)] + #[wasm_bindgen(js_name = "imageSoFar")] pub fn image_so_far(&self) -> ImageData { image_data(self.base, self.len, self.width, self.height) } diff --git a/examples/wasm-in-wasm-imports/src/lib.rs b/examples/wasm-in-wasm-imports/src/lib.rs index bcdc29cc871..bf5c47f3ef8 100644 --- a/examples/wasm-in-wasm-imports/src/lib.rs +++ b/examples/wasm-in-wasm-imports/src/lib.rs @@ -5,10 +5,10 @@ use wasm_bindgen_futures::{spawn_local, JsFuture}; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] pub(crate) fn log(a: &str); - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] pub(crate) fn error(a: &str); } diff --git a/examples/wasm-in-wasm/src/lib.rs b/examples/wasm-in-wasm/src/lib.rs index 51decfedf0b..8223cb8a527 100644 --- a/examples/wasm-in-wasm/src/lib.rs +++ b/examples/wasm-in-wasm/src/lib.rs @@ -6,7 +6,7 @@ use wasm_bindgen_futures::{spawn_local, JsFuture}; // lifted from the `console_log` example #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(a: &str); } diff --git a/examples/wasm2js/src/lib.rs b/examples/wasm2js/src/lib.rs index 0e156c499c5..77efa55e663 100644 --- a/examples/wasm2js/src/lib.rs +++ b/examples/wasm2js/src/lib.rs @@ -3,7 +3,7 @@ use wasm_bindgen::prelude::*; // lifted from the `console_log` example #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); } diff --git a/examples/webrtc_datachannel/src/lib.rs b/examples/webrtc_datachannel/src/lib.rs index 89f747849f5..efd740237d0 100644 --- a/examples/webrtc_datachannel/src/lib.rs +++ b/examples/webrtc_datachannel/src/lib.rs @@ -16,9 +16,9 @@ macro_rules! console_warn { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn warn(s: &str); } diff --git a/examples/websockets/src/lib.rs b/examples/websockets/src/lib.rs index 964b4d3275a..44dfe97b926 100644 --- a/examples/websockets/src/lib.rs +++ b/examples/websockets/src/lib.rs @@ -8,7 +8,7 @@ macro_rules! console_log { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); } diff --git a/guide/src/SUMMARY.md b/guide/src/SUMMARY.md index 70ee67a7fcf..61861421528 100644 --- a/guide/src/SUMMARY.md +++ b/guide/src/SUMMARY.md @@ -2,124 +2,127 @@ [Introduction](./introduction.md) --------------------------------------------------------------------------------- +--- -- [Examples](./examples/index.md) - - [Hello, World!](./examples/hello-world.md) - - [Using `console.log`](./examples/console-log.md) - - [Small wasm files](./examples/add.md) - - [Without a Bundler](./examples/without-a-bundler.md) - - [Converting WebAssembly to JS](./examples/wasm2js.md) - - [Importing functions from JS](./examples/import-js.md) - - [Working with `char`](./examples/char.md) - - [js-sys: WebAssembly in WebAssembly](./examples/wasm-in-wasm.md) - - [web-sys: DOM hello world](./examples/dom.md) - - [web-sys: Closures](./examples/closures.md) - - [web-sys: `performance.now`](./examples/performance.md) - - [web-sys: using `fetch`](./examples/fetch.md) - - [web-sys: `canvas` hello world](./examples/2d-canvas.md) - - [web-sys: `canvas` Julia set](./examples/julia.md) - - [web-sys: WebAudio](./examples/web-audio.md) - - [web-sys: WebGL](./examples/webgl.md) - - [web-sys: WebSockets](./examples/websockets.md) - - [web-sys: WebRTC DataChannel](./examples/webrtc_datachannel.md) - - [web-sys: `requestAnimationFrame`](./examples/request-animation-frame.md) - - [web-sys: A Simple Paint Program](./examples/paint.md) - - [web-sys: WASM in Web Worker](./examples/wasm-in-web-worker.md) - - [Parallel Raytracing](./examples/raytrace.md) - - [web-sys: A TODO MVC App](./examples/todomvc.md) -- [Reference](./reference/index.md) - - [Deployment](./reference/deployment.md) - - [JS snippets](./reference/js-snippets.md) - - [Passing Rust Closures to JS](./reference/passing-rust-closures-to-js.md) - - [Receiving JS Closures in Rust](./reference/receiving-js-closures-in-rust.md) - - [`Promise`s and `Future`s](./reference/js-promises-and-rust-futures.md) - - [Iterating over JS Values](./reference/iterating-over-js-values.md) - - [Arbitrary Data with Serde](./reference/arbitrary-data-with-serde.md) - - [Accessing Properties of Untyped JS Values](./reference/accessing-properties-of-untyped-js-values.md) - - [Working with Duck-Typed Interfaces](./reference/working-with-duck-typed-interfaces.md) - - [Command Line Interface](./reference/cli.md) - - [Optimizing for Size](./reference/optimize-size.md) - - [Supported Rust Targets](./reference/rust-targets.md) - - [Supported Browsers](./reference/browser-support.md) - - [Support for Weak References](./reference/weak-references.md) - - [Support for Reference Types](./reference/reference-types.md) - - [Supported Types](./reference/types.md) - - [Imported JavaScript Types](./reference/types/imported-js-types.md) - - [Exported Rust Types](./reference/types/exported-rust-types.md) - - [`JsValue`](./reference/types/jsvalue.md) - - [`Box<[JsValue]>`](./reference/types/boxed-jsvalue-slice.md) - - [`*const T` and `*mut T`](./reference/types/pointers.md) - - [Numbers](./reference/types/numbers.md) - - [`bool`](./reference/types/bool.md) - - [`char`](./reference/types/char.md) - - [`str`](./reference/types/str.md) - - [`String`](./reference/types/string.md) - - [Number Slices](./reference/types/number-slices.md) - - [Boxed Number Slices](./reference/types/boxed-number-slices.md) - - [`Result`](./reference/types/result.md) - - [`#[wasm_bindgen]` Attributes](./reference/attributes/index.md) - - [On JavaScript Imports](./reference/attributes/on-js-imports/index.md) - - [`catch`](./reference/attributes/on-js-imports/catch.md) - - [`constructor`](./reference/attributes/on-js-imports/constructor.md) - - [`extends`](./reference/attributes/on-js-imports/extends.md) - - [`getter` and `setter`](./reference/attributes/on-js-imports/getter-and-setter.md) - - [`final`](./reference/attributes/on-js-imports/final.md) - - [`indexing_getter`, `indexing_setter`, and `indexing_deleter`](./reference/attributes/on-js-imports/indexing-getter-setter-deleter.md) - - [`js_class = "Blah"`](./reference/attributes/on-js-imports/js_class.md) - - [`js_name`](./reference/attributes/on-js-imports/js_name.md) - - [`js_namespace`](./reference/attributes/on-js-imports/js_namespace.md) - - [`method`](./reference/attributes/on-js-imports/method.md) - - [`module = "blah"`](./reference/attributes/on-js-imports/module.md) - - [`raw_module = "blah"`](./reference/attributes/on-js-imports/raw_module.md) - - [`static_method_of = Blah`](./reference/attributes/on-js-imports/static_method_of.md) - - [`structural`](./reference/attributes/on-js-imports/structural.md) - - [`variadic`](./reference/attributes/on-js-imports/variadic.md) - - [`vendor_prefix`](./reference/attributes/on-js-imports/vendor_prefix.md) - - [On Rust Exports](./reference/attributes/on-rust-exports/index.md) - - [`constructor`](./reference/attributes/on-rust-exports/constructor.md) - - [`js_name = Blah`](./reference/attributes/on-rust-exports/js_name.md) - - [`readonly`](./reference/attributes/on-rust-exports/readonly.md) - - [`skip`](./reference/attributes/on-rust-exports/skip.md) - - [`start`](./reference/attributes/on-rust-exports/start.md) - - [`typescript_custom_section`](./reference/attributes/on-rust-exports/typescript_custom_section.md) - - [`getter` and `setter`](./reference/attributes/on-rust-exports/getter-and-setter.md) - - [`inspectable`](./reference/attributes/on-rust-exports/inspectable.md) - - [`skip_typescript`](./reference/attributes/on-rust-exports/skip_typescript.md) - - [`typescript_type`](./reference/attributes/on-rust-exports/typescript_type.md) - - [`getter_with_clone`](./reference/attributes/on-rust-exports/getter_with_clone.md) +- [Examples](./examples/index.md) + - [Hello, World!](./examples/hello-world.md) + - [Using `console.log`](./examples/console-log.md) + - [Small wasm files](./examples/add.md) + - [Without a Bundler](./examples/without-a-bundler.md) + - [Converting WebAssembly to JS](./examples/wasm2js.md) + - [Importing functions from JS](./examples/import-js.md) + - [Working with `char`](./examples/char.md) + - [js-sys: WebAssembly in WebAssembly](./examples/wasm-in-wasm.md) + - [web-sys: DOM hello world](./examples/dom.md) + - [web-sys: Closures](./examples/closures.md) + - [web-sys: `performance.now`](./examples/performance.md) + - [web-sys: using `fetch`](./examples/fetch.md) + - [web-sys: `canvas` hello world](./examples/2d-canvas.md) + - [web-sys: `canvas` Julia set](./examples/julia.md) + - [web-sys: WebAudio](./examples/web-audio.md) + - [web-sys: WebGL](./examples/webgl.md) + - [web-sys: WebSockets](./examples/websockets.md) + - [web-sys: WebRTC DataChannel](./examples/webrtc_datachannel.md) + - [web-sys: `requestAnimationFrame`](./examples/request-animation-frame.md) + - [web-sys: A Simple Paint Program](./examples/paint.md) + - [web-sys: WASM in Web Worker](./examples/wasm-in-web-worker.md) + - [Parallel Raytracing](./examples/raytrace.md) + - [web-sys: A TODO MVC App](./examples/todomvc.md) +- [Reference](./reference/index.md) -- [`web-sys`](./web-sys/index.md) - - [Using `web-sys`](./web-sys/using-web-sys.md) - - [Cargo Features](./web-sys/cargo-features.md) - - [Function Overloads](./web-sys/function-overloads.md) - - [Type Translations](./web-sys/type-translations.md) - - [Inheritance](./web-sys/inheritance.md) - - [Unstable APIs](./web-sys/unstable-apis.md) + - [Deployment](./reference/deployment.md) + - [JS snippets](./reference/js-snippets.md) + - [Passing Rust Closures to JS](./reference/passing-rust-closures-to-js.md) + - [Receiving JS Closures in Rust](./reference/receiving-js-closures-in-rust.md) + - [`Promise`s and `Future`s](./reference/js-promises-and-rust-futures.md) + - [Iterating over JS Values](./reference/iterating-over-js-values.md) + - [Arbitrary Data with Serde](./reference/arbitrary-data-with-serde.md) + - [Accessing Properties of Untyped JS Values](./reference/accessing-properties-of-untyped-js-values.md) + - [Working with Duck-Typed Interfaces](./reference/working-with-duck-typed-interfaces.md) + - [Command Line Interface](./reference/cli.md) + - [Optimizing for Size](./reference/optimize-size.md) + - [Supported Rust Targets](./reference/rust-targets.md) + - [Supported Browsers](./reference/browser-support.md) + - [Support for Weak References](./reference/weak-references.md) + - [Support for Reference Types](./reference/reference-types.md) + - [Supported Types](./reference/types.md) + - [Imported JavaScript Types](./reference/types/imported-js-types.md) + - [Exported Rust Types](./reference/types/exported-rust-types.md) + - [`JsValue`](./reference/types/jsvalue.md) + - [`Box<[JsValue]>`](./reference/types/boxed-jsvalue-slice.md) + - [`*const T` and `*mut T`](./reference/types/pointers.md) + - [Numbers](./reference/types/numbers.md) + - [`bool`](./reference/types/bool.md) + - [`char`](./reference/types/char.md) + - [`str`](./reference/types/str.md) + - [`String`](./reference/types/string.md) + - [Number Slices](./reference/types/number-slices.md) + - [Boxed Number Slices](./reference/types/boxed-number-slices.md) + - [`Result`](./reference/types/result.md) + - [`#[wasm_bindgen]` Attributes](./reference/attributes/index.md) + - [On JavaScript Imports](./reference/attributes/on-js-imports/index.md) + - [`catch`](./reference/attributes/on-js-imports/catch.md) + - [`constructor`](./reference/attributes/on-js-imports/constructor.md) + - [`extends`](./reference/attributes/on-js-imports/extends.md) + - [`getter` and `setter`](./reference/attributes/on-js-imports/getter-and-setter.md) + - [`final`](./reference/attributes/on-js-imports/final.md) + - [`indexing_getter`, `indexing_setter`, and `indexing_deleter`](./reference/attributes/on-js-imports/indexing-getter-setter-deleter.md) + - [`js_class = "Blah"`](./reference/attributes/on-js-imports/js_class.md) + - [`js_name`](./reference/attributes/on-js-imports/js_name.md) + - [`js_namespace`](./reference/attributes/on-js-imports/js_namespace.md) + - [`method`](./reference/attributes/on-js-imports/method.md) + - [`module = "blah"`](./reference/attributes/on-js-imports/module.md) + - [`raw_module = "blah"`](./reference/attributes/on-js-imports/raw_module.md) + - [`static_method_of = Blah`](./reference/attributes/on-js-imports/static_method_of.md) + - [`structural`](./reference/attributes/on-js-imports/structural.md) + - [`variadic`](./reference/attributes/on-js-imports/variadic.md) + - [`vendor_prefix`](./reference/attributes/on-js-imports/vendor_prefix.md) + - [On Rust Exports](./reference/attributes/on-rust-exports/index.md) + - [`constructor`](./reference/attributes/on-rust-exports/constructor.md) + - [`js_name = "Blah"`](./reference/attributes/on-rust-exports/js_name.md) + - [`readonly`](./reference/attributes/on-rust-exports/readonly.md) + - [`skip`](./reference/attributes/on-rust-exports/skip.md) + - [`start`](./reference/attributes/on-rust-exports/start.md) + - [`typescript_custom_section`](./reference/attributes/on-rust-exports/typescript_custom_section.md) + - [`getter` and `setter`](./reference/attributes/on-rust-exports/getter-and-setter.md) + - [`inspectable`](./reference/attributes/on-rust-exports/inspectable.md) + - [`skip_typescript`](./reference/attributes/on-rust-exports/skip_typescript.md) + - [`typescript_type`](./reference/attributes/on-rust-exports/typescript_type.md) + - [`getter_with_clone`](./reference/attributes/on-rust-exports/getter_with_clone.md) -- [Testing with `wasm-bindgen-test`](./wasm-bindgen-test/index.md) - - [Usage](./wasm-bindgen-test/usage.md) - - [Writing Asynchronous Tests](./wasm-bindgen-test/asynchronous-tests.md) - - [Testing in Headless Browsers](./wasm-bindgen-test/browsers.md) - - [Continuous Integration](./wasm-bindgen-test/continuous-integration.md) +- [`web-sys`](./web-sys/index.md) -- [Contributing to `wasm-bindgen`](./contributing/index.md) - - [Testing](./contributing/testing.md) - - [Internal Design](./contributing/design/index.md) - - [JS Objects in Rust](./contributing/design/js-objects-in-rust.md) - - [Exporting a function to JS](./contributing/design/exporting-rust.md) - - [Exporting a struct to JS](./contributing/design/exporting-rust-struct.md) - - [Importing a function from JS](./contributing/design/importing-js.md) - - [Importing a class from JS](./contributing/design/importing-js-struct.md) - - [Rust Type conversions](./contributing/design/rust-type-conversions.md) - - [Types in `wasm-bindgen`](./contributing/design/describe.md) - - [`js-sys`](./contributing/js-sys/index.md) - - [Testing](./contributing/js-sys/testing.md) - - [Adding More APIs](./contributing/js-sys/adding-more-apis.md) - - [`web-sys`](./contributing/web-sys/index.md) - - [Overview](./contributing/web-sys/overview.md) - - [Testing](./contributing/web-sys/testing.md) - - [Logging](./contributing/web-sys/logging.md) - - [Supporting More Web APIs](./contributing/web-sys/supporting-more-web-apis.md) - - [Publishing](./contributing/publishing.md) - - [Team](./contributing/team.md) + - [Using `web-sys`](./web-sys/using-web-sys.md) + - [Cargo Features](./web-sys/cargo-features.md) + - [Function Overloads](./web-sys/function-overloads.md) + - [Type Translations](./web-sys/type-translations.md) + - [Inheritance](./web-sys/inheritance.md) + - [Unstable APIs](./web-sys/unstable-apis.md) + +- [Testing with `wasm-bindgen-test`](./wasm-bindgen-test/index.md) + + - [Usage](./wasm-bindgen-test/usage.md) + - [Writing Asynchronous Tests](./wasm-bindgen-test/asynchronous-tests.md) + - [Testing in Headless Browsers](./wasm-bindgen-test/browsers.md) + - [Continuous Integration](./wasm-bindgen-test/continuous-integration.md) + +- [Contributing to `wasm-bindgen`](./contributing/index.md) + - [Testing](./contributing/testing.md) + - [Internal Design](./contributing/design/index.md) + - [JS Objects in Rust](./contributing/design/js-objects-in-rust.md) + - [Exporting a function to JS](./contributing/design/exporting-rust.md) + - [Exporting a struct to JS](./contributing/design/exporting-rust-struct.md) + - [Importing a function from JS](./contributing/design/importing-js.md) + - [Importing a class from JS](./contributing/design/importing-js-struct.md) + - [Rust Type conversions](./contributing/design/rust-type-conversions.md) + - [Types in `wasm-bindgen`](./contributing/design/describe.md) + - [`js-sys`](./contributing/js-sys/index.md) + - [Testing](./contributing/js-sys/testing.md) + - [Adding More APIs](./contributing/js-sys/adding-more-apis.md) + - [`web-sys`](./contributing/web-sys/index.md) + - [Overview](./contributing/web-sys/overview.md) + - [Testing](./contributing/web-sys/testing.md) + - [Logging](./contributing/web-sys/logging.md) + - [Supporting More Web APIs](./contributing/web-sys/supporting-more-web-apis.md) + - [Publishing](./contributing/publishing.md) + - [Team](./contributing/team.md) diff --git a/guide/src/contributing/design/importing-js-struct.md b/guide/src/contributing/design/importing-js-struct.md index 9bdb46975ed..4222baea8ce 100644 --- a/guide/src/contributing/design/importing-js-struct.md +++ b/guide/src/contributing/design/importing-js-struct.md @@ -16,7 +16,7 @@ extern "C" { #[wasm_bindgen(constructor)] fn new(arg: i32) -> Bar; - #[wasm_bindgen(js_namespace = Bar)] + #[wasm_bindgen(js_namespace = "Bar")] fn another_function() -> i32; #[wasm_bindgen(method)] @@ -56,7 +56,7 @@ let's go through one-by-one: * `#[wasm_bindgen(constructor)]` - this indicates that the binding's name isn't actually used in JS but rather translates to `new Bar()`. The return value of this function must be a bare type, like `Bar`. -* `#[wasm_bindgen(js_namespace = Bar)]` - this attribute indicates that the +* `#[wasm_bindgen(js_namespace = "Bar")]` - this attribute indicates that the function declaration is namespaced through the `Bar` class in JS. * `#[wasm_bindgen(static_method_of = SomeJsClass)]` - this attribute is similar to `js_namespace`, but instead of producing a free function, produces a static diff --git a/guide/src/reference/attributes/on-js-imports/js_class.md b/guide/src/reference/attributes/on-js-imports/js_class.md index 6ce517972af..5b6cdf749ee 100644 --- a/guide/src/reference/attributes/on-js-imports/js_class.md +++ b/guide/src/reference/attributes/on-js-imports/js_class.md @@ -9,12 +9,12 @@ Rust side. extern "C" { // We don't want to import JS strings as `String`, since Rust already has a // `String` type in its prelude, so rename it as `JsString`. - #[wasm_bindgen(js_name = String)] + #[wasm_bindgen(js_name = "String")] type JsString; // This is a method on the JavaScript "String" class, so specify that with // the `js_class` attribute. - #[wasm_bindgen(method, js_class = "String", js_name = charAt)] + #[wasm_bindgen(method, js_class = "String", js_name = "charAt")] fn char_at(this: &JsString, index: u32) -> JsString; } ``` diff --git a/guide/src/reference/attributes/on-js-imports/js_name.md b/guide/src/reference/attributes/on-js-imports/js_name.md index 840fb4f57e5..697470e9ba5 100644 --- a/guide/src/reference/attributes/on-js-imports/js_name.md +++ b/guide/src/reference/attributes/on-js-imports/js_name.md @@ -9,35 +9,24 @@ snake-cased Rust identifier: ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_name = jsOftenUsesCamelCase)] + #[wasm_bindgen(js_name = "jsOftenUsesCamelCase")] fn js_often_uses_camel_case() -> u32; } ``` -Sometimes, it is used to bind to JavaScript identifiers that are not valid Rust -identifiers, in which case `js_name = "some string"` is used instead of `js_name -= ident`: - -```rust -#[wasm_bindgen] -extern "C" { - #[wasm_bindgen(js_name = "$$$")] - fn cash_money() -> u32; -} -``` However, you can also use `js_name` to define multiple signatures for polymorphic JavaScript functions: ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console, js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] fn console_log_str(s: &str); - #[wasm_bindgen(js_namespace = console, js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] fn console_log_u32(n: u32); - #[wasm_bindgen(js_namespace = console, js_name = log)] + #[wasm_bindgen(js_namespace = "console", js_name = "log")] fn console_log_many(a: u32, b: &JsValue); } ``` @@ -51,7 +40,7 @@ Note that if you use `js_name` when importing a type you'll also need to use the ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_name = String)] + #[wasm_bindgen(js_name = "String")] type JsString; #[wasm_bindgen(method, getter, js_class = "String")] pub fn length(this: &JsString) -> u32; @@ -77,7 +66,7 @@ Could be accessed using this definition in Rust: ```rust #[wasm_bindgen(module = "bar")] extern "C" { - #[wasm_bindgen(js_name = default) + #[wasm_bindgen(js_name = "default")] type Foo; #[wasm_bindgen(constructor, js_class = default)] pub fn new() -> Foo; diff --git a/guide/src/reference/attributes/on-js-imports/js_namespace.md b/guide/src/reference/attributes/on-js-imports/js_namespace.md index 0d6d6672548..05eea7f49f5 100644 --- a/guide/src/reference/attributes/on-js-imports/js_namespace.md +++ b/guide/src/reference/attributes/on-js-imports/js_namespace.md @@ -1,4 +1,4 @@ -# `js_namespace = blah` +# `js_namespace = "blah"` This attribute indicates that the JavaScript type is accessed through the given namespace. For example, the `WebAssembly.Module` APIs are all accessed through @@ -9,11 +9,11 @@ name (like a class or function name) it'll be accessed through this namespace. ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); - + type Foo; - #[wasm_bindgen(constructor, js_namespace = Bar)] + #[wasm_bindgen(constructor, js_namespace = "Bar")] fn new() -> Foo; } @@ -31,7 +31,7 @@ It is also possible to access the JavaScript object under the nested namespace. ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = ["window", "document"])] + #[wasm_bindgen(js_namespace = r#"["window", "document"]"#)] fn write(s: &str); } diff --git a/guide/src/reference/attributes/on-rust-exports/js_class.md b/guide/src/reference/attributes/on-rust-exports/js_class.md index 1952b1e3246..c4aae69991b 100644 --- a/guide/src/reference/attributes/on-rust-exports/js_class.md +++ b/guide/src/reference/attributes/on-rust-exports/js_class.md @@ -6,10 +6,10 @@ it from the self type in the `impl` block. The `js_class` attribute is most frequently paired with [the `js_name` attribute](js_name.html) on structs: ```rust -#[wasm_bindgen(js_name = Foo)] +#[wasm_bindgen(js_name = "Foo")] pub struct JsFoo { /* ... */ } -#[wasm_bindgen(js_class = Foo)] +#[wasm_bindgen(js_class = "Foo")] impl JsFoo { #[wasm_bindgen(constructor)] pub fn new() -> JsFoo { /* ... */ } diff --git a/guide/src/reference/attributes/on-rust-exports/js_name.md b/guide/src/reference/attributes/on-rust-exports/js_name.md index b6a883857f1..a8cbf4e3389 100644 --- a/guide/src/reference/attributes/on-rust-exports/js_name.md +++ b/guide/src/reference/attributes/on-rust-exports/js_name.md @@ -1,4 +1,4 @@ -# `js_name = Blah` +# `js_name = "Blah"` The `js_name` attribute can be used to export a different name in JS than what something is named in Rust. It can be applied to both exported Rust functions @@ -8,7 +8,7 @@ For example, this is often used to convert between Rust's snake-cased identifiers into JavaScript's camel-cased identifiers: ```rust -#[wasm_bindgen(js_name = doTheThing)] +#[wasm_bindgen(js_name = "doTheThing")] pub fn do_the_thing() -> u32 { 42 } @@ -26,7 +26,7 @@ console.log(x); Like imports, `js_name` can also be used to rename types exported to JS: ```rust -#[wasm_bindgen(js_name = Foo)] +#[wasm_bindgen(js_name = "Foo")] pub struct JsFoo { // .. } @@ -44,7 +44,7 @@ Note that attaching methods to the JS class `Foo` should be done via the [`js_class` attribute](js_class.html): ```rust -#[wasm_bindgen(js_name = Foo)] +#[wasm_bindgen(js_name = "Foo")] pub struct JsFoo { /* ... */ } #[wasm_bindgen(js_class = Foo)] diff --git a/guide/src/reference/passing-rust-closures-to-js.md b/guide/src/reference/passing-rust-closures-to-js.md index 0c1574003c8..ef4281bb11d 100644 --- a/guide/src/reference/passing-rust-closures-to-js.md +++ b/guide/src/reference/passing-rust-closures-to-js.md @@ -84,7 +84,7 @@ extern "C" { fn setInterval(closure: &Closure, millis: u32) -> f64; fn cancelInterval(token: f64); - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); } diff --git a/guide/src/reference/rust-targets.md b/guide/src/reference/rust-targets.md index fc7b797ba62..6fe33c3882d 100644 --- a/guide/src/reference/rust-targets.md +++ b/guide/src/reference/rust-targets.md @@ -33,7 +33,7 @@ will unconditionally panic on non-wasm targets. For example: ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] fn log(s: &str); } diff --git a/src/closure.rs b/src/closure.rs index 320b2ad97ef..f439415a7c3 100644 --- a/src/closure.rs +++ b/src/closure.rs @@ -51,7 +51,7 @@ use crate::UnwrapThrowExt; /// fn setInterval(closure: &Closure, time: u32) -> i32; /// fn clearInterval(id: i32); /// -/// #[wasm_bindgen(js_namespace = console)] +/// #[wasm_bindgen(js_namespace = "console")] /// fn log(s: &str); /// } /// @@ -147,7 +147,7 @@ use crate::UnwrapThrowExt; /// fn requestAnimationFrame(closure: &Closure) -> u32; /// fn cancelAnimationFrame(id: u32); /// -/// #[wasm_bindgen(js_namespace = console)] +/// #[wasm_bindgen(js_namespace = "console")] /// fn log(s: &str); /// } /// @@ -213,7 +213,7 @@ use crate::UnwrapThrowExt; /// // example above for details. /// fn requestAnimationFrame(callback: JsValue); /// -/// #[wasm_bindgen(js_namespace = console)] +/// #[wasm_bindgen(js_namespace = "console")] /// fn log(s: &str); /// } /// diff --git a/tests/headless/main.rs b/tests/headless/main.rs index b5f6f12a0c7..d4621ec54ee 100644 --- a/tests/headless/main.rs +++ b/tests/headless/main.rs @@ -29,7 +29,7 @@ fn works() { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = console)] + #[wasm_bindgen(js_namespace = "console")] pub fn log(s: &str); } diff --git a/tests/wasm/classes.rs b/tests/wasm/classes.rs index 3588bb74cb2..50f979a742f 100644 --- a/tests/wasm/classes.rs +++ b/tests/wasm/classes.rs @@ -437,12 +437,12 @@ fn access_fields() { js_access_fields(); } -#[wasm_bindgen(js_name = JsRenamedExport)] +#[wasm_bindgen(js_name = "JsRenamedExport")] pub struct RenamedExport { pub x: u32, } -#[wasm_bindgen(js_class = JsRenamedExport)] +#[wasm_bindgen(js_class = "JsRenamedExport")] impl RenamedExport { #[wasm_bindgen(constructor)] pub fn new() -> RenamedExport { diff --git a/tests/wasm/enums.rs b/tests/wasm/enums.rs index 959a3e271d8..7fca034badd 100644 --- a/tests/wasm/enums.rs +++ b/tests/wasm/enums.rs @@ -31,7 +31,7 @@ pub mod inner { } } -#[wasm_bindgen(js_name = JsRenamedEnum)] +#[wasm_bindgen(js_name = "JsRenamedEnum")] #[derive(Copy, Clone)] pub enum RenamedEnum { A = 10, diff --git a/tests/wasm/getters_and_setters.rs b/tests/wasm/getters_and_setters.rs index f7bb31ba5b2..374568e6514 100644 --- a/tests/wasm/getters_and_setters.rs +++ b/tests/wasm/getters_and_setters.rs @@ -51,55 +51,67 @@ impl Rules { self.field = field; } - #[wasm_bindgen(getter = new_no_js_name__getter_with_name__getter_without_name)] + #[wasm_bindgen(getter = "new_no_js_name__getter_with_name__getter_without_name")] pub fn no_js_name__getter_with_name__getter_without_name(&self) -> i32 { self.field } - #[wasm_bindgen(setter = new_no_js_name__setter_with_name__setter_without_name)] + #[wasm_bindgen(setter = "new_no_js_name__setter_with_name__setter_without_name")] pub fn set_no_js_name__setter_with_name__setter_without_name(&mut self, field: i32) { self.field = field; } - #[wasm_bindgen(js_name = new_js_name__no_getter_with_name__no_getter_without_name)] + #[wasm_bindgen(js_name = "new_js_name__no_getter_with_name__no_getter_without_name")] pub fn js_name__no_getter_with_name__no_getter_without_name(&self) -> i32 { self.field } - #[wasm_bindgen(js_name = new_js_name__no_setter_with_name__no_setter_without_name)] + #[wasm_bindgen(js_name = "new_js_name__no_setter_with_name__no_setter_without_name")] pub fn set_js_name__no_setter_with_name__no_setter_without_name(&mut self, field: i32) { self.field = field; } - #[wasm_bindgen(getter, js_name = new_js_name__no_getter_with_name__getter_without_name)] + #[wasm_bindgen( + getter, + js_name = "new_js_name__no_getter_with_name__getter_without_name" + )] pub fn js_name__no_getter_with_name__getter_without_name(&self) -> i32 { self.field } - #[wasm_bindgen(js_name = new_js_name__no_setter_with_name__setter_without_name, setter)] + #[wasm_bindgen( + js_name = "new_js_name__no_setter_with_name__setter_without_name", + setter + )] pub fn set_js_name__no_setter_with_name__setter_without_name(&mut self, field: i32) { self.field = field; } #[wasm_bindgen( - getter = new_js_name__getter_with_name__no_getter_without_name_for_field, - js_name = new_js_name__getter_with_name__no_getter_without_name_for_method + getter = "new_js_name__getter_with_name__no_getter_without_name_for_field", + js_name = "new_js_name__getter_with_name__no_getter_without_name_for_method" )] pub fn js_name__getter_with_name__no_getter_without_name(&self) -> i32 { self.field } #[wasm_bindgen( - js_name = new_js_name__setter_with_name__no_setter_without_name_for_method, - setter = new_js_name__setter_with_name__no_setter_without_name_for_field + js_name = "new_js_name__setter_with_name__no_setter_without_name_for_method", + setter = "new_js_name__setter_with_name__no_setter_without_name_for_field" )] pub fn set_js_name__setter_with_name__no_setter_without_name_for_field(&mut self, field: i32) { self.field = field; } - #[wasm_bindgen(getter, js_name = new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name)] + #[wasm_bindgen( + getter, + js_name = "new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name" + )] pub fn js_name__no_getter_with_name__getter_without_name__same_getter_setter_name( &self, ) -> i32 { self.field } - #[wasm_bindgen(js_name = new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name, setter)] + #[wasm_bindgen( + js_name = "new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name", + setter + )] pub fn set_js_name__no_setter_with_name__setter_without_name__same_getter_setter_name( &mut self, field: i32, @@ -107,13 +119,19 @@ impl Rules { self.field = field; } - #[wasm_bindgen(getter, js_name = new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name)] + #[wasm_bindgen( + getter, + js_name = "new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name" + )] pub fn js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name( &self, ) -> i32 { self.field } - #[wasm_bindgen(js_name = new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name, setter)] + #[wasm_bindgen( + js_name = "new_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name", + setter + )] pub fn set_js_name__no_getter_setter_with_name__getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name( &mut self, field: i32, @@ -122,16 +140,18 @@ impl Rules { } #[wasm_bindgen( - getter = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name, - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name)] + getter = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name", + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name" + )] pub fn js_name__getter_with_name__no_getter_without_name__same_getter_setter_name( &self, ) -> i32 { self.field } #[wasm_bindgen( - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name, - setter = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name)] + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name", + setter = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name" + )] pub fn set_js_name__setter_with_name__no_setter_without_name__same_getter_setter_name( &mut self, field: i32, @@ -140,16 +160,18 @@ impl Rules { } #[wasm_bindgen( - getter = new_js_name__getter_with_name__no_getter_without_name_for_field__same_getter_setter_name, - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__no_same_field_name)] + getter = "new_js_name__getter_with_name__no_getter_without_name_for_field__same_getter_setter_name", + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__no_same_field_name" + )] pub fn js_name__getter_with_name__no_getter_without_name__same_getter_setter_name__no_same_field_name( &self, ) -> i32 { self.field } #[wasm_bindgen( - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__no_same_field_name, - setter = new_js_name__setter_with_name__no_setter_without_name_for_field__same_getter_setter_name)] + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__no_same_field_name", + setter = "new_js_name__setter_with_name__no_setter_without_name_for_field__same_getter_setter_name" + )] pub fn set_js_name__setter_with_name__no_setter_without_name__same_getter_setter_name__no_same_field_name( &mut self, field: i32, @@ -158,16 +180,18 @@ impl Rules { } #[wasm_bindgen( - getter = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name, - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name)] + getter = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name", + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name" + )] pub fn js_name__getter_setter_with_name__no_getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name( &self, ) -> i32 { self.field } #[wasm_bindgen( - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name, - setter = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name)] + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name", + setter = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name" + )] pub fn set_js_name__getter_setter_with_name__no_getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name( &mut self, field: i32, @@ -176,16 +200,18 @@ impl Rules { } #[wasm_bindgen( - getter = new_js_name__getter_with_name__no_getter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name, - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name__no_same_field_name)] + getter = "new_js_name__getter_with_name__no_getter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name", + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name__no_same_field_name" + )] pub fn js_name__getter_setter_with_name__no_getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name__no_same_field_name( &self, ) -> i32 { self.field } #[wasm_bindgen( - js_name = new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name__no_same_field_name, - setter = new_js_name__setter_with_name__no_setter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name)] + js_name = "new_js_name__getter_setter_with_name__no_getter_setter_without_name_for_method__same_getter_setter_name__same_getter_setter_origin_name__no_same_field_name", + setter = "new_js_name__setter_with_name__no_setter_without_name_for_field__same_getter_setter_name__same_getter_setter_origin_name" + )] pub fn set_js_name__getter_setter_with_name__no_getter_setter_without_name__same_getter_setter_name__same_getter_setter_origin_name__no_same_field_name( &mut self, field: i32, diff --git a/tests/wasm/import_class.rs b/tests/wasm/import_class.rs index 7de986147cb..9e21c5b767a 100644 --- a/tests/wasm/import_class.rs +++ b/tests/wasm/import_class.rs @@ -9,12 +9,12 @@ use wasm_bindgen_test::*; extern "C" { fn math_log(f: f64) -> f64; - #[wasm_bindgen(js_namespace = StaticFunction)] + #[wasm_bindgen(js_namespace = "StaticFunction")] fn bar() -> u32; #[derive(Clone)] type Construct; - #[wasm_bindgen(js_namespace = Construct)] + #[wasm_bindgen(js_namespace = "Construct")] fn create() -> Construct; #[wasm_bindgen(method)] fn get_internal_string(this: &Construct) -> String; @@ -29,7 +29,7 @@ extern "C" { #[wasm_bindgen(method)] fn get(this: &NewConstructors) -> i32; - #[wasm_bindgen(js_name = default)] + #[wasm_bindgen(js_name = "default")] type RenamedTypes; #[wasm_bindgen(constructor, js_class = default)] fn new(arg: i32) -> RenamedTypes; @@ -42,7 +42,7 @@ extern "C" { #[wasm_bindgen(constructor)] #[wasm_bindgen(final)] fn new() -> SwitchMethods; - #[wasm_bindgen(js_namespace = SwitchMethods, final)] + #[wasm_bindgen(js_namespace = "SwitchMethods", final)] fn a(); fn switch_methods_called() -> bool; #[wasm_bindgen(method, final)] @@ -59,13 +59,13 @@ extern "C" { type RenameProperties; #[wasm_bindgen(constructor)] fn new() -> RenameProperties; - #[wasm_bindgen(getter = a, method)] + #[wasm_bindgen(getter = "a", method)] fn test(this: &RenameProperties) -> i32; - #[wasm_bindgen(getter, method, js_name = a)] + #[wasm_bindgen(getter, method, js_name = "a")] fn test2(this: &RenameProperties) -> i32; - #[wasm_bindgen(setter = a, method)] + #[wasm_bindgen(setter = "a", method)] fn another(this: &RenameProperties, a: i32); - #[wasm_bindgen(setter, method, js_name = a)] + #[wasm_bindgen(setter, method, js_name = "a")] fn another2(this: &RenameProperties, a: i32); /// dox @@ -74,7 +74,7 @@ extern "C" { #[wasm_bindgen(constructor)] pub fn new() -> AssertImportDenyDocsWorks; /// dox - #[wasm_bindgen(getter = a, method)] + #[wasm_bindgen(getter = "a", method)] pub fn test(this: &AssertImportDenyDocsWorks) -> i32; /// dox pub fn foo(); @@ -113,9 +113,9 @@ extern "C" { #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] fn random() -> f64; - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] fn log(a: f64) -> f64; } diff --git a/tests/wasm/imports.rs b/tests/wasm/imports.rs index 5bdf77f601f..6d13a39cb8e 100644 --- a/tests/wasm/imports.rs +++ b/tests/wasm/imports.rs @@ -13,7 +13,7 @@ extern "C" { fn missing_symbol(s: &str); fn return_string() -> String; fn take_and_ret_string(s: String) -> String; - #[wasm_bindgen(js_name = take_and_ret_string)] + #[wasm_bindgen(js_name = "take_and_ret_string")] fn take_and_ret_string2(s: &str) -> String; fn exceptions_throw(); @@ -25,22 +25,22 @@ extern "C" { static IMPORT: JsValue; - #[wasm_bindgen(js_name = return_three)] + #[wasm_bindgen(js_name = "return_three")] fn rust_name_for_return_three() -> u32; fn underscore(_: u8); - #[wasm_bindgen(js_name = pub)] + #[wasm_bindgen(js_name = "pub")] fn js_function_named_rust_keyword() -> u32; type bar; - #[wasm_bindgen(js_namespace = bar, js_name = foo)] + #[wasm_bindgen(js_namespace = "bar", js_name = "foo")] static FOO: JsValue; fn take_custom_type(f: CustomType) -> CustomType; fn touch_custom_type(); fn custom_type_return_2() -> CustomType; - #[wasm_bindgen(js_name = interpret_2_as_custom_type)] + #[wasm_bindgen(js_name = "interpret_2_as_custom_type")] fn js_interpret_2_as_custom_type(); #[wasm_bindgen(js_name = "baz$")] @@ -70,16 +70,16 @@ extern "C" { #[wasm_bindgen(js_name = "receive_some")] fn receive_some_owned(arg: Option); - #[wasm_bindgen(js_namespace = Math)] + #[wasm_bindgen(js_namespace = "Math")] fn func_from_module_math(a: i32) -> i32; - #[wasm_bindgen(js_namespace = Number)] + #[wasm_bindgen(js_namespace = "Number")] fn func_from_module_number() -> f64; #[wasm_bindgen(js_name = "same_name_from_import")] fn same_name_from_import_1(s: i32) -> i32; - #[wasm_bindgen(js_namespace = same_js_namespace_from_module)] + #[wasm_bindgen(js_namespace = "same_js_namespace_from_module")] fn func_from_module_1_same_js_namespace(s: i32) -> i32; } @@ -88,7 +88,7 @@ extern "C" { #[wasm_bindgen(js_name = "same_name_from_import")] fn same_name_from_import_2(s: i32) -> i32; - #[wasm_bindgen(js_namespace = same_js_namespace_from_module)] + #[wasm_bindgen(js_namespace = "same_js_namespace_from_module")] fn func_from_module_2_same_js_namespace(s: i32) -> i32; } @@ -96,7 +96,7 @@ extern "C" { extern "C" { fn parseInt(a: &str) -> u32; - #[wasm_bindgen(js_namespace = Math, js_name = "sqrt")] + #[wasm_bindgen(js_namespace = "Math", js_name = "sqrt")] fn func_from_global_math(s: f64) -> f64; type Number; diff --git a/tests/wasm/math.rs b/tests/wasm/math.rs index 5462cc2d475..b6cbe936a1d 100644 --- a/tests/wasm/math.rs +++ b/tests/wasm/math.rs @@ -10,17 +10,17 @@ extern "C" { // return value is always `f64` to faithfully capture what was sent to JS // (what we're interested in) because all JS numbers fit in `f64` anyway. // This is testing what happens when we pass numbers to JS and what it sees. - #[wasm_bindgen(assert_no_shim, js_name = roundtrip)] + #[wasm_bindgen(assert_no_shim, js_name = "roundtrip")] fn roundtrip_i8(a: i8) -> f64; - #[wasm_bindgen(assert_no_shim, js_name = roundtrip)] + #[wasm_bindgen(assert_no_shim, js_name = "roundtrip")] fn roundtrip_i16(a: i16) -> f64; - #[wasm_bindgen(assert_no_shim, js_name = roundtrip)] + #[wasm_bindgen(assert_no_shim, js_name = "roundtrip")] fn roundtrip_i32(a: i32) -> f64; - #[wasm_bindgen(assert_no_shim, js_name = roundtrip)] + #[wasm_bindgen(assert_no_shim, js_name = "roundtrip")] fn roundtrip_u8(a: u8) -> f64; - #[wasm_bindgen(assert_no_shim, js_name = roundtrip)] + #[wasm_bindgen(assert_no_shim, js_name = "roundtrip")] fn roundtrip_u16(a: u16) -> f64; - #[wasm_bindgen(js_name = roundtrip)] + #[wasm_bindgen(js_name = "roundtrip")] fn roundtrip_u32(a: u32) -> f64; fn test_js_roundtrip(); diff --git a/tests/wasm/no_shims.rs b/tests/wasm/no_shims.rs index 2f9455ae2e4..16fa4377ddc 100644 --- a/tests/wasm/no_shims.rs +++ b/tests/wasm/no_shims.rs @@ -89,9 +89,9 @@ extern "C" { #[wasm_bindgen(assert_no_shim)] fn many(x: i32, y: f32, z: f64) -> i32; - #[wasm_bindgen(assert_no_shim, js_namespace = MyNamespace)] + #[wasm_bindgen(assert_no_shim, js_namespace = "MyNamespace")] fn incoming_namespaced() -> f64; - #[wasm_bindgen(assert_no_shim, js_namespace = MyNamespace)] + #[wasm_bindgen(assert_no_shim, js_namespace = "MyNamespace")] fn outgoing_namespaced(x: f64); // Note that this should only skip the JS shim if we have externref support diff --git a/tests/wasm/option.rs b/tests/wasm/option.rs index 4b4cc437955..1fc4a7b8d43 100644 --- a/tests/wasm/option.rs +++ b/tests/wasm/option.rs @@ -14,9 +14,9 @@ extern "C" { fn return_some_byval() -> Option; fn test_option_values(); - #[wasm_bindgen(js_name = take_none_byval)] + #[wasm_bindgen(js_name = "take_none_byval")] fn take_none_byref(t: Option<&MyType>); - #[wasm_bindgen(js_name = take_some_byval)] + #[wasm_bindgen(js_name = "take_some_byval")] fn take_some_byref(t: Option<&MyType>); } diff --git a/tests/wasm/simple.rs b/tests/wasm/simple.rs index 611b5320a8b..65d629d1bdf 100644 --- a/tests/wasm/simple.rs +++ b/tests/wasm/simple.rs @@ -21,10 +21,10 @@ extern "C" { fn return_string_none() -> Option; fn return_string_some() -> Option; fn test_rust_optional(); - #[wasm_bindgen(js_name = import_export_same_name)] + #[wasm_bindgen(js_name = "import_export_same_name")] fn js_import_export_same_name(); - #[wasm_bindgen(js_name = RenamedInRust)] + #[wasm_bindgen(js_name = "RenamedInRust")] type Renamed; fn new_renamed() -> Renamed; diff --git a/tests/wasm/slice.rs b/tests/wasm/slice.rs index 2f2457bc114..cae6681d0bd 100644 --- a/tests/wasm/slice.rs +++ b/tests/wasm/slice.rs @@ -15,9 +15,9 @@ extern "C" { fn js_return_vec(); fn js_clamped(val: Clamped<&[u8]>, offset: u8); - #[wasm_bindgen(js_name = js_clamped)] + #[wasm_bindgen(js_name = "js_clamped")] fn js_clamped2(val: Clamped>, offset: u8); - #[wasm_bindgen(js_name = js_clamped)] + #[wasm_bindgen(js_name = "js_clamped")] fn js_clamped3(val: Clamped<&mut [u8]>, offset: u8); }