pub trait RendererPrimitivesLike {
type Color: Clone;
// Required methods
fn coord(c: f64) -> i32;
fn move_to(&mut self, x: i32, y: i32);
fn line_to(&mut self, x: i32, y: i32, last: bool);
fn set_line_color(&mut self, c: Self::Color);
}Expand description
Trait for renderers that can draw primitive lines.
Matches the subset of RendererPrimitives API used by RasterizerOutline.
Required Associated Types§
Required Methods§
fn coord(c: f64) -> i32
fn move_to(&mut self, x: i32, y: i32)
fn line_to(&mut self, x: i32, y: i32, last: bool)
fn set_line_color(&mut self, c: Self::Color)
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.