pub trait LineWidthProvider {
// Required methods
fn line_count(&self) -> usize;
fn width(&self, line: usize) -> Option<usize>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Supplies the available inline extent for each laid-out line.
Layout never requests a width beyond crate::TextFlow::with_max_lines.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".