[][src]Struct web_sys::Coordinates

#[repr(transparent)]pub struct Coordinates { /* fields omitted */ }

The Coordinates class.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

Methods

impl Coordinates[src]

pub fn latitude(&self) -> f64[src]

Getter for the latitude field of this object.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

impl Coordinates[src]

pub fn longitude(&self) -> f64[src]

Getter for the longitude field of this object.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

impl Coordinates[src]

pub fn altitude(&self) -> Option<f64>[src]

Getter for the altitude field of this object.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

impl Coordinates[src]

pub fn accuracy(&self) -> f64[src]

Getter for the accuracy field of this object.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

impl Coordinates[src]

pub fn altitude_accuracy(&self) -> Option<f64>[src]

Getter for the altitudeAccuracy field of this object.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

impl Coordinates[src]

pub fn heading(&self) -> Option<f64>[src]

Getter for the heading field of this object.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

impl Coordinates[src]

pub fn speed(&self) -> Option<f64>[src]

Getter for the speed field of this object.

MDN Documentation

This API requires the following crate features to be activated: Coordinates

Trait Implementations

impl AsRef<Coordinates> for Coordinates[src]

impl AsRef<JsValue> for Coordinates[src]

impl AsRef<Object> for Coordinates[src]

impl Clone for Coordinates[src]

impl Debug for Coordinates[src]

impl Deref for Coordinates[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for Coordinates[src]

impl From<Coordinates> for JsValue[src]

impl From<Coordinates> for Object[src]

impl From<JsValue> for Coordinates[src]

impl FromWasmAbi for Coordinates[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Coordinates[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a Coordinates[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for Coordinates[src]

impl OptionFromWasmAbi for Coordinates[src]

impl OptionIntoWasmAbi for Coordinates[src]

impl<'a> OptionIntoWasmAbi for &'a Coordinates[src]

impl PartialEq<Coordinates> for Coordinates[src]

impl RefFromWasmAbi for Coordinates[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Coordinates>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for Coordinates[src]

impl StructuralPartialEq for Coordinates[src]

impl WasmDescribe for Coordinates[src]

Auto Trait Implementations

impl RefUnwindSafe for Coordinates

impl !Send for Coordinates

impl !Sync for Coordinates

impl Unpin for Coordinates

impl UnwindSafe for Coordinates

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.