Skip to content

Commit

Permalink
feat: add doc for activate LockOption
Browse files Browse the repository at this point in the history
  • Loading branch information
Solo-steven committed Sep 10, 2023
1 parent 16c4c3e commit c0bb53b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/web-sys/src/features/gen_LockOptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ extern "C" {
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `LockOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `LockOption`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type LockOptions;
Expand All @@ -17,6 +19,8 @@ extern "C" {
impl LockOptions {
#[doc = "Construct a new `LockOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `LockOption`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
Expand All @@ -28,6 +32,8 @@ impl LockOptions {
#[cfg(feature = "LockMode")]
#[doc = "Change the `mode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `LockOption`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn mode(&mut self, val: LockMode) -> &mut Self {
Expand Down

0 comments on commit c0bb53b

Please sign in to comment.