pub trait GeoLocation {
// Required methods
fn geo_location(&self) -> Option<Coord<f64>>;
fn set_geo_location(&mut self, location: Option<Coord<f64>>);
}
Expand description
The GeoLocation
trait provides a method for obtaining the geographical location of a railway object.
Required Methods§
sourcefn geo_location(&self) -> Option<Coord<f64>>
fn geo_location(&self) -> Option<Coord<f64>>
Returns the geographical location of the railway object as a coordinate.
sourcefn set_geo_location(&mut self, location: Option<Coord<f64>>)
fn set_geo_location(&mut self, location: Option<Coord<f64>>)
Sets the geographical location of the railway object
Implementors§
impl GeoLocation for Train
Implements the GeoLocation
trait for the Train
struct.