Trait flag_algebra::tools::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) -> SVGwhere 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)

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>