Draw

Trait Draw 

Source
pub trait Draw: Sized {
    // Required method
    fn draw_with_parameters<C>(&self, color: C, type_size: usize) -> SVG
       where C: FnMut(usize) -> usize;

    // Provided methods
    fn draw(&self) -> SVG { ... }
    fn draw_typed(&self, type_size: usize) -> SVG { ... }
    fn to_svg_file(&self, filename: &str) { ... }
}
Expand description

Draw flags in svg

Required Methods§

Source

fn draw_with_parameters<C>(&self, color: C, type_size: usize) -> SVG
where C: FnMut(usize) -> usize,

Provided Methods§

Source

fn draw(&self) -> SVG

Source

fn draw_typed(&self, type_size: usize) -> SVG

Source

fn to_svg_file(&self, filename: &str)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Draw for DirectedGraph

Source§

impl Draw for Graph

Source§

impl Draw for OrientedGraph

Source§

impl<F, A> Draw for SubClass<F, A>
where F: Draw,

Inheritance

Source§

impl<F, const N: u8> Draw for Colored<F, N>
where F: Draw,

Source§

impl<const N: u8> Draw for CGraph<N>