Trait shape_svg::ToSVG

source ·
pub trait ToSVG {
    // Required method
    fn to_svg(&self) -> SVG;
}
Expand description

Mark a type that can be convert to svg

Required Methods§

source

fn to_svg(&self) -> SVG

Convert to svg by reference

Implementations on Foreign Types§

source§

impl<T> ToSVG for Rectangle<T>where T: Display,

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for RegularPolygon<T>

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for Point<T>where T: Display + One + Clone,

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for Triangle<T>where T: Display + Clone,

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for Circle<T>where T: Display,

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for Square<T>where T: Display,

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for Polygon<T>where T: Display,

source§

fn to_svg(&self) -> SVG

<polygon points=“100,10 40,198 190,78 10,78 160,198”

source§

impl<T> ToSVG for Ellipse<T>where T: Display + PartialEq + Zero,

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for Parallelogram<T>where T: Display,

source§

fn to_svg(&self) -> SVG

source§

impl<T> ToSVG for Polyline<T>

source§

fn to_svg(&self) -> SVG

Implementors§