web_sys/features/
gen_StaticRange.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = AbstractRange , extends = :: js_sys :: Object , js_name = StaticRange , typescript_type = "StaticRange")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `StaticRange` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StaticRange)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `StaticRange`*"]
14 pub type StaticRange;
15 #[cfg(feature = "StaticRangeInit")]
16 #[wasm_bindgen(catch, constructor, js_class = "StaticRange")]
17 #[doc = "The `new StaticRange(..)` constructor, creating a new instance of `StaticRange`."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/StaticRange)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `StaticRange`, `StaticRangeInit`*"]
22 pub fn new(init: &StaticRangeInit) -> Result<StaticRange, JsValue>;
23}