pub fn rect_to_mesh<Scalar: CoordFloat>( rect: impl RectTrait<T = Scalar>, ) -> Result<PolygonMesh, Error>