reda_geometry/lib.rs
1pub mod base;
2pub mod shape;
3pub mod prelude;
4pub mod traits;
5
6use shape::{Point, Edge, Rect, Polyline, Polygon, Path, Text};
7
8#[derive(PartialEq, Eq, Clone, Debug, Hash)]
9#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
10pub enum Geometry<T> {
11 Point(Point<T>),
12 Edge(Edge<T>),
13 Rect(Rect<T>),
14 Polyline(Polyline<T>),
15 Polygon(Polygon<T>),
16 Path(Path<T>),
17 Text(Text<T>),
18}