Trait Geographic

Source
pub trait Geographic {
    // Required methods
    fn latitude(&self) -> f64;
    fn longitude(&self) -> f64;
}
Expand description

The type can produce geographic coordinates.

Required Methods§

Source

fn latitude(&self) -> f64

The latitude method returns the latitude component of the geographic coordinates.

Source

fn longitude(&self) -> f64

The longitude method returns the longitude component of the geographic coordinates.

Implementors§