pub trait WispTextEngine {
// Required method
fn layout(&self, text: &WispText) -> Box<dyn WispTextLayout>;
}Expand description
Text-layout engine — turns a WispText into a backend-specific
WispTextLayout implementor.
Required Methods§
Sourcefn layout(&self, text: &WispText) -> Box<dyn WispTextLayout>
fn layout(&self, text: &WispText) -> Box<dyn WispTextLayout>
Lay out text. Backend returns a Box<dyn WispTextLayout>
whose concrete type is recognized by the matching renderer.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".