ToSVG

Trait ToSVG 

Source
pub trait ToSVG {
    type Element;

    // Required method
    fn to_svg(&self) -> Self::Element;
}
Expand description

Mark a type that can be convert to svg

Required Associated Types§

Source

type Element

The svg element type

Required Methods§

Source

fn to_svg(&self) -> Self::Element

Convert to svg by reference

Implementations on Foreign Types§

Source§

impl<T> ToSVG for Circle<T>
where T: Clone + Into<Value>,

Source§

type Element = Circle

Source§

fn to_svg(&self) -> Self::Element

Source§

impl<T> ToSVG for Ellipse<T>
where T: Clone + Into<Value>,

Source§

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

Source§

type Element = Line

Source§

fn to_svg(&self) -> Self::Element

Source§

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

Source§

type Element = Circle

Source§

fn to_svg(&self) -> Self::Element

Source§

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

Source§

impl<T> ToSVG for Polyline<T>

Source§

impl<T> ToSVG for RegularPolygon<T>

Source§

impl<T> ToSVG for Rectangle<T>
where T: Display + Clone + Sub<Output = T>,

Source§

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

Source§

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

Source§

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

Implementors§