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§
fn draw_with_parameters<C>(&self, color: C, type_size: usize) -> SVG
Provided Methods§
fn draw(&self) -> SVG
fn draw_typed(&self, type_size: usize) -> SVG
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.