reda-geometry 0.1.0

geometry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod base;
pub mod shape;
pub mod prelude;
pub mod traits;

use shape::{Point, Edge, Rect, Polyline, Polygon, Path, Text};

#[derive(PartialEq, Eq, Clone, Debug, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum Geometry<T> {
    Point(Point<T>),
    Edge(Edge<T>),
    Rect(Rect<T>),
    Polyline(Polyline<T>),
    Polygon(Polygon<T>),
    Path(Path<T>),
    Text(Text<T>),
}