geo-svg 0.6.3

Convert geo types to SVG strings for visualization
Documentation
use crate::{Style, Svg, ToSvgStr, ViewBox};

pub trait ToSvg {
    fn to_svg(&self) -> Svg;
}

impl<T: ToSvgStr> ToSvg for T {
    fn to_svg(&self) -> Svg {
        Svg {
            items: vec![self],
            siblings: vec![],
            viewbox: ViewBox::default(),
            style: Style::default(),
        }
    }
}