[][src]Struct osmgraphing::network::geo::Coordinate

pub struct Coordinate {
    pub decimicro_lat: i32,
    pub decimicro_lon: i32,
}

Fields

decimicro_lat: i32decimicro_lon: i32

Methods

impl Coordinate[src]

pub fn new(decimicro_lat: i32, decimicro_lon: i32) -> Coordinate[src]

pub fn from(lat: f64, lon: f64) -> Coordinate[src]

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

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

Trait Implementations

impl Eq for Coordinate[src]

impl Clone for Coordinate[src]

impl PartialEq<Coordinate> for Coordinate[src]

impl Copy for Coordinate[src]

impl Display for Coordinate[src]

impl Debug for Coordinate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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