pub trait TextMeasure {
// Required method
fn measure(&self, text: &str, font_size: f32, max_width: f32) -> Size;
}Expand description
Text measurement callback.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".