pub fn rects_for_range(&self, range: Range<usize>) -> Vec<Rect> {
        self.layout
            .as_ref()
            .map(|layout| layout.rects_for_range(range))
            .unwrap_or_default()
    }
/// Given a utf-8 range in the underlying text, return a `Vec` of `Rect`s
/// representing the nominal bounding boxes of the text in that range.
///
/// # Panics
///
/// Panics if the range start or end is not a character boundary.
Given a utf-8 range in the underlying text, return a `Vec` of `Rect`s
representing the nominal bounding boxes of the text in that range.
Given a utf - 8 range in the underlying text return a ` Vec ` of ` Rect ` s representing the nominal bounding boxes of the text in that range .
pub fn rects_for_range(&self, range: Range<usize>) -> Vec<Rect> {
        self.layout
            .as_ref()
            .map(|layout| layout.rects_for_range(range))
            .unwrap_or_default()
    }
pub fn rects_for_range ( & self , range : Range < usize > ) -> Vec < Rect > { self . layout . as_ref ( ) . map ( | layout | layout . rects_for_range ( range ) ) . unwrap_or_default ( ) }
Given a utf-8 range in the underlying text, return a `Vec` of `Rect`s
representing the nominal bounding boxes of the text in that range.
Given a utf - 8 range in the underlying text return a ` Vec ` of ` Rect ` s representing the nominal bounding boxes of the text in that range .
&self
range
Range<usize>
&self
range
Range<usize>
panics
Panics if the range start or end is not a character boundary.
Panics if the range start or end is not a character boundary .