pub trait Delegate {
// Required methods
fn clear_graphics(&mut self);
fn draw_line(&mut self, from: Pos, to: Pos, pen_size: f64, color: LogoColor);
fn fill(&mut self, pos: Pos, color: LogoColor);
fn show(&mut self, message: &str);
}Required Methods§
fn clear_graphics(&mut self)
fn draw_line(&mut self, from: Pos, to: Pos, pen_size: f64, color: LogoColor)
fn fill(&mut self, pos: Pos, color: LogoColor)
fn show(&mut self, message: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".