FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PreparedText

    struct · ferroui-pretext · v0.5.0

    struct PreparedText
    

    Immutable metrics required by allocation-free line walking.

    View source

    Members

    font

    fn font(self: &Self) -> &str
    

    Source

    white_space

    fn white_space(self: &Self) -> WhiteSpaceMode
    

    Source

    discretionary_hyphen_width

    fn discretionary_hyphen_width(self: &Self) -> f64
    

    Source

    tab_stop_advance

    fn tab_stop_advance(self: &Self) -> f64
    

    Source

    widths

    fn widths(self: &Self) -> &[f64]
    

    Source

    line_end_fit_advances

    fn line_end_fit_advances(self: &Self) -> &[f64]
    

    Source

    line_end_paint_advances

    fn line_end_paint_advances(self: &Self) -> &[f64]
    

    Source

    kinds

    fn kinds(self: &Self) -> &[SegmentBreakKind]
    

    Source

    breakable_widths

    fn breakable_widths(self: &Self) -> &[Option<Vec<f64>>]
    

    Source

    breakable_prefix_widths

    fn breakable_prefix_widths(self: &Self) -> &[Option<Vec<f64>>]
    

    Source

    chunks

    fn chunks(self: &Self) -> &[PreparedLineChunk]
    

    Source

    simple_line_walk_fast_path

    fn simple_line_walk_fast_path(self: &Self) -> bool
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.