pub trait TextMeasurementEngine {
// Required method
fn measure_text(
&self,
size_available: Vec2,
mapping: &CoordsMapping,
widget: &TextBox,
) -> Option<Rect>;
}Required Methods§
fn measure_text( &self, size_available: Vec2, mapping: &CoordsMapping, widget: &TextBox, ) -> Option<Rect>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".