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(
8 extends = "AbstractRange",
9 extends = "::js_sys::Object",
10 js_name = "StaticRange",
11 typescript_type = "StaticRange"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `StaticRange` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StaticRange)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `StaticRange`*"]
19 pub type StaticRange;
20 #[cfg(feature = "StaticRangeInit")]
21 #[wasm_bindgen(catch, constructor, js_class = "StaticRange")]
22 #[doc = "The `new StaticRange(..)` constructor, creating a new instance of `StaticRange`."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/StaticRange)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `StaticRange`, `StaticRangeInit`*"]
27 pub fn new(init: &StaticRangeInit) -> Result<StaticRange, JsValue>;
28}