#[repr(C)]pub struct GeoLocation {
pub latitude: f64,
pub longitude: f64,
pub elevation: f64,
}
Fields§
§latitude: f64
§longitude: f64
§elevation: f64
Implementations§
Trait Implementations§
Source§impl Clone for GeoLocation
impl Clone for GeoLocation
Source§fn clone(&self) -> GeoLocation
fn clone(&self) -> GeoLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GeoLocation
impl Debug for GeoLocation
Source§impl GeoLocationTrait for GeoLocation
impl GeoLocationTrait for GeoLocation
fn geodesic_initial_bearing(&self, location: &GeoLocation) -> Option<f64>
fn geodesic_final_bearing(&self, location: &GeoLocation) -> Option<f64>
fn geodesic_distance(&self, location: &GeoLocation) -> Option<f64>
fn vincenty_inverse_formula( &self, location: &GeoLocation, formula: Formula, ) -> Option<f64>
fn rhumb_line_bearing(&self, location: &GeoLocation) -> f64
fn rhumb_line_distance(&self, location: &GeoLocation) -> f64
fn get_latitude(&self) -> f64
fn get_longitude(&self) -> f64
fn get_elevation(&self) -> f64
Source§impl PartialEq for GeoLocation
impl PartialEq for GeoLocation
impl Copy for GeoLocation
impl StructuralPartialEq for GeoLocation
Auto Trait Implementations§
impl Freeze for GeoLocation
impl RefUnwindSafe for GeoLocation
impl Send for GeoLocation
impl Sync for GeoLocation
impl Unpin for GeoLocation
impl UnwindSafe for GeoLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more