pub trait WidthMeasure {
// Required method
fn measure_width(
&self,
request: &[WidthReq],
) -> Result<WidthResponse, Error>;
}
Expand description
A trait for types that provide width measurement. In the general case this will be provided by the frontend, but alternative implementations might be provided for faster measurement of ‘fixed-width’ fonts, or for testing.