Skip to main content

web_sys/features/
gen_Position.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 = "Position" , typescript_type = "Position")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `Position` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `Position`*"]
14    pub type Position;
15    #[cfg(feature = "Coordinates")]
16    #[wasm_bindgen(method, getter, js_class = "Position", js_name = "coords")]
17    #[doc = "Getter for the `coords` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/coords)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `Coordinates`, `Position`*"]
22    pub fn coords(this: &Position) -> Coordinates;
23    #[wasm_bindgen(method, getter, js_class = "Position", js_name = "timestamp")]
24    #[doc = "Getter for the `timestamp` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/timestamp)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `Position`*"]
29    pub fn timestamp(this: &Position) -> f64;
30}