/// A Haystack Coord, representing a geographical
/// coordinate.
#[derive(Clone, Copy, Debug, PartialEq)]pubstructCoord{lat:f64,
lng:f64,
}implCoord{/// Create a new `Coord`.
pubfnnew(lat:f64, lng:f64)->Self{Self{ lat, lng }}/// Return the latitude component of this `Coord`.
pubfnlat(&self)->f64{self.lat
}/// Return the longitude component of this `Coord`.
pubfnlng(&self)->f64{self.lng
}}