1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod ellipse_like;
mod line_like;
mod point_like;
mod polygon_like;
use shape_core::{Circle, Ellipse, Parallelogram, Point, Polygon, Polyline, Rectangle, RegularPolygon, Square, Triangle};
use std::fmt::Display;
use svg::node::Value;

/// Mark a type that can be convert to svg
pub trait ToSVG {
    /// The svg element type
    type Element;
    /// Convert to svg by reference
    fn to_svg(&self) -> Self::Element;
}