web_sys/features/
gen_Coordinates.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Coordinates , typescript_type = "Coordinates")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `Coordinates` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
14    pub type Coordinates;
15    # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = latitude)]
16    #[doc = "Getter for the `latitude` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/latitude)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
21    pub fn latitude(this: &Coordinates) -> f64;
22    # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = longitude)]
23    #[doc = "Getter for the `longitude` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/longitude)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
28    pub fn longitude(this: &Coordinates) -> f64;
29    # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = altitude)]
30    #[doc = "Getter for the `altitude` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitude)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
35    pub fn altitude(this: &Coordinates) -> Option<f64>;
36    # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = accuracy)]
37    #[doc = "Getter for the `accuracy` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/accuracy)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
42    pub fn accuracy(this: &Coordinates) -> f64;
43    # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = altitudeAccuracy)]
44    #[doc = "Getter for the `altitudeAccuracy` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitudeAccuracy)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
49    pub fn altitude_accuracy(this: &Coordinates) -> Option<f64>;
50    # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = heading)]
51    #[doc = "Getter for the `heading` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/heading)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
56    pub fn heading(this: &Coordinates) -> Option<f64>;
57    # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = speed)]
58    #[doc = "Getter for the `speed` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/speed)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"]
63    pub fn speed(this: &Coordinates) -> Option<f64>;
64}