pub trait TextGeometry {
// Required methods
fn caret_rect(&self, index: usize) -> Rect;
fn selection_rects(&self, range: Range<usize>) -> Vec<Rect>;
fn hit_test(&self, point: Point) -> usize;
}Expand description
Caret, selection and hit-test geometry for one laid-out text.
Required Methods§
Sourcefn caret_rect(&self, index: usize) -> Rect
fn caret_rect(&self, index: usize) -> Rect
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".