PreparedText
struct · ferroui-pretext · v0.5.0
struct PreparedText
Immutable metrics required by allocation-free line walking.
Members
fontwhite_spacediscretionary_hyphen_widthtab_stop_advancewidthsline_end_fit_advancesline_end_paint_advanceskindsbreakable_widthsbreakable_prefix_widthschunkssimple_line_walk_fast_path
font
fn font(self: &Self) -> &str
white_space
fn white_space(self: &Self) -> WhiteSpaceMode
discretionary_hyphen_width
fn discretionary_hyphen_width(self: &Self) -> f64
tab_stop_advance
fn tab_stop_advance(self: &Self) -> f64
widths
fn widths(self: &Self) -> &[f64]
line_end_fit_advances
fn line_end_fit_advances(self: &Self) -> &[f64]
line_end_paint_advances
fn line_end_paint_advances(self: &Self) -> &[f64]
kinds
fn kinds(self: &Self) -> &[SegmentBreakKind]
breakable_widths
fn breakable_widths(self: &Self) -> &[Option<Vec<f64>>]
breakable_prefix_widths
fn breakable_prefix_widths(self: &Self) -> &[Option<Vec<f64>>]
chunks
fn chunks(self: &Self) -> &[PreparedLineChunk]
simple_line_walk_fast_path
fn simple_line_walk_fast_path(self: &Self) -> bool
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.