pub trait Renderer<Mapping> {
// Required method
fn render_text(text: &str, mapping: Mapping) -> Vec<Point>;
}Expand description
Allows rendering text into vector points.
Implementors may define their own font mapping (enum or other data structure).
Required Methods§
Sourcefn render_text(text: &str, mapping: Mapping) -> Vec<Point>
fn render_text(text: &str, mapping: Mapping) -> Vec<Point>
Render the given text string to a series of points, using the given font mapping.
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.