geo-types 0.2.0

Geospatial primitive data types
Documentation
1
2
3
4
5
6
7
8
9
10
11
use {Coordinate, CoordinateType};

#[derive(PartialEq, Clone, Copy, Debug)]
#[cfg_attr(feature = "use-serde", derive(Serialize, Deserialize))]
pub struct Rect<T>
where
    T: CoordinateType,
{
    pub min: Coordinate<T>,
    pub max: Coordinate<T>,
}