pub trait ToPolygon { type Error; // Required method fn to_polygon(&self) -> Result<Polygon<f64>, Self::Error>; }