1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TimeRanges , typescript_type = "TimeRanges")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `TimeRanges` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"]
13     pub type TimeRanges;
14     # [wasm_bindgen (structural , method , getter , js_class = "TimeRanges" , js_name = length)]
15     #[doc = "Getter for the `length` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/length)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"]
length(this: &TimeRanges) -> u3220     pub fn length(this: &TimeRanges) -> u32;
21     # [wasm_bindgen (catch , method , structural , js_class = "TimeRanges" , js_name = end)]
22     #[doc = "The `end()` method."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/end)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"]
end(this: &TimeRanges, index: u32) -> Result<f64, JsValue>27     pub fn end(this: &TimeRanges, index: u32) -> Result<f64, JsValue>;
28     # [wasm_bindgen (catch , method , structural , js_class = "TimeRanges" , js_name = start)]
29     #[doc = "The `start()` method."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/start)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"]
start(this: &TimeRanges, index: u32) -> Result<f64, JsValue>34     pub fn start(this: &TimeRanges, index: u32) -> Result<f64, JsValue>;
35 }
36