pub struct PreparedText { /* private fields */ }Expand description
Immutable metrics required by allocation-free line walking.
Implementations§
Source§impl PreparedText
impl 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 Clone for PreparedText
impl Clone for PreparedText
Auto Trait Implementations§
impl Freeze for PreparedText
impl RefUnwindSafe for PreparedText
impl Send for PreparedText
impl Sync for PreparedText
impl Unpin for PreparedText
impl UnsafeUnpin for PreparedText
impl UnwindSafe for PreparedText
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