pub struct PreparedTextWithSegments { /* private fields */ }Expand description
Prepared metrics with source segments for lazy text and glyph materialization.
Implementations§
Methods from Deref<Target = PreparedText>§
pub fn font(&self) -> &str
pub fn white_space(&self) -> WhiteSpaceMode
pub fn discretionary_hyphen_width(&self) -> f64
pub fn tab_stop_advance(&self) -> f64
pub fn widths(&self) -> &[f64]
pub fn line_end_fit_advances(&self) -> &[f64]
pub fn line_end_paint_advances(&self) -> &[f64]
pub fn kinds(&self) -> &[SegmentBreakKind]
pub fn breakable_widths(&self) -> &[Option<Vec<f64>>]
pub fn breakable_prefix_widths(&self) -> &[Option<Vec<f64>>]
pub fn chunks(&self) -> &[PreparedLineChunk]
pub fn simple_line_walk_fast_path(&self) -> bool
Trait Implementations§
Source§impl Debug for PreparedTextWithSegments
impl Debug for PreparedTextWithSegments
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedTextWithSegments
impl !Sync for PreparedTextWithSegments
impl Freeze for PreparedTextWithSegments
impl Send for PreparedTextWithSegments
impl Unpin for PreparedTextWithSegments
impl UnsafeUnpin for PreparedTextWithSegments
impl UnwindSafe for PreparedTextWithSegments
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more