bufkit-data 0.26.0

A crate to manage an archive of bufkit files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Latitude and longitude coordinates for internal use only. For now.

/// The latitude and longitude
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Coords {
    pub lat: f64,
    pub lon: f64,
}

impl From<(f64, f64)> for Coords {
    fn from(pair: (f64, f64)) -> Self {
        Self {
            lat: pair.0,
            lon: pair.1,
        }
    }
}